Home
last modified time | relevance | path

Searched refs:hwpt_id (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h101 __u32 *hwpt_id, __u32 *idev_id) in _test_cmd_mock_domain() argument
117 if (hwpt_id) in _test_cmd_mock_domain()
118 *hwpt_id = cmd.mock_domain.out_hwpt_id; in _test_cmd_mock_domain()
123 #define test_cmd_mock_domain(ioas_id, stdev_id, hwpt_id, idev_id) \ argument
125 hwpt_id, idev_id))
126 #define test_err_mock_domain(_errno, ioas_id, stdev_id, hwpt_id) \ argument
128 stdev_id, hwpt_id, NULL))
132 __u32 *hwpt_id, __u32 *idev_id) in _test_cmd_mock_domain_flags() argument
148 if (hwpt_id) in _test_cmd_mock_domain_flags()
149 *hwpt_id = cmd.mock_domain_flags.out_hwpt_id; in _test_cmd_mock_domain_flags()
[all …]
H A Diommufd_fail_nth.c312 __u32 hwpt_id; in TEST_FAIL_NTH() local
327 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
338 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
348 __u32 hwpt_id; in TEST_FAIL_NTH() local
363 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
374 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
385 __u32 hwpt_id; in TEST_FAIL_NTH() local
398 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
418 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) in TEST_FAIL_NTH()
565 __u32 hwpt_id; in TEST_FAIL_NTH() local
[all …]
H A Diommufd.c341 uint32_t hwpt_id; in FIXTURE() local
371 &self->hwpt_id, &self->device_id); in FIXTURE_SETUP()
723 test_cmd_mock_domain(self->hwpt_id, NULL, NULL, NULL); in TEST_F()
725 test_err_mock_domain(ENOENT, self->hwpt_id, NULL, NULL); in TEST_F()
1590 __u32 hwpt_id; in TEST_F() local
1601 &hwpt_id); in TEST_F()
1619 uint32_t hwpt_id; in FIXTURE() local
1650 self->hwpt_id = self->hwpt_ids[0]; in FIXTURE_SETUP()
1718 .id = self->hwpt_id, \
2053 uint32_t hwpt_id[2]; in TEST_F() local
[all …]
/linux/include/uapi/linux/
H A Diommufd.h789 __u32 hwpt_id; member
830 __u32 hwpt_id; member
938 __u32 hwpt_id; member
1103 __u32 hwpt_id; member
/linux/drivers/iommu/iommufd/
H A Dhw_pagetable.c455 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); in iommufd_hwpt_set_dirty_tracking()
480 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); in iommufd_hwpt_get_dirty_bitmap()
515 pt_obj = iommufd_get_object(ucmd->ictx, cmd->hwpt_id, IOMMUFD_OBJ_ANY); in iommufd_hwpt_invalidate()
H A Diommufd_test.h186 __u32 hwpt_id; member
H A Dselftest.c1842 u32 hwpt_id = cmd->pasid_check.hwpt_id; in iommufd_test_pasid_check_hwpt() local
1864 if (!hwpt_id) { in iommufd_test_pasid_check_hwpt()
1870 hwpt = iommufd_get_hwpt(ucmd, hwpt_id); in iommufd_test_pasid_check_hwpt()
H A Dviommu.c60 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); in iommufd_viommu_alloc_ioctl()
/linux/Documentation/userspace-api/
H A Diommufd.rst229 uAPI, provided an hwpt_id or a viommu_id of a vIOMMU object encapsulating a
249 and an hwpt_id (to associate the vIOMMU to a nesting parent HWPT_PAGING). The