Searched refs:cdx_dev (Results 1 – 5 of 5) sorted by relevance
87 static void cdx_destroy_res_attr(struct cdx_device *cdx_dev, int num);97 struct cdx_device *cdx_dev = to_cdx_device(dev); in cdx_dev_reset() local98 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_dev_reset()106 cdx_drv->reset_prepare(cdx_dev); in cdx_dev_reset()109 ret = cdx->ops->dev_configure(cdx, cdx_dev->bus_num, in cdx_dev_reset()110 cdx_dev->dev_num, &dev_config); in cdx_dev_reset()116 cdx_drv->reset_done(cdx_dev); in cdx_dev_reset()149 struct cdx_device *cdx_dev = to_cdx_device(dev); in cdx_unregister_device() local150 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_unregister_device()152 if (cdx_dev->is_bus) { in cdx_unregister_device()[all …]
22 struct cdx_device *cdx_dev = to_cdx_device(msi_desc->dev); in cdx_msi_write_msg() local28 cdx_dev->msi_write_pending = true; in cdx_msi_write_msg()34 struct cdx_device *cdx_dev = to_cdx_device(msi_desc->dev); in cdx_msi_write_irq_lock() local36 mutex_lock(&cdx_dev->irqchip_lock); in cdx_msi_write_irq_lock()42 struct cdx_device *cdx_dev = to_cdx_device(msi_desc->dev); in cdx_msi_write_irq_unlock() local43 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_msi_write_irq_unlock()46 if (!cdx_dev->msi_write_pending) { in cdx_msi_write_irq_unlock()47 mutex_unlock(&cdx_dev->irqchip_lock); in cdx_msi_write_irq_unlock()51 cdx_dev->msi_write_pending = false; in cdx_msi_write_irq_unlock()52 mutex_unlock(&cdx_dev->irqchip_lock); in cdx_msi_write_irq_unlock()[all …]
15 struct cdx_device *cdx_dev = to_cdx_device(core_vdev->dev); in vfio_cdx_open_device() local16 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() local91 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() local126 info.num_regions = cdx_dev->res_count; in vfio_cdx_ioctl_get_info()[all …]
26 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_msi_enable() local34 ret = cdx_enable_msi(cdx_dev); in vfio_cdx_msi_enable()43 cdx_disable_msi(cdx_dev); in vfio_cdx_msi_enable()127 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_msi_disable() local136 cdx_disable_msi(cdx_dev); in vfio_cdx_msi_disable()149 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_set_msi_trigger() local152 if (start + count > cdx_dev->num_msi) in vfio_cdx_set_msi_trigger()167 ret = vfio_cdx_msi_enable(vdev, cdx_dev->num_msi); in vfio_cdx_set_msi_trigger()
253 int cdx_set_master(struct cdx_device *cdx_dev);261 int cdx_clear_master(struct cdx_device *cdx_dev);270 int cdx_enable_msi(struct cdx_device *cdx_dev);276 void cdx_disable_msi(struct cdx_device *cdx_dev);280 static inline int cdx_enable_msi(struct cdx_device *cdx_dev) in cdx_enable_msi() argument285 static inline void cdx_disable_msi(struct cdx_device *cdx_dev) in cdx_disable_msi() argument