Home
last modified time | relevance | path

Searched refs:iommufd (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/vfio/
H A Dgroup.c67 return group->container || group->iommufd; in vfio_group_has_iommu()
92 if (group->iommufd) { in vfio_group_ioctl_unset_container()
93 iommufd_ctx_put(group->iommufd); in vfio_group_ioctl_unset_container()
94 group->iommufd = NULL; in vfio_group_ioctl_unset_container()
106 struct iommufd_ctx *iommufd; in vfio_group_ioctl_set_container() local
133 iommufd = iommufd_ctx_from_file(fd_file(f)); in vfio_group_ioctl_set_container()
134 if (!IS_ERR(iommufd)) { in vfio_group_ioctl_set_container()
137 ret = iommufd_vfio_compat_set_no_iommu(iommufd); in vfio_group_ioctl_set_container()
139 ret = iommufd_vfio_compat_ioas_create(iommufd); in vfio_group_ioctl_set_container()
142 iommufd_ctx_put(iommufd); in vfio_group_ioctl_set_container()
[all …]
H A DMakefile7 vfio-$(CONFIG_IOMMUFD) += iommufd.o
H A Dvfio_main.c508 struct iommufd_ctx *iommufd = df->iommufd; in vfio_df_device_first_open() local
516 if (iommufd) in vfio_df_device_first_open()
531 if (iommufd) in vfio_df_device_first_open()
543 struct iommufd_ctx *iommufd = df->iommufd; in vfio_df_device_last_close() local
549 if (iommufd) in vfio_df_device_last_close()
H A Dvfio.h27 struct iommufd_ctx *iommufd; /* protected by struct vfio_device_set::lock */ member
94 struct iommufd_ctx *iommufd; member
H A Diommufd.c24 struct iommufd_ctx *ictx = df->iommufd; in vfio_df_iommufd_bind()
H A DKconfig24 /dev/vfio/devices/vfioX, and then bind the device fd with an iommufd
/linux/tools/testing/selftests/iommu/
H A D.gitignore2 /iommufd
H A DMakefile7 TEST_GEN_PROGS += iommufd
H A Diommufd.c59 FIXTURE(iommufd) in FIXTURE() argument
64 FIXTURE_SETUP(iommufd) in FIXTURE_SETUP() argument
70 FIXTURE_TEARDOWN(iommufd) in FIXTURE_TEARDOWN() argument
75 TEST_F(iommufd, simple_close) in TEST_F() argument
79 TEST_F(iommufd, cmd_fail) in TEST_F() argument
93 TEST_F(iommufd, cmd_length) in TEST_F() argument
144 TEST_F(iommufd, cmd_ex_fail) in TEST_F() argument
164 TEST_F(iommufd, global_options) in TEST_F() argument
2246 TEST_F(iommufd, simple_ioctls) in TEST_F() argument
2252 TEST_F(iommufd, unmap_cmd) in TEST_F() argument
[all …]
/linux/drivers/iommu/arm/arm-smmu-v3/
H A DMakefile4 arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_IOMMUFD) += arm-smmu-v3-iommufd.o
/linux/Documentation/userspace-api/
H A Dindex.rst48 iommufd
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c799 struct iommufd_ctx *iommufd = vfio_iommufd_device_ictx(fill->vdev); in vfio_pci_fill_devs() local
811 int id = vfio_iommufd_get_dev_id(vdev, iommufd); in vfio_pci_fill_devs()
/linux/Documentation/userspace-api/ioctl/
H A Dioctl-number.rst112 ';' 80-FF linux/iommufd.h
/linux/
H A DMAINTAINERS12049 T: git git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git
12050 F: Documentation/userspace-api/iommufd.rst
12051 F: drivers/iommu/iommufd/
12052 F: include/linux/iommufd.h
12053 F: include/uapi/linux/iommufd.h