/linux-6.3-rc2/tools/testing/selftests/iommu/ |
A D | iommufd_utils.h | 47 .id = ioas_id, in _test_cmd_mock_domain() 63 ASSERT_EQ(0, _test_cmd_mock_domain(self->fd, ioas_id, device_id, \ 66 EXPECT_ERRNO(_errno, _test_cmd_mock_domain(self->fd, ioas_id, \ 69 static int _test_cmd_create_access(int fd, unsigned int ioas_id, in _test_cmd_create_access() argument 75 .id = ioas_id, in _test_cmd_create_access() 87 ASSERT_EQ(0, _test_cmd_create_access(self->fd, ioas_id, access_id, \ 150 .ioas_id = ioas_id, in _test_ioctl_ioas_map() 171 _test_ioctl_ioas_map(self->fd, self->ioas_id, buffer, \ 186 self->fd, self->ioas_id, buffer, length, \ 198 self->fd, self->ioas_id, buffer, length, \ [all …]
|
A D | iommufd_fail_nth.c | 231 uint32_t ioas_id; in TEST_FAIL_NTH() local 240 if (_test_ioctl_ioas_alloc(self->fd, &ioas_id)) in TEST_FAIL_NTH() 247 .ioas_id = ioas_id, in TEST_FAIL_NTH() 257 .ioas_id = ioas_id, in TEST_FAIL_NTH() 278 .dst_ioas_id = ioas_id, in TEST_FAIL_NTH() 279 .src_ioas_id = ioas_id, in TEST_FAIL_NTH() 299 uint32_t ioas_id; in TEST_FAIL_NTH() local 336 uint32_t ioas_id; in TEST_FAIL_NTH() local 386 uint32_t ioas_id; in TEST_FAIL_NTH() local 466 uint32_t ioas_id; in TEST_FAIL_NTH() local [all …]
|
A D | iommufd.c | 188 uint32_t ioas_id; in FIXTURE() local 361 .id = self->ioas_id, in TEST_F() 368 .ioas_id = self->ioas_id, in TEST_F() 455 .ioas_id = self->ioas_id, in TEST_F() 520 .ioas_id = self->ioas_id, in TEST_F() 990 uint32_t ioas_id; in FIXTURE() local 1339 __u32 ioas_id; in TEST_F() local 1350 vfio_ioas_cmd.ioas_id = ioas_id; in TEST_F() 1356 ASSERT_EQ(ioas_id, vfio_ioas_cmd.ioas_id); in TEST_F() 1368 uint32_t ioas_id; in FIXTURE() local [all …]
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | iommufd.h | 127 __u32 ioas_id; member 160 __u32 ioas_id; member 202 __u32 ioas_id; member 255 __u32 ioas_id; member 342 __u32 ioas_id; member
|
/linux-6.3-rc2/drivers/vfio/ |
A D | iommufd.c | 15 u32 ioas_id; in vfio_iommufd_bind() local 30 if (!iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id)) in vfio_iommufd_bind() 46 ret = iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id); in vfio_iommufd_bind() 49 ret = vdev->ops->attach_ioas(vdev, &ioas_id); in vfio_iommufd_bind()
|
/linux-6.3-rc2/drivers/iommu/iommufd/ |
A D | ioas.c | 74 ioas = iommufd_get_ioas(ucmd, cmd->ioas_id); in iommufd_ioas_iova_ranges() 154 ioas = iommufd_get_ioas(ucmd, cmd->ioas_id); in iommufd_ioas_allow_iovas() 216 ioas = iommufd_get_ioas(ucmd, cmd->ioas_id); in iommufd_ioas_map() 295 ioas = iommufd_get_ioas(ucmd, cmd->ioas_id); in iommufd_ioas_unmap()
|
A D | iommufd_private.h | 288 unsigned int ioas_id, u64 *iova, u32 *flags); 294 unsigned int ioas_id, in iommufd_test_syz_conv_iova_id() argument
|
A D | selftest.c | 70 unsigned int ioas_id, u64 *iova, u32 *flags) in iommufd_test_syz_conv_iova_id() argument 78 ioas = iommufd_get_ioas(ucmd, ioas_id); in iommufd_test_syz_conv_iova_id() 552 unsigned int ioas_id, unsigned int flags) in iommufd_test_create_access() argument 574 ucmd->ictx, ioas_id, in iommufd_test_create_access()
|
A D | vfio_compat.c | 135 cmd->ioas_id = ioas->obj.id; in iommufd_vfio_ioas() 140 ioas = iommufd_get_ioas(ucmd, cmd->ioas_id); in iommufd_vfio_ioas()
|
A D | device.c | 434 iommufd_access_create(struct iommufd_ctx *ictx, u32 ioas_id, in iommufd_access_create() argument 452 obj = iommufd_get_object(ictx, ioas_id, IOMMUFD_OBJ_IOAS); in iommufd_access_create()
|
/linux-6.3-rc2/include/linux/ |
A D | iommufd.h | 43 iommufd_access_create(struct iommufd_ctx *ictx, u32 ioas_id,
|