Lines Matching refs:cdx_dev

15 	struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev);  in vfio_cdx_open_device()  local
16 int count = cdx_dev->res_count; in vfio_cdx_open_device()
25 struct resource *res = &cdx_dev->res[i]; in vfio_cdx_open_device()
39 if (!(cdx_dev->res[i].flags & IORESOURCE_READONLY)) in vfio_cdx_open_device()
48 ret = cdx_clear_master(cdx_dev); in vfio_cdx_open_device()
74 struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev); in vfio_cdx_bm_ctrl() local
91 return cdx_clear_master(cdx_dev); in vfio_cdx_bm_ctrl()
93 return cdx_set_master(cdx_dev); in vfio_cdx_bm_ctrl()
114 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_ioctl_get_info() local
126 info.num_regions = cdx_dev->res_count; in vfio_cdx_ioctl_get_info()
127 info.num_irqs = cdx_dev->num_msi ? 1 : 0; in vfio_cdx_ioctl_get_info()
136 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_ioctl_get_region_info() local
145 if (info.index >= cdx_dev->res_count) in vfio_cdx_ioctl_get_region_info()
160 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_ioctl_get_irq_info() local
172 if (!cdx_dev->num_msi) in vfio_cdx_ioctl_get_irq_info()
176 info.count = cdx_dev->num_msi; in vfio_cdx_ioctl_get_irq_info()
185 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_ioctl_set_irqs() local
194 ret = vfio_set_irqs_validate_and_prepare(&hdr, cdx_dev->num_msi, in vfio_cdx_ioctl_set_irqs()
260 struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev); in vfio_cdx_mmap() local
265 if (index >= cdx_dev->res_count) in vfio_cdx_mmap()
294 static int vfio_cdx_probe(struct cdx_device *cdx_dev) in vfio_cdx_probe() argument
297 struct device *dev = &cdx_dev->dev; in vfio_cdx_probe()
317 static int vfio_cdx_remove(struct cdx_device *cdx_dev) in vfio_cdx_remove() argument
319 struct device *dev = &cdx_dev->dev; in vfio_cdx_remove()