Home
last modified time | relevance | path

Searched refs:virtqueue (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.3-rc2/include/linux/
A Dvirtio.h29 struct virtqueue { struct
31 void (*callback)(struct virtqueue *vq); argument
41 int virtqueue_add_outbuf(struct virtqueue *vq, argument
46 int virtqueue_add_inbuf(struct virtqueue *vq,
57 int virtqueue_add_sgs(struct virtqueue *vq,
64 bool virtqueue_kick(struct virtqueue *vq);
68 bool virtqueue_notify(struct virtqueue *vq);
75 void virtqueue_disable_cb(struct virtqueue *vq);
77 bool virtqueue_enable_cb(struct virtqueue *vq);
89 bool virtqueue_is_broken(struct virtqueue *vq);
[all …]
A Dvirtio_ring.h60 struct virtqueue;
68 struct virtqueue *vring_create_virtqueue(unsigned int index,
75 bool (*notify)(struct virtqueue *vq),
76 void (*callback)(struct virtqueue *vq),
83 struct virtqueue *vring_create_virtqueue_dma(unsigned int index,
90 bool (*notify)(struct virtqueue *vq),
91 void (*callback)(struct virtqueue *vq),
99 struct virtqueue *vring_new_virtqueue(unsigned int index,
106 bool (*notify)(struct virtqueue *vq),
107 void (*callback)(struct virtqueue *vq),
[all …]
A Dvirtio_config.h19 typedef void vq_callback_t(struct virtqueue *);
107 struct virtqueue *vqs[], vq_callback_t *callbacks[],
115 int (*set_vq_affinity)(struct virtqueue *vq,
121 int (*disable_vq_and_reset)(struct virtqueue *vq);
122 int (*enable_vq_after_reset)(struct virtqueue *vq);
210 struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev, in virtio_find_single_vq()
215 struct virtqueue *vq; in virtio_find_single_vq()
225 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs()
234 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs_ctx()
318 int virtqueue_set_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask) in virtqueue_set_affinity()
/linux-6.3-rc2/tools/virtio/linux/
A Dvirtio.h20 struct virtqueue { struct
22 void (*callback)(struct virtqueue *vq); argument
33 int virtqueue_add_sgs(struct virtqueue *vq, argument
40 int virtqueue_add_outbuf(struct virtqueue *vq,
45 int virtqueue_add_inbuf(struct virtqueue *vq,
50 bool virtqueue_kick(struct virtqueue *vq);
54 void virtqueue_disable_cb(struct virtqueue *vq);
56 bool virtqueue_enable_cb(struct virtqueue *vq);
67 bool (*notify)(struct virtqueue *vq),
68 void (*callback)(struct virtqueue *vq),
[all …]
A Dvirtio_config.h7 int (*disable_vq_and_reset)(struct virtqueue *vq);
8 int (*enable_vq_after_reset)(struct virtqueue *vq);
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_pci_common.h35 struct virtqueue *vq;
78 struct virtqueue *(*setup_vq)(struct virtio_pci_device *vp_dev,
81 void (*callback)(struct virtqueue *vq),
107 bool vp_notify(struct virtqueue *vq);
112 struct virtqueue *vqs[], vq_callback_t *callbacks[],
122 int vp_set_vq_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask);
A Dvirtio_ring.c155 struct virtqueue vq;
200 bool (*notify)(struct virtqueue *vq);
1111 bool (*notify)(struct virtqueue *), in vring_create_virtqueue_split() argument
1112 void (*callback)(struct virtqueue *), in vring_create_virtqueue_split() argument
1117 struct virtqueue *vq; in vring_create_virtqueue_split()
2007 bool (*notify)(struct virtqueue *), in vring_create_virtqueue_packed() argument
2008 void (*callback)(struct virtqueue *), in vring_create_virtqueue_packed() argument
2567 bool (*notify)(struct virtqueue *), in vring_create_virtqueue() argument
2591 bool (*notify)(struct virtqueue *), in vring_create_virtqueue_dma() argument
2836 struct virtqueue *_vq; in virtio_break_device()
[all …]
A Dvirtio_vdpa.c39 struct virtqueue *vq;
105 static bool virtio_vdpa_notify(struct virtqueue *vq) in virtio_vdpa_notify()
131 static struct virtqueue *
133 void (*callback)(struct virtqueue *vq), in virtio_vdpa_setup_vq()
142 struct virtqueue *vq; in virtio_vdpa_setup_vq()
246 static void virtio_vdpa_del_vq(struct virtqueue *vq) in virtio_vdpa_del_vq()
269 struct virtqueue *vq, *n; in virtio_vdpa_del_vqs()
276 struct virtqueue *vqs[], in virtio_vdpa_find_vqs()
A Dvirtio_pci_modern.c182 static int vp_active_vq(struct virtqueue *vq, u16 msix_vec) in vp_active_vq()
205 static int vp_modern_disable_vq_and_reset(struct virtqueue *vq) in vp_modern_disable_vq_and_reset()
244 static int vp_modern_enable_vq_after_reset(struct virtqueue *vq) in vp_modern_enable_vq_after_reset()
291 static struct virtqueue *setup_vq(struct virtio_pci_device *vp_dev, in setup_vq()
294 void (*callback)(struct virtqueue *vq), in setup_vq()
301 struct virtqueue *vq; in setup_vq()
348 struct virtqueue *vqs[], in vp_modern_find_vqs()
354 struct virtqueue *vq; in vp_modern_find_vqs()
371 struct virtqueue *vq = info->vq; in del_vq()
A Dvirtio_pci_common.c41 bool vp_notify(struct virtqueue *vq) in vp_notify()
174 static struct virtqueue *vp_setup_vq(struct virtio_device *vdev, unsigned int index, in vp_setup_vq()
175 void (*callback)(struct virtqueue *vq), in vp_setup_vq()
182 struct virtqueue *vq; in vp_setup_vq()
211 static void vp_del_vq(struct virtqueue *vq) in vp_del_vq()
235 struct virtqueue *vq, *n; in vp_del_vqs()
285 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_msix()
359 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_intx()
398 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs()
431 int vp_set_vq_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask) in vp_set_vq_affinity()
A Dvirtio_pci_legacy.c110 static struct virtqueue *setup_vq(struct virtio_pci_device *vp_dev, in setup_vq()
113 void (*callback)(struct virtqueue *vq), in setup_vq()
118 struct virtqueue *vq; in setup_vq()
173 struct virtqueue *vq = info->vq; in del_vq()
A Dvirtio_balloon.c57 struct virtqueue *inflate_vq, *deflate_vq, *stats_vq, *free_page_vq;
120 struct virtqueue *reporting_vq;
138 static void balloon_ack(struct virtqueue *vq) in balloon_ack()
145 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host()
166 struct virtqueue *vq = vb->reporting_vq; in virtballoon_free_page_report()
363 static void stats_request(struct virtqueue *vq) in stats_request()
375 struct virtqueue *vq; in stats_handle_request()
492 struct virtqueue *vqs[VIRTIO_BALLOON_VQ_MAX]; in init_vqs()
581 struct virtqueue *vq = vb->free_page_vq; in send_cmd_id_start()
600 struct virtqueue *vq = vb->free_page_vq; in send_cmd_id_stop()
[all …]
A Dvirtio_mmio.c98 struct virtqueue *vq;
278 static bool vm_notify(struct virtqueue *vq) in vm_notify()
318 static void vm_del_vq(struct virtqueue *vq) in vm_del_vq()
346 struct virtqueue *vq, *n; in vm_del_vqs()
361 static struct virtqueue *vm_setup_vq(struct virtio_device *vdev, unsigned int index, in vm_setup_vq()
362 void (*callback)(struct virtqueue *vq), in vm_setup_vq()
367 struct virtqueue *vq; in vm_setup_vq()
474 struct virtqueue *vqs[], in vm_find_vqs()
/linux-6.3-rc2/Documentation/driver-api/virtio/
A Dwriting_virtio_drivers.rst24 virtqueue definitions in the device. A basic driver skeleton could look
34 struct virtqueue *vq;
37 static void virtio_dummy_recv_cb(struct virtqueue *vq)
57 /* the device has a single virtqueue */
122 virtqueue. virtio_device_ready() is used to enable the virtqueue and to
145 appropriate virtqueue using any of the virtqueue_add_inbuf(),
149 `scatterlists`, respectively. Then, once the virtqueue is set up, a call
169 read the data produced by the device (if the virtqueue was set up with
176 The virtqueue callbacks can be disabled and re-enabled using the
188 device or the virtqueue (virtio_reset_device()).
/linux-6.3-rc2/net/vmw_vsock/
A Dvirtio_transport.c31 struct virtqueue *vqs[VSOCK_VQ_MAX];
91 struct virtqueue *vq; in virtio_transport_send_pkt_work()
132 struct virtqueue *rx_vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_send_pkt_work()
205 struct virtqueue *rx_vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_cancel_pkt()
225 struct virtqueue *vq; in virtio_vsock_rx_fill()
256 struct virtqueue *vq; in virtio_transport_tx_work()
286 struct virtqueue *vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_more_replies()
300 struct virtqueue *vq; in virtio_vsock_event_fill_one()
362 struct virtqueue *vq; in virtio_transport_event_work()
398 static void virtio_vsock_tx_done(struct virtqueue *vq) in virtio_vsock_tx_done()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/virtio/
A Dvirtgpu_trace.h12 TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
43 TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
48 TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
/linux-6.3-rc2/drivers/i2c/busses/
A Di2c-virtio.c31 struct virtqueue *vq;
48 static void virtio_i2c_msg_done(struct virtqueue *vq) in virtio_i2c_msg_done()
57 static int virtio_i2c_prepare_reqs(struct virtqueue *vq, in virtio_i2c_prepare_reqs()
109 static int virtio_i2c_complete_reqs(struct virtqueue *vq, in virtio_i2c_complete_reqs()
137 struct virtqueue *vq = vi->vq; in virtio_i2c_xfer()
/linux-6.3-rc2/drivers/nvdimm/
A Dvirtio_pmem.h36 struct virtqueue *req_vq;
53 void virtio_pmem_host_ack(struct virtqueue *vq);
/linux-6.3-rc2/Documentation/userspace-api/
A Dvduse.rst28 2. Setup each virtqueue with ioctl(VDUSE_VQ_SETUP) on /dev/vduse/$NAME.
104 add per-virtqueue configuration such as the max size of virtqueue to the device.
140 - VDUSE_GET_VQ_STATE: Get the state for virtqueue, userspace should return
141 avail index for split virtqueue or the device/driver ring wrap counters and
142 the avail and used index for packed virtqueue.
157 1. Get the specified virtqueue's information with the VDUSE_VQ_GET_INFO ioctl,
230 5. Inject an interrupt for specific virtqueue with the VDUSE_INJECT_VQ_IRQ ioctl
/linux-6.3-rc2/drivers/bluetooth/
A Dvirtio_bt.c24 struct virtqueue *vqs[VIRTBT_NUM_VQS];
31 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; in virtbt_add_inbuf()
77 struct virtqueue *vq = vbt->vqs[i]; in virtbt_close_vdev()
238 static void virtbt_tx_done(struct virtqueue *vq) in virtbt_tx_done()
247 static void virtbt_rx_done(struct virtqueue *vq) in virtbt_rx_done()
/linux-6.3-rc2/sound/virtio/
A Dvirtio_pcm.h103 void virtsnd_pcm_tx_notify_cb(struct virtqueue *vqueue);
105 void virtsnd_pcm_rx_notify_cb(struct virtqueue *vqueue);
/linux-6.3-rc2/drivers/char/
A Dvirtio_console.c145 struct virtqueue *c_ivq, *c_ovq;
154 struct virtqueue **in_vqs, **out_vqs;
186 struct virtqueue *in_vq, *out_vq;
309 struct virtqueue *vq) in find_port_by_vq()
544 struct virtqueue *vq; in __send_control_msg()
601 struct virtqueue *out_vq; in __send_to_port()
1697 struct virtqueue *vq; in control_work_handler()
1732 static void out_intr(struct virtqueue *vq) in out_intr()
1745 static void in_intr(struct virtqueue *vq) in in_intr()
1840 struct virtqueue **vqs; in init_vqs()
[all …]
/linux-6.3-rc2/arch/um/drivers/
A Dvirtio_uml.c371 struct virtqueue *vq; in vu_req_read_message()
433 struct virtqueue *vq; in vu_req_interrupt()
777 static bool vu_notify(struct virtqueue *vq) in vu_notify()
805 struct virtqueue *vq = opaque; in vu_interrupt()
858 static void vu_del_vq(struct virtqueue *vq) in vu_del_vq()
881 struct virtqueue *vq, *n; in vu_del_vqs()
896 struct virtqueue *vq) in vu_setup_vq_call_fd()
946 struct virtqueue *vq; in vu_setup_vq()
1023 struct virtqueue *vq; in vu_find_vqs()
1405 struct virtqueue *vq; in virtio_uml_suspend()
[all …]
/linux-6.3-rc2/drivers/remoteproc/
A Dremoteproc_virtio.c65 static bool rproc_virtio_notify(struct virtqueue *vq) in rproc_virtio_notify()
103 static struct virtqueue *rp_find_vq(struct virtio_device *vdev, in rp_find_vq()
105 void (*callback)(struct virtqueue *vq), in rp_find_vq()
114 struct virtqueue *vq; in rp_find_vq()
168 struct virtqueue *vq, *n; in __rproc_virtio_del_vqs()
184 struct virtqueue *vqs[], in rproc_virtio_find_vqs()
/linux-6.3-rc2/drivers/crypto/virtio/
A Dvirtio_crypto_common.h22 struct virtqueue *vq;
35 struct virtqueue *ctrl_vq;

Completed in 48 milliseconds

123