Lines Matching +full:virtio +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0 */
4 /* Everything a virtio driver needs to work with any particular virtio
9 #include <linux/device.h>
14 * virtqueue - a queue to register buffers for sending or receiving.
15 * @list: the chain of virtqueues for this device
18 * @vdev: the virtio device this queue was created for.
20 * @index: the zero-based ordinal number for this queue.
93 * virtio_device - representation of a device using virtio
94 * @index: unique position on the virtio bus
99 * @dev: underlying device.
100 * @id: the device type identification (used to match it with a driver).
101 * @config: the configuration ops for this device.
103 * @vqs: the list of virtqueues for this device.
104 * @features: the features supported by both driver and device.
114 struct device dev;
123 static inline struct virtio_device *dev_to_virtio(struct device *_dev) in dev_to_virtio()
131 bool is_virtio_device(struct device *dev);
145 list_for_each_entry(vq, &vdev->vqs, list)
148 * virtio_driver - operations for a virtio I/O driver
149 * @driver: underlying device driver (populate name and owner).
155 * @probe: the function to call when a device is found. Returns 0 or -errno.
157 * for virtio-scsi to invoke a scan.
158 * @remove: the function to call when a device is removed.
159 * @config_changed: optional function to call when the device configuration
190 /* module_virtio_driver() - Helper macro for drivers that don't do