Lines Matching refs:ioctl
99 VFIO_GROUP_SET_CONTAINER ioctl, passing the file descriptor of the
109 device within a group using an ioctl on the VFIO group file descriptor.
177 if (ioctl(container, VFIO_GET_API_VERSION) != VFIO_API_VERSION)
180 if (!ioctl(container, VFIO_CHECK_EXTENSION, VFIO_TYPE1_IOMMU))
187 ioctl(group, VFIO_GROUP_GET_STATUS, &group_status);
193 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
196 ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU);
199 ioctl(container, VFIO_IOMMU_GET_INFO, &iommu_info);
208 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
211 device = ioctl(group, VFIO_GROUP_GET_DEVICE_FD, "0000:06:0d.0");
214 ioctl(device, VFIO_DEVICE_GET_INFO, &device_info);
221 ioctl(device, VFIO_DEVICE_GET_REGION_INFO, ®);
232 ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, &irq);
238 ioctl(device, VFIO_DEVICE_RESET);
272 long (*ioctl)(void *device_data, unsigned int cmd,
281 device (via VFIO_GROUP_GET_DEVICE_FD). The ioctl interface provides
284 own VFIO_DEVICE_GET_REGION_INFO ioctl.
314 additional ioctl commands.
335 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
338 ioctl(container, VFIO_SET_IOMMU, VFIO_SPAPR_TCE_IOMMU)
342 ioctl(container, VFIO_IOMMU_SPAPR_TCE_GET_INFO, &spapr_iommu_info);
344 if (ioctl(container, VFIO_IOMMU_ENABLE))
356 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
359 device = ioctl(group, VFIO_GROUP_GET_DEVICE_FD, "0000:06:0d.0");
364 ioctl(device, VFIO_DEVICE_RESET);
367 ioctl(container, VFIO_CHECK_EXTENSION, VFIO_EEH);
371 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
380 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
392 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
404 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
412 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
414 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
418 ioctl(container, VFIO_EEH_PE_OP, &pe_op);