Lines Matching defs:ops

52 	const struct vfio_iommu_driver_ops	*ops;
213 int vfio_register_iommu_driver(const struct vfio_iommu_driver_ops *ops)
221 driver->ops = ops;
227 if (tmp->ops == ops) {
242 void vfio_unregister_iommu_driver(const struct vfio_iommu_driver_ops *ops)
248 if (driver->ops == ops) {
744 const struct vfio_device_ops *ops, void *device_data)
748 device->ops = ops;
802 int vfio_add_group_dev(struct device *dev, const struct vfio_device_ops *ops,
812 vfio_init_group_dev(device, dev, ops, device_data);
857 if (it->ops->match) {
858 ret = it->ops->match(it->device_data, buf);
918 if (device->ops->request)
919 device->ops->request(device->device_data, i++);
1007 (driver->ops == &vfio_noiommu_ops)))
1011 if (!try_module_get(driver->ops->owner))
1014 ret = driver->ops->ioctl(NULL,
1017 module_put(driver->ops->owner);
1023 ret = driver->ops->ioctl(container->iommu_data,
1041 ret = driver->ops->attach_group(data, group->iommu_group);
1051 driver->ops->detach_group(data, group->iommu_group);
1087 if (container->noiommu != (driver->ops == &vfio_noiommu_ops))
1091 if (!try_module_get(driver->ops->owner))
1101 if (driver->ops->ioctl(NULL, VFIO_CHECK_EXTENSION, arg) <= 0) {
1102 module_put(driver->ops->owner);
1106 data = driver->ops->open(arg);
1109 module_put(driver->ops->owner);
1115 driver->ops->release(data);
1116 module_put(driver->ops->owner);
1157 ret = driver->ops->ioctl(data, cmd, arg);
1203 if (likely(driver && driver->ops->read))
1204 ret = driver->ops->read(container->iommu_data,
1218 if (likely(driver && driver->ops->write))
1219 ret = driver->ops->write(container->iommu_data,
1232 if (likely(driver && driver->ops->mmap))
1233 ret = driver->ops->mmap(container->iommu_data, vma);
1261 driver->ops->detach_group(container->iommu_data,
1270 driver->ops->release(container->iommu_data);
1271 module_put(driver->ops->owner);
1350 ret = driver->ops->attach_group(container->iommu_data,
1412 ret = device->ops->open(device->device_data);
1424 device->ops->release(device->device_data);
1434 device->ops->release(device->device_data);
1591 device->ops->release(device->device_data);
1605 if (unlikely(!device->ops->ioctl))
1608 return device->ops->ioctl(device->device_data, cmd, arg);
1616 if (unlikely(!device->ops->read))
1619 return device->ops->read(device->device_data, buf, count, ppos);
1628 if (unlikely(!device->ops->write))
1631 return device->ops->write(device->device_data, buf, count, ppos);
1638 if (unlikely(!device->ops->mmap))
1641 return device->ops->mmap(device->device_data, vma);
1924 if (likely(driver && driver->ops->pin_pages))
1925 ret = driver->ops->pin_pages(container->iommu_data,
1971 if (likely(driver && driver->ops->unpin_pages))
1972 ret = driver->ops->unpin_pages(container->iommu_data, user_pfn,
2025 if (likely(driver && driver->ops->pin_pages))
2026 ret = driver->ops->pin_pages(container->iommu_data,
2069 if (likely(driver && driver->ops->unpin_pages))
2070 ret = driver->ops->unpin_pages(container->iommu_data,
2118 if (likely(driver && driver->ops->dma_rw))
2119 ret = driver->ops->dma_rw(container->iommu_data,
2142 if (likely(driver && driver->ops->register_notifier))
2143 ret = driver->ops->register_notifier(container->iommu_data,
2166 if (likely(driver && driver->ops->unregister_notifier))
2167 ret = driver->ops->unregister_notifier(container->iommu_data,