/linux-master/tools/testing/selftests/iommu/ |
H A D | iommufd_utils.h | 67 __u32 *hwpt_id, __u32 *idev_id) 83 if (hwpt_id) 84 *hwpt_id = cmd.mock_domain.out_hwpt_id; 89 #define test_cmd_mock_domain(ioas_id, stdev_id, hwpt_id, idev_id) \ 91 hwpt_id, idev_id)) 92 #define test_err_mock_domain(_errno, ioas_id, stdev_id, hwpt_id) \ 94 stdev_id, hwpt_id, NULL)) 98 __u32 *hwpt_id, __u32 *idev_id) 114 if (hwpt_id) 115 *hwpt_id 66 _test_cmd_mock_domain(int fd, unsigned int ioas_id, __u32 *stdev_id, __u32 *hwpt_id, __u32 *idev_id) argument 96 _test_cmd_mock_domain_flags(int fd, unsigned int ioas_id, __u32 stdev_flags, __u32 *stdev_id, __u32 *hwpt_id, __u32 *idev_id) argument 128 _test_cmd_mock_domain_replace(int fd, __u32 stdev_id, __u32 pt_id, __u32 *hwpt_id) argument 156 _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, __u32 flags, __u32 *hwpt_id, __u32 data_type, void *data, size_t data_len) argument 222 _test_cmd_hwpt_invalidate(int fd, __u32 hwpt_id, void *reqs, uint32_t data_type, uint32_t lreq, uint32_t *nreqs) argument 272 _test_cmd_set_dirty_tracking(int fd, __u32 hwpt_id, bool enabled) argument 289 _test_cmd_get_dirty_bitmap(int fd, __u32 hwpt_id, size_t length, __u64 iova, size_t page_size, __u64 *bitmap, __u32 flags) argument 315 _test_cmd_mock_domain_set_dirty(int fd, __u32 hwpt_id, size_t length, __u64 iova, size_t page_size, __u64 *bitmap, __u64 *dirty) argument 346 _test_mock_dirty_bitmaps(int fd, __u32 hwpt_id, size_t length, __u64 iova, size_t page_size, size_t pte_page_size, __u64 *bitmap, __u64 bitmap_size, __u32 flags, struct __test_metadata *_metadata) argument [all...] |
H A D | iommufd_fail_nth.c | 303 __u32 hwpt_id; local 318 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) 329 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) 340 __u32 hwpt_id; local 353 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) 373 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) 520 __u32 hwpt_id; local 533 if (_test_cmd_mock_domain(self->fd, ioas_id, &stdev_id, &hwpt_id, NULL)) 584 uint32_t hwpt_id; local 618 if (_test_cmd_hwpt_alloc(self->fd, idev_id, ioas_id, 0, &hwpt_id, [all...] |
H A D | iommufd.c | 194 uint32_t hwpt_id; local 222 &self->hwpt_id, &self->device_id); 539 test_cmd_mock_domain(self->hwpt_id, NULL, NULL, NULL); 541 test_err_mock_domain(ENOENT, self->hwpt_id, NULL, NULL); 1341 uint32_t hwpt_id; local 1368 self->hwpt_id = self->hwpt_ids[0]; 1417 .id = self->hwpt_id, \ 1679 uint32_t hwpt_id[2]; local 1684 ~IOMMU_HWPT_ALLOC_NEST_PARENT, &hwpt_id[0]); 1686 0, &hwpt_id[ 1708 uint32_t hwpt_id; local 1829 uint32_t hwpt_id, _hwpt_id; local 1854 uint32_t hwpt_id; local 1870 uint32_t hwpt_id; local 1886 uint32_t hwpt_id; local 1923 uint32_t hwpt_id; local [all...] |
/linux-master/include/uapi/linux/ |
H A D | iommufd.h | 557 * @hwpt_id: HW pagetable ID that represents the IOMMU domain 565 __u32 hwpt_id; member in struct:iommu_hwpt_set_dirty_tracking 587 * @hwpt_id: HW pagetable ID that represents the IOMMU domain 606 __u32 hwpt_id; member in struct:iommu_hwpt_get_dirty_bitmap 665 * @hwpt_id: ID of a nested HWPT for cache invalidation 670 * should be a type supported by the hwpt pointed by @hwpt_id. 687 __u32 hwpt_id; member in struct:iommu_hwpt_invalidate
|
/linux-master/drivers/iommu/iommufd/ |
H A D | hw_pagetable.c | 341 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); 366 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); 401 hwpt = iommufd_get_hwpt_nested(ucmd, cmd->hwpt_id);
|