• Home
  • Raw
  • Download

Lines Matching +full:virtio +full:- +full:iommu

1 /* SPDX-License-Identifier: GPL-2.0 */
39 * vDPA device - representation of a vDPA device
56 * vDPA IOVA range - the IOVA range support by the device
66 * vDPA_config_ops - operations for configuring a vDPA device.
89 * @cb: virtio-vdev interrupt callback structure
121 * @get_features: Get virtio features supported by the device
123 * Returns the virtio features support by the
125 * @set_features: Set virtio features supported by the driver
131 * @cb: virtio-vdev interrupt callback structure
135 * @get_device_id: Get virtio device id
137 * Returns u32: virtio device id
140 * Returns u32: virtio vendor id
143 * Returns u8: virtio device status
146 * @status: virtio device status
170 * specific DMA translation (on-chip IOMMU)
177 * specific DMA translation (on-chip IOMMU)
188 * specific DMA translation (on-chip IOMMU)
262 * vdpa_driver - operations for a vDPA driver
264 * @probe: the function to call when a device is found. Returns 0 or -errno.
294 return dev_get_drvdata(&vdev->dev); in vdpa_get_drvdata()
299 dev_set_drvdata(&vdev->dev, data); in vdpa_set_drvdata()
304 return vdev->dma_dev; in vdpa_get_dma_dev()
309 const struct vdpa_config_ops *ops = vdev->config; in vdpa_reset()
311 vdev->features_valid = false; in vdpa_reset()
312 ops->set_status(vdev, 0); in vdpa_reset()
317 const struct vdpa_config_ops *ops = vdev->config; in vdpa_set_features()
319 vdev->features_valid = true; in vdpa_set_features()
320 return ops->set_features(vdev, features); in vdpa_set_features()
327 const struct vdpa_config_ops *ops = vdev->config; in vdpa_get_config()
333 if (!vdev->features_valid) in vdpa_get_config()
335 ops->get_config(vdev, offset, buf, len); in vdpa_get_config()