Home
last modified time | relevance | path

Searched refs:virtio_device (Results 1 – 25 of 43) sorted by relevance

12

/Linux-v5.4/include/linux/
Dvirtio_config.h71 void (*get)(struct virtio_device *vdev, unsigned offset,
73 void (*set)(struct virtio_device *vdev, unsigned offset,
75 u32 (*generation)(struct virtio_device *vdev);
76 u8 (*get_status)(struct virtio_device *vdev);
77 void (*set_status)(struct virtio_device *vdev, u8 status);
78 void (*reset)(struct virtio_device *vdev);
79 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
83 void (*del_vqs)(struct virtio_device *);
84 u64 (*get_features)(struct virtio_device *vdev);
85 int (*finalize_features)(struct virtio_device *vdev);
[all …]
Dvirtio.h32 struct virtio_device *vdev;
108 struct virtio_device { struct
123 static inline struct virtio_device *dev_to_virtio(struct device *_dev) in dev_to_virtio() argument
125 return container_of(_dev, struct virtio_device, dev); in dev_to_virtio()
128 void virtio_add_status(struct virtio_device *dev, unsigned int status);
129 int register_virtio_device(struct virtio_device *dev);
130 void unregister_virtio_device(struct virtio_device *dev);
132 void virtio_break_device(struct virtio_device *dev);
134 void virtio_config_changed(struct virtio_device *dev);
135 void virtio_config_disable(struct virtio_device *dev);
[all …]
Dvirtio_ring.h60 struct virtio_device;
72 struct virtio_device *vdev,
83 struct virtio_device *vdev,
97 struct virtio_device *vdev,
112 void vring_transport_features(struct virtio_device *vdev);
Dblk-mq-virtio.h6 struct virtio_device;
9 struct virtio_device *vdev, int first_vec);
Dvringh.h57 struct virtio_device;
58 typedef void vrh_callback_t(struct virtio_device *, struct vringh *);
60 int (*find_vrhs)(struct virtio_device *vdev, unsigned nhvrs,
62 void (*del_vrhs)(struct virtio_device *vdev);
/Linux-v5.4/tools/virtio/linux/
Dvirtio_config.h13 static inline bool __virtio_test_bit(const struct virtio_device *vdev, in __virtio_test_bit()
24 static inline void __virtio_set_bit(struct virtio_device *vdev, in __virtio_set_bit()
35 static inline void __virtio_clear_bit(struct virtio_device *vdev, in __virtio_clear_bit()
48 static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev) in virtio_has_iommu_quirk()
57 static inline bool virtio_is_little_endian(struct virtio_device *vdev) in virtio_is_little_endian()
64 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu()
69 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16()
74 static inline u32 virtio32_to_cpu(struct virtio_device *vdev, __virtio32 val) in virtio32_to_cpu()
79 static inline __virtio32 cpu_to_virtio32(struct virtio_device *vdev, u32 val) in cpu_to_virtio32()
84 static inline u64 virtio64_to_cpu(struct virtio_device *vdev, __virtio64 val) in virtio64_to_cpu()
[all …]
Dvirtio.h11 struct virtio_device { struct
22 struct virtio_device *vdev; argument
59 struct virtio_device *vdev,
/Linux-v5.4/drivers/virtio/
Dvirtio.c15 struct virtio_device *dev = dev_to_virtio(_d); in device_show()
23 struct virtio_device *dev = dev_to_virtio(_d); in vendor_show()
31 struct virtio_device *dev = dev_to_virtio(_d); in status_show()
39 struct virtio_device *dev = dev_to_virtio(_d); in modalias_show()
48 struct virtio_device *dev = dev_to_virtio(_d); in features_show()
72 static inline int virtio_id_match(const struct virtio_device *dev, in virtio_id_match()
86 struct virtio_device *dev = dev_to_virtio(_dv); in virtio_dev_match()
98 struct virtio_device *dev = dev_to_virtio(_dv); in virtio_uevent()
104 void virtio_check_driver_offered_feature(const struct virtio_device *vdev, in virtio_check_driver_offered_feature()
124 static void __virtio_config_changed(struct virtio_device *dev) in __virtio_config_changed()
[all …]
Dvirtio_pci_common.h44 struct virtio_device vdev;
118 static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) in to_vp_device()
124 void vp_synchronize_vectors(struct virtio_device *vdev);
128 void vp_del_vqs(struct virtio_device *vdev);
130 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs,
134 const char *vp_bus_name(struct virtio_device *vdev);
143 const struct cpumask *vp_get_vq_affinity(struct virtio_device *vdev, int index);
Dvirtio_mmio.c84 struct virtio_device vdev;
107 static u64 vm_get_features(struct virtio_device *vdev) in vm_get_features()
122 static int vm_finalize_features(struct virtio_device *vdev) in vm_finalize_features()
147 static void vm_get(struct virtio_device *vdev, unsigned offset, in vm_get()
189 static void vm_set(struct virtio_device *vdev, unsigned offset, in vm_set()
232 static u32 vm_generation(struct virtio_device *vdev) in vm_generation()
242 static u8 vm_get_status(struct virtio_device *vdev) in vm_get_status()
249 static void vm_set_status(struct virtio_device *vdev, u8 status) in vm_set_status()
259 static void vm_reset(struct virtio_device *vdev) in vm_reset()
337 static void vm_del_vqs(struct virtio_device *vdev) in vm_del_vqs()
[all …]
Dvirtio_pci_legacy.c20 static u64 vp_get_features(struct virtio_device *vdev) in vp_get_features()
30 static int vp_finalize_features(struct virtio_device *vdev) in vp_finalize_features()
47 static void vp_get(struct virtio_device *vdev, unsigned offset, in vp_get()
63 static void vp_set(struct virtio_device *vdev, unsigned offset, in vp_set()
78 static u8 vp_get_status(struct virtio_device *vdev) in vp_get_status()
84 static void vp_set_status(struct virtio_device *vdev, u8 status) in vp_set_status()
92 static void vp_reset(struct virtio_device *vdev) in vp_reset()
Dvirtio_pci_common.c28 void vp_synchronize_vectors(struct virtio_device *vdev) in vp_synchronize_vectors()
102 static int vp_request_msix_vectors(struct virtio_device *vdev, int nvectors, in vp_request_msix_vectors()
174 static struct virtqueue *vp_setup_vq(struct virtio_device *vdev, unsigned index, in vp_setup_vq()
226 void vp_del_vqs(struct virtio_device *vdev) in vp_del_vqs()
279 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_msix()
353 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_intx()
392 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs()
411 const char *vp_bus_name(struct virtio_device *vdev) in vp_bus_name()
425 struct virtio_device *vdev = vq->vdev; in vp_set_vq_affinity()
447 const struct cpumask *vp_get_vq_affinity(struct virtio_device *vdev, int index) in vp_get_vq_affinity()
[all …]
Dvirtio_pci_modern.c140 static u64 vp_get_features(struct virtio_device *vdev) in vp_get_features()
153 static void vp_transport_features(struct virtio_device *vdev, u64 features) in vp_transport_features()
164 static int vp_finalize_features(struct virtio_device *vdev) in vp_finalize_features()
190 static void vp_get(struct virtio_device *vdev, unsigned offset, in vp_get()
226 static void vp_set(struct virtio_device *vdev, unsigned offset, in vp_set()
260 static u32 vp_generation(struct virtio_device *vdev) in vp_generation()
267 static u8 vp_get_status(struct virtio_device *vdev) in vp_get_status()
273 static void vp_set_status(struct virtio_device *vdev, u8 status) in vp_set_status()
281 static void vp_reset(struct virtio_device *vdev) in vp_reset()
402 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_modern_find_vqs()
Dvirtio_input.c11 struct virtio_device *vdev;
201 static int virtinput_probe(struct virtio_device *vdev) in virtinput_probe()
314 static void virtinput_remove(struct virtio_device *vdev) in virtinput_remove()
333 static int virtinput_freeze(struct virtio_device *vdev) in virtinput_freeze()
346 static int virtinput_restore(struct virtio_device *vdev) in virtinput_restore()
/Linux-v5.4/drivers/remoteproc/
Dremoteproc_virtio.c65 static struct virtqueue *rp_find_vq(struct virtio_device *vdev, in rp_find_vq()
126 static void __rproc_virtio_del_vqs(struct virtio_device *vdev) in __rproc_virtio_del_vqs()
138 static void rproc_virtio_del_vqs(struct virtio_device *vdev) in rproc_virtio_del_vqs()
143 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs()
173 static u8 rproc_virtio_get_status(struct virtio_device *vdev) in rproc_virtio_get_status()
183 static void rproc_virtio_set_status(struct virtio_device *vdev, u8 status) in rproc_virtio_set_status()
194 static void rproc_virtio_reset(struct virtio_device *vdev) in rproc_virtio_reset()
206 static u64 rproc_virtio_get_features(struct virtio_device *vdev) in rproc_virtio_get_features()
216 static void rproc_transport_features(struct virtio_device *vdev) in rproc_transport_features()
226 static int rproc_virtio_finalize_features(struct virtio_device *vdev) in rproc_virtio_finalize_features()
[all …]
/Linux-v5.4/drivers/char/hw_random/
Dvirtio-rng.c87 static int probe_common(struct virtio_device *vdev) in probe_common()
129 static void remove_common(struct virtio_device *vdev) in remove_common()
145 static int virtrng_probe(struct virtio_device *vdev) in virtrng_probe()
150 static void virtrng_remove(struct virtio_device *vdev) in virtrng_remove()
155 static void virtrng_scan(struct virtio_device *vdev) in virtrng_scan()
166 static int virtrng_freeze(struct virtio_device *vdev) in virtrng_freeze()
172 static int virtrng_restore(struct virtio_device *vdev) in virtrng_restore()
/Linux-v5.4/drivers/misc/mic/vop/
Dvop_main.c45 struct virtio_device vdev;
103 static u64 vop_get_features(struct virtio_device *vdev) in vop_get_features()
119 static void vop_transport_features(struct virtio_device *vdev) in vop_transport_features()
129 static int vop_finalize_features(struct virtio_device *vdev) in vop_finalize_features()
158 static void vop_get(struct virtio_device *vdev, unsigned int offset, in vop_get()
168 static void vop_set(struct virtio_device *vdev, unsigned int offset, in vop_set()
183 static u8 vop_get_status(struct virtio_device *vdev) in vop_get_status()
188 static void vop_set_status(struct virtio_device *dev, u8 status) in vop_set_status()
200 static void vop_reset_inform_host(struct virtio_device *dev) in vop_reset_inform_host()
224 static void vop_reset(struct virtio_device *dev) in vop_reset()
[all …]
/Linux-v5.4/drivers/gpu/drm/virtio/
Dvirtgpu_drv.c46 static int virtio_gpu_pci_quirk(struct drm_device *dev, struct virtio_device *vdev) in virtio_gpu_pci_quirk()
97 static int virtio_gpu_probe(struct virtio_device *vdev) in virtio_gpu_probe()
135 static void virtio_gpu_remove(struct virtio_device *vdev) in virtio_gpu_remove()
144 static void virtio_gpu_config_changed(struct virtio_device *vdev) in virtio_gpu_config_changed()
/Linux-v5.4/drivers/platform/mellanox/
Dmlxbf-tmfifo.c116 struct virtio_device vdev;
291 struct virtio_device *vdev = vring->vq->vdev; in mlxbf_tmfifo_get_next_desc()
312 struct virtio_device *vdev = vring->vq->vdev; in mlxbf_tmfifo_release_desc()
334 struct virtio_device *vdev = vring->vq->vdev; in mlxbf_tmfifo_get_pkt_len()
372 struct virtio_device *vdev = vring->vq->vdev; in mlxbf_tmfifo_init_net_desc()
416 struct virtio_device *vdev = &cons->vdev; in mlxbf_tmfifo_console_output_one()
563 struct virtio_device *vdev = vring->vq->vdev; in mlxbf_tmfifo_rxtx_word()
676 struct virtio_device *vdev; in mlxbf_tmfifo_rxtx_one_desc()
874 static u64 mlxbf_tmfifo_virtio_get_features(struct virtio_device *vdev) in mlxbf_tmfifo_virtio_get_features()
882 static int mlxbf_tmfifo_virtio_finalize_features(struct virtio_device *vdev) in mlxbf_tmfifo_virtio_finalize_features()
[all …]
/Linux-v5.4/arch/um/drivers/
Dvirtio_uml.c46 struct virtio_device vdev;
694 static void vu_get(struct virtio_device *vdev, unsigned offset, in vu_get()
702 static void vu_set(struct virtio_device *vdev, unsigned offset, in vu_set()
710 static u8 vu_get_status(struct virtio_device *vdev) in vu_get_status()
717 static void vu_set_status(struct virtio_device *vdev, u8 status) in vu_set_status()
724 static void vu_reset(struct virtio_device *vdev) in vu_reset()
744 static void vu_del_vqs(struct virtio_device *vdev) in vu_del_vqs()
796 static struct virtqueue *vu_setup_vq(struct virtio_device *vdev, in vu_setup_vq()
864 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs()
911 static u64 vu_get_features(struct virtio_device *vdev) in vu_get_features()
[all …]
/Linux-v5.4/drivers/crypto/virtio/
Dvirtio_crypto_core.c278 struct virtio_device *vdev = vcrypto->vdev; in virtcrypto_del_vqs()
287 static int virtcrypto_probe(struct virtio_device *vdev) in virtcrypto_probe()
431 static void virtcrypto_remove(struct virtio_device *vdev) in virtcrypto_remove()
447 static void virtcrypto_config_changed(struct virtio_device *vdev) in virtcrypto_config_changed()
455 static int virtcrypto_freeze(struct virtio_device *vdev) in virtcrypto_freeze()
469 static int virtcrypto_restore(struct virtio_device *vdev) in virtcrypto_restore()
/Linux-v5.4/drivers/block/
Dvirtio_blk.c36 struct virtio_device *vdev;
447 struct virtio_device *vdev = vblk->vdev; in virtblk_update_capacity()
493 static void virtblk_config_changed(struct virtio_device *vdev) in virtblk_config_changed()
508 struct virtio_device *vdev = vblk->vdev; in init_vq()
585 static int virtblk_get_cache_mode(struct virtio_device *vdev) in virtblk_get_cache_mode()
604 static void virtblk_update_cache_mode(struct virtio_device *vdev) in virtblk_update_cache_mode()
623 struct virtio_device *vdev = vblk->vdev; in cache_type_store()
661 struct virtio_device *vdev = vblk->vdev; in virtblk_attrs_are_visible()
724 static int virtblk_probe(struct virtio_device *vdev) in virtblk_probe()
925 static void virtblk_remove(struct virtio_device *vdev) in virtblk_remove()
[all …]
/Linux-v5.4/drivers/scsi/
Dvirtio_scsi.c72 struct virtio_device *vdev;
92 static inline struct Scsi_Host *virtio_scsi_host(struct virtio_device *vdev) in virtio_scsi_host()
492 static void virtio_scsi_init_hdr(struct virtio_device *vdev, in virtio_scsi_init_hdr()
507 static void virtio_scsi_init_hdr_pi(struct virtio_device *vdev, in virtio_scsi_init_hdr_pi()
768 static void virtscsi_remove_vqs(struct virtio_device *vdev) in virtscsi_remove_vqs()
775 static int virtscsi_init(struct virtio_device *vdev, in virtscsi_init()
831 static int virtscsi_probe(struct virtio_device *vdev) in virtscsi_probe()
915 static void virtscsi_remove(struct virtio_device *vdev) in virtscsi_remove()
929 static int virtscsi_freeze(struct virtio_device *vdev) in virtscsi_freeze()
935 static int virtscsi_restore(struct virtio_device *vdev) in virtscsi_restore()
/Linux-v5.4/drivers/s390/virtio/
Dvirtio_ccw.c57 struct virtio_device vdev;
186 static struct virtio_ccw_device *to_vc_device(struct virtio_device *vdev) in to_vc_device()
493 static void virtio_ccw_del_vqs(struct virtio_device *vdev) in virtio_ccw_del_vqs()
511 static struct virtqueue *virtio_ccw_setup_vq(struct virtio_device *vdev, in virtio_ccw_setup_vq()
652 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs()
735 static void virtio_ccw_reset(struct virtio_device *vdev) in virtio_ccw_reset()
756 static u64 virtio_ccw_get_features(struct virtio_device *vdev) in virtio_ccw_get_features()
806 static void ccw_transport_features(struct virtio_device *vdev) in ccw_transport_features()
813 static int virtio_ccw_finalize_features(struct virtio_device *vdev) in virtio_ccw_finalize_features()
872 static void virtio_ccw_get_config(struct virtio_device *vdev, in virtio_ccw_get_config()
[all …]
/Linux-v5.4/drivers/nvdimm/
Dvirtio_pmem.c32 static int virtio_pmem_probe(struct virtio_device *vdev) in virtio_pmem_probe()
102 static void virtio_pmem_remove(struct virtio_device *vdev) in virtio_pmem_remove()

12