/linux/drivers/vhost/ |
H A D | vhost.c | 49 #define vhost_used_event(vq) ((__virtio16 __user *)&vq->avail->ring[vq->num]) argument 50 #define vhost_avail_event(vq) ((__virtio16 __user *)&vq->used->ring[vq->num]) argument 53 static void vhost_disable_cross_endian(struct vhost_virtqueue *vq) in vhost_disable_cross_endian() 58 static void vhost_enable_cross_endian_big(struct vhost_virtqueue *vq) in vhost_enable_cross_endian_big() 63 static void vhost_enable_cross_endian_little(struct vhost_virtqueue *vq) in vhost_enable_cross_endian_little() 68 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian() 90 static long vhost_get_vring_endian(struct vhost_virtqueue *vq, u32 idx, in vhost_get_vring_endian() 104 static void vhost_init_is_le(struct vhost_virtqueue *vq) in vhost_init_is_le() 114 static void vhost_disable_cross_endian(struct vhost_virtqueue *vq) in vhost_disable_cross_endian() 118 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian() [all …]
|
H A D | test.c | 45 struct vhost_virtqueue *vq = &n->vqs[VHOST_TEST_VQ]; in handle_vq() local 98 struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue, in handle_vq_kick() local 131 struct vhost_virtqueue *vq) in vhost_test_stop_vq() 169 struct vhost_virtqueue *vq; in vhost_test_run() local 243 struct vhost_virtqueue *vq; in vhost_test_set_features() local 264 struct vhost_virtqueue *vq; in vhost_test_set_backend() local
|
H A D | scsi.c | 174 struct vhost_virtqueue vq; member 257 struct vhost_virtqueue *vq; in vhost_scsi_init_inflight() local 281 vhost_scsi_get_inflight(struct vhost_virtqueue *vq) in vhost_scsi_get_inflight() 434 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_allocate_evt() local 464 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_do_evt_work() local 513 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_complete_events() local 612 vhost_scsi_get_cmd(struct vhost_virtqueue *vq, struct vhost_scsi_tpg *tpg, in vhost_scsi_get_cmd() 934 struct vhost_virtqueue *vq, in vhost_scsi_send_bad_target() 952 vhost_scsi_get_desc(struct vhost_scsi *vs, struct vhost_virtqueue *vq, in vhost_scsi_get_desc() 1002 vhost_scsi_chk_size(struct vhost_virtqueue *vq, struct vhost_scsi_ctx *vc) in vhost_scsi_chk_size() [all …]
|
H A D | vsock.c | 91 struct vhost_virtqueue *vq) in vhost_transport_do_send_pkt() 262 struct vhost_virtqueue *vq; in vhost_transport_send_pkt_work() local 330 vhost_vsock_alloc_skb(struct vhost_virtqueue *vq, in vhost_vsock_alloc_skb() 392 struct vhost_virtqueue *vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_vsock_more_replies() local 480 struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue, in vhost_vsock_handle_tx_kick() local 557 struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue, in vhost_vsock_handle_rx_kick() local 567 struct vhost_virtqueue *vq; in vhost_vsock_start() local 635 struct vhost_virtqueue *vq = &vsock->vqs[i]; in vhost_vsock_stop() local 799 struct vhost_virtqueue *vq; in vhost_vsock_set_features() local
|
/linux/drivers/virtio/ |
H A D | virtio_ring.c | 63 #define START_USE(vq) argument 64 #define END_USE(vq) argument 65 #define LAST_ADD_TIME_UPDATE(vq) argument 66 #define LAST_ADD_TIME_CHECK(vq) argument 67 #define LAST_ADD_TIME_INVALID(vq) argument 163 struct virtqueue vq; member 235 static bool virtqueue_use_indirect(const struct vring_virtqueue *vq, in virtqueue_use_indirect() 357 static struct device *vring_dma_dev(const struct vring_virtqueue *vq) in vring_dma_dev() 363 static int vring_map_one_sg(const struct vring_virtqueue *vq, struct scatterlist *sg, in vring_map_one_sg() 401 static dma_addr_t vring_map_single(const struct vring_virtqueue *vq, in vring_map_single() [all …]
|
H A D | virtio_pci_common.c | 51 bool vp_notify(struct virtqueue *vq) in vp_notify() 207 void (*callback)(struct virtqueue *vq), in vp_setup_vq() 215 struct virtqueue *vq; in vp_setup_vq() local 247 static void vp_del_vq(struct virtqueue *vq, struct virtio_pci_vq_info *info) in vp_del_vq() 271 struct virtqueue *vq, *n; in vp_del_vqs() local 337 struct virtqueue *vq; in vp_find_one_vq_msix() local 386 struct virtqueue *vq; in vp_find_vqs_msix() local 464 struct virtqueue *vq; in vp_find_vqs_intx() local 560 int vp_set_vq_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask) in vp_set_vq_affinity()
|
H A D | virtio_mmio.c | 99 struct virtqueue *vq; member 279 static bool vm_notify(struct virtqueue *vq) in vm_notify() 289 static bool vm_notify_with_data(struct virtqueue *vq) in vm_notify_with_data() 329 static void vm_del_vq(struct virtqueue *vq) in vm_del_vq() 357 struct virtqueue *vq, *n; in vm_del_vqs() local 373 void (*callback)(struct virtqueue *vq), in vm_setup_vq() 379 struct virtqueue *vq; in vm_setup_vq() local
|
H A D | virtio_pci_legacy.c | 113 void (*callback)(struct virtqueue *vq), in setup_vq() 118 struct virtqueue *vq; in setup_vq() local 173 struct virtqueue *vq = info->vq; in del_vq() local
|
H A D | virtio_balloon.c | 176 static void balloon_ack(struct virtqueue *vq) in balloon_ack() 183 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host() 204 struct virtqueue *vq = vb->reporting_vq; in virtballoon_free_page_report() local 434 static void stats_request(struct virtqueue *vq) in stats_request() 448 struct virtqueue *vq; in stats_handle_request() local 662 struct virtqueue *vq = vb->free_page_vq; in send_cmd_id_start() local 681 struct virtqueue *vq = vb->free_page_vq; in send_cmd_id_stop() local 697 struct virtqueue *vq = vb->free_page_vq; in get_free_page_and_send() local
|
/linux/arch/arm64/include/uapi/asm/ |
H A D | sve_context.h | 42 #define __sve_vl_from_vq(vq) ((vq) * __SVE_VQ_BYTES) argument 44 #define __SVE_ZREG_SIZE(vq) ((__u32)(vq) * __SVE_VQ_BYTES) argument 45 #define __SVE_PREG_SIZE(vq) ((__u32)(vq) * (__SVE_VQ_BYTES / 8)) argument 46 #define __SVE_FFR_SIZE(vq) __SVE_PREG_SIZE(vq) argument 49 #define __SVE_ZREG_OFFSET(vq, n) \ argument 51 #define __SVE_ZREGS_SIZE(vq) \ argument 54 #define __SVE_PREGS_OFFSET(vq) \ argument 56 #define __SVE_PREG_OFFSET(vq, n) \ argument 58 #define __SVE_PREGS_SIZE(vq) \ argument 61 #define __SVE_FFR_OFFSET(vq) \ argument
|
H A D | sigcontext.h | 220 #define sve_vl_from_vq(vq) __sve_vl_from_vq(vq) argument 285 #define SVE_SIG_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) argument 286 #define SVE_SIG_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) argument 287 #define SVE_SIG_FFR_SIZE(vq) __SVE_FFR_SIZE(vq) argument 295 #define SVE_SIG_ZREG_OFFSET(vq, n) \ argument 297 #define SVE_SIG_ZREGS_SIZE(vq) __SVE_ZREGS_SIZE(vq) argument 299 #define SVE_SIG_PREGS_OFFSET(vq) \ argument 301 #define SVE_SIG_PREG_OFFSET(vq, n) \ argument 303 #define SVE_SIG_PREGS_SIZE(vq) __SVE_PREGS_SIZE(vq) argument 305 #define SVE_SIG_FFR_OFFSET(vq) \ argument [all …]
|
/linux/net/vmw_vsock/ |
H A D | virtio_transport.c | 98 static int virtio_transport_send_skb(struct sk_buff *skb, struct virtqueue *vq, in virtio_transport_send_skb() 159 struct virtqueue *vq; in virtio_transport_send_pkt_work() local 216 struct virtqueue *vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_skb_fast_path() local 312 struct virtqueue *vq; in virtio_vsock_rx_fill() local 343 struct virtqueue *vq; in virtio_transport_tx_work() local 373 struct virtqueue *vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_more_replies() local 387 struct virtqueue *vq; in virtio_vsock_event_fill_one() local 449 struct virtqueue *vq; in virtio_transport_event_work() local 476 static void virtio_vsock_event_done(struct virtqueue *vq) in virtio_vsock_event_done() 485 static void virtio_vsock_tx_done(struct virtqueue *vq) in virtio_vsock_tx_done() [all …]
|
/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim.c | 84 struct vdpasim_virtqueue *vq = in vdpasim_vq_notify() local 95 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_queue_ready() local 128 struct vdpasim_virtqueue *vq) in vdpasim_vq_reset() 297 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_address() local 309 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_num() local 317 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_get_vq_size() local 328 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_kick_vq() local 344 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_cb() local 353 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_ready() local 368 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_get_vq_ready() local [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-virtio.c | 31 struct virtqueue *vq; member 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() local
|
/linux/tools/virtio/ |
H A D | vringh_test.c | 27 static bool never_notify_host(struct virtqueue *vq) in never_notify_host() 32 static void never_callback_guest(struct virtqueue *vq) in never_callback_guest() 70 static bool parallel_notify_host(struct virtqueue *vq) in parallel_notify_host() 83 static bool no_notify_host(struct virtqueue *vq) in no_notify_host() 297 struct virtqueue *vq; in parallel_test() local 445 struct virtqueue *vq; in main() local
|
H A D | vhost_net_test.c | 42 struct virtqueue *vq; member 138 static bool vq_notify(struct virtqueue *vq) in vq_notify() 257 static void wait_for_interrupt(struct vq_info *vq) in wait_for_interrupt() 275 static void run_tx_test(struct vdev_info *dev, struct vq_info *vq, in run_tx_test() 342 static void run_rx_test(struct vdev_info *dev, struct vq_info *vq, in run_rx_test()
|
H A D | virtio_test.c | 35 struct virtqueue *vq; member 53 bool vq_notify(struct virtqueue *vq) in vq_notify() 63 void vq_callback(struct virtqueue *vq) in vq_callback() 169 static void run_test(struct vdev_info *dev, struct vq_info *vq, in run_test()
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_vb2.c | 29 static int _queue_setup(struct vb2_queue *vq, in _queue_setup() 80 static int _start_streaming(struct vb2_queue *vq, unsigned int count) in _start_streaming() 88 static void _stop_streaming(struct vb2_queue *vq) in _stop_streaming() 106 static void _dmxdev_lock(struct vb2_queue *vq) in _dmxdev_lock() 114 static void _dmxdev_unlock(struct vb2_queue *vq) in _dmxdev_unlock()
|
/linux/tools/testing/selftests/arm64/fp/ |
H A D | fp-ptrace.c | 359 int ret, vq; check_ptrace_values_sve() local 436 int ret, vq; check_ptrace_values_ssve() local 511 int ret, vq; check_ptrace_values_za() local 788 fill_random_ffr(void * buf,size_t vq) fill_random_ffr() argument 809 int vq = __sve_vq_from_vl(vl); fpsimd_to_sve() local 824 int vq = __sve_vq_from_vl(vl_in(config)); set_initial_values() local 882 int vq, sme_vq; check_memory_values() local 1031 int ret, vl, vq, regset; sve_write() local 1121 int ret, vq; za_write() local 1296 unsigned int vq; probe_vls() local [all...] |
H A D | sve-ptrace.c | 335 unsigned int vq = sve_vq_from_vl(vl); ptrace_set_sve_get_sve_data() local 430 unsigned int vq = sve_vq_from_vl(vl); ptrace_set_sve_get_fpsimd_data() local 514 unsigned int vq = sve_vq_from_vl(vl); ptrace_set_fpsimd_get_sve_data() local 621 unsigned int vq, vl; do_parent() local [all...] |
/linux/drivers/bluetooth/ |
H A D | virtio_bt.c | 31 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; in virtbt_add_inbuf() local 77 struct virtqueue *vq = vbt->vqs[i]; in virtbt_close_vdev() local 239 static void virtbt_tx_done(struct virtqueue *vq) in virtbt_tx_done() 248 static void virtbt_rx_done(struct virtqueue *vq) in virtbt_rx_done()
|
/linux/drivers/scsi/ |
H A D | virtio_scsi.c | 73 struct virtqueue *vq; member 183 struct virtqueue *vq = virtscsi_vq->vq; in virtscsi_vq_done() local 195 static void virtscsi_req_done(struct virtqueue *vq) in virtscsi_req_done() 223 static void virtscsi_ctrl_done(struct virtqueue *vq) in virtscsi_ctrl_done() 421 static void virtscsi_event_done(struct virtqueue *vq) in virtscsi_event_done() 429 static int __virtscsi_add_cmd(struct virtqueue *vq, in __virtscsi_add_cmd() 474 static void virtscsi_kick_vq(struct virtio_scsi_vq *vq) in virtscsi_kick_vq() 495 static int virtscsi_add_cmd(struct virtio_scsi_vq *vq, in virtscsi_add_cmd() 825 struct virtqueue *vq) in virtscsi_init_vq()
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-mem2mem.c | 578 struct vb2_queue *vq; in v4l2_m2m_reqbufs() local 592 static void v4l2_m2m_adjust_mem_offset(struct vb2_queue *vq, in v4l2_m2m_adjust_mem_offset() 612 struct vb2_queue *vq; in v4l2_m2m_querybuf() local 765 struct vb2_queue *vq; in v4l2_m2m_qbuf() local 803 struct vb2_queue *vq; in v4l2_m2m_dqbuf() local 822 struct vb2_queue *vq; in v4l2_m2m_prepare_buf() local 840 struct vb2_queue *vq; in v4l2_m2m_create_bufs() local 850 struct vb2_queue *vq; in v4l2_m2m_expbuf() local 860 struct vb2_queue *vq; in v4l2_m2m_streamon() local 989 struct vb2_queue *vq; in v4l2_m2m_mmap() local [all …]
|
/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_core.c | 30 static void virtcrypto_ctrlq_callback(struct virtqueue *vq) in virtcrypto_ctrlq_callback() 76 struct virtqueue *vq = data_vq->vq; in virtcrypto_done_task() local 89 static void virtcrypto_dataq_callback(struct virtqueue *vq) in virtcrypto_dataq_callback() 479 struct virtqueue *vq; in virtcrypto_free_unused_reqs() local
|
/linux/arch/um/drivers/ |
H A D | virtio_uml.c | 381 struct virtqueue *vq; in vu_req_read_message() local 443 struct virtqueue *vq; in vu_req_interrupt() local 789 static bool vu_notify(struct virtqueue *vq) in vu_notify() 817 struct virtqueue *vq = opaque; in vu_interrupt() local 870 static void vu_del_vq(struct virtqueue *vq) in vu_del_vq() 893 struct virtqueue *vq, *n; in vu_del_vqs() local 908 struct virtqueue *vq) in vu_setup_vq_call_fd() 962 struct virtqueue *vq; in vu_setup_vq() local 1039 struct virtqueue *vq; in vu_find_vqs() local 1425 struct virtqueue *vq; in virtio_uml_suspend() local [all …]
|