/linux-4.19.296/drivers/virtio/ |
D | virtio_ring.c | 33 dev_err(&(_vq)->vq.vdev->dev, \ 34 "%s:"fmt, (_vq)->vq.name, ##args); \ 42 (_vq)->vq.name, (_vq)->in_use); \ 50 dev_err(&_vq->vq.vdev->dev, \ 51 "%s:"fmt, (_vq)->vq.name, ##args); \ 54 #define START_USE(vq) argument 55 #define END_USE(vq) argument 64 struct virtqueue vq; member 96 bool (*notify)(struct virtqueue *vq); 116 #define to_vvq(_vq) container_of(_vq, struct vring_virtqueue, vq) [all …]
|
D | virtio_pci_legacy.c | 117 void (*callback)(struct virtqueue *vq), in setup_vq() argument 122 struct virtqueue *vq; in setup_vq() local 138 vq = vring_create_virtqueue(index, num, in setup_vq() 142 if (!vq) in setup_vq() 145 q_pfn = virtqueue_get_desc_addr(vq) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT; in setup_vq() 157 vq->priv = (void __force *)vp_dev->ioaddr + VIRTIO_PCI_QUEUE_NOTIFY; in setup_vq() 168 return vq; in setup_vq() 173 vring_del_virtqueue(vq); in setup_vq() 179 struct virtqueue *vq = info->vq; in del_vq() local 180 struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); in del_vq() [all …]
|
D | virtio_mmio.c | 102 struct virtqueue *vq; member 277 static bool vm_notify(struct virtqueue *vq) in vm_notify() argument 279 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vq->vdev); in vm_notify() 283 writel(vq->index, vm_dev->base + VIRTIO_MMIO_QUEUE_NOTIFY); in vm_notify() 308 ret |= vring_interrupt(irq, info->vq); in vm_interrupt() 317 static void vm_del_vq(struct virtqueue *vq) in vm_del_vq() argument 319 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vq->vdev); in vm_del_vq() 320 struct virtio_mmio_vq_info *info = vq->priv; in vm_del_vq() 322 unsigned int index = vq->index; in vm_del_vq() 337 vring_del_virtqueue(vq); in vm_del_vq() [all …]
|
D | virtio_pci_common.c | 44 bool vp_notify(struct virtqueue *vq) in vp_notify() argument 48 iowrite16(vq->index, (void __iomem *)vq->priv); in vp_notify() 71 if (vring_interrupt(irq, info->vq) == IRQ_HANDLED) in vp_vring_interrupt() 178 void (*callback)(struct virtqueue *vq), in vp_setup_vq() argument 185 struct virtqueue *vq; in vp_setup_vq() local 192 vq = vp_dev->setup_vq(vp_dev, info, index, callback, name, ctx, in vp_setup_vq() 194 if (IS_ERR(vq)) in vp_setup_vq() 197 info->vq = vq; in vp_setup_vq() 207 return vq; in vp_setup_vq() 211 return vq; in vp_setup_vq() [all …]
|
D | virtio_pci_modern.c | 312 void (*callback)(struct virtqueue *vq), in setup_vq() argument 318 struct virtqueue *vq; in setup_vq() local 344 vq = vring_create_virtqueue(index, num, in setup_vq() 348 if (!vq) in setup_vq() 352 vp_iowrite16(virtqueue_get_vring_size(vq), &cfg->queue_size); in setup_vq() 353 vp_iowrite64_twopart(virtqueue_get_desc_addr(vq), in setup_vq() 355 vp_iowrite64_twopart(virtqueue_get_avail_addr(vq), in setup_vq() 357 vp_iowrite64_twopart(virtqueue_get_used_addr(vq), in setup_vq() 372 vq->priv = (void __force *)vp_dev->notify_base + in setup_vq() 375 vq->priv = (void __force *)map_capability(vp_dev->pci_dev, in setup_vq() [all …]
|
D | virtio_pci_common.h | 36 struct virtqueue *vq; member 103 void (*callback)(struct virtqueue *vq), 129 bool vp_notify(struct virtqueue *vq); 144 int vp_set_vq_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask);
|
D | virtio_balloon.c | 101 static void balloon_ack(struct virtqueue *vq) in balloon_ack() argument 103 struct virtio_balloon *vb = vq->vdev->priv; in balloon_ack() 108 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host() argument 116 virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL); in tell_host() 117 virtqueue_kick(vq); in tell_host() 120 wait_event(vb->acked, virtqueue_get_buf(vq, &len)); in tell_host() 299 static void stats_request(struct virtqueue *vq) in stats_request() argument 301 struct virtio_balloon *vb = vq->vdev->priv; in stats_request() 311 struct virtqueue *vq; in stats_handle_request() local 317 vq = vb->stats_vq; in stats_handle_request() [all …]
|
D | virtio_input.c | 30 static void virtinput_recv_events(struct virtqueue *vq) in virtinput_recv_events() argument 32 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() 48 virtqueue_kick(vq); in virtinput_recv_events() 88 static void virtinput_recv_status(struct virtqueue *vq) in virtinput_recv_status() argument 90 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_status()
|
/linux-4.19.296/include/linux/ |
D | virtio.h | 30 void (*callback)(struct virtqueue *vq); 38 int virtqueue_add_outbuf(struct virtqueue *vq, 43 int virtqueue_add_inbuf(struct virtqueue *vq, 48 int virtqueue_add_inbuf_ctx(struct virtqueue *vq, 54 int virtqueue_add_sgs(struct virtqueue *vq, 61 bool virtqueue_kick(struct virtqueue *vq); 63 bool virtqueue_kick_prepare(struct virtqueue *vq); 65 bool virtqueue_notify(struct virtqueue *vq); 67 void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len); 69 void *virtqueue_get_buf_ctx(struct virtqueue *vq, unsigned int *len, [all …]
|
D | virtio_ring.h | 76 bool (*notify)(struct virtqueue *vq), 77 void (*callback)(struct virtqueue *vq), 101 bool (*notify)(struct virtqueue *vq), 102 void (*callback)(struct virtqueue *vq), 109 void vring_del_virtqueue(struct virtqueue *vq);
|
D | virtio_config.h | 83 int (*set_vq_affinity)(struct virtqueue *vq, 179 struct virtqueue *vq; in virtio_find_single_vq() local 180 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL, in virtio_find_single_vq() 184 return vq; in virtio_find_single_vq() 241 int virtqueue_set_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask) in virtqueue_set_affinity() argument 243 struct virtio_device *vdev = vq->vdev; in virtqueue_set_affinity() 245 return vdev->config->set_vq_affinity(vq, cpu_mask); in virtqueue_set_affinity()
|
D | remoteproc.h | 518 struct virtqueue *vq; member
|
/linux-4.19.296/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 434 struct vb2_queue *vq; in v4l2_m2m_reqbufs() local 437 vq = v4l2_m2m_get_vq(m2m_ctx, reqbufs->type); in v4l2_m2m_reqbufs() 438 ret = vb2_reqbufs(vq, reqbufs); in v4l2_m2m_reqbufs() 442 vq->owner = reqbufs->count ? file->private_data : NULL; in v4l2_m2m_reqbufs() 448 static void v4l2_m2m_adjust_mem_offset(struct vb2_queue *vq, in v4l2_m2m_adjust_mem_offset() argument 452 if (buf->memory == V4L2_MEMORY_MMAP && !V4L2_TYPE_IS_OUTPUT(vq->type)) { in v4l2_m2m_adjust_mem_offset() 453 if (V4L2_TYPE_IS_MULTIPLANAR(vq->type)) { in v4l2_m2m_adjust_mem_offset() 468 struct vb2_queue *vq; in v4l2_m2m_querybuf() local 471 vq = v4l2_m2m_get_vq(m2m_ctx, buf->type); in v4l2_m2m_querybuf() 472 ret = vb2_querybuf(vq, buf); in v4l2_m2m_querybuf() [all …]
|
/linux-4.19.296/drivers/char/hw_random/ |
D | virtio-rng.c | 33 struct virtqueue *vq; member 50 static void random_recv_done(struct virtqueue *vq) in random_recv_done() argument 52 struct virtrng_info *vi = vq->vdev->priv; in random_recv_done() 56 if (!virtqueue_get_buf(vi->vq, &len)) in random_recv_done() 73 virtqueue_add_inbuf(vi->vq, &sg, 1, vi->data, GFP_KERNEL); in request_entropy() 75 virtqueue_kick(vi->vq); in request_entropy() 168 vi->vq = virtio_find_single_vq(vdev, random_recv_done, "input"); in probe_common() 169 if (IS_ERR(vi->vq)) { in probe_common() 170 err = PTR_ERR(vi->vq); in probe_common()
|
/linux-4.19.296/drivers/s390/virtio/ |
D | virtio_ccw.c | 109 struct virtqueue *vq; member 171 static void drop_airq_indicator(struct virtqueue *vq, struct airq_info *info) in drop_airq_indicator() argument 177 if (vq == (void *)airq_iv_get_ptr(info->aiv, i)) { in drop_airq_indicator() 281 drop_airq_indicator(info->vq, vcdev->airq_info); in virtio_ccw_drop_indicators() 394 static bool virtio_ccw_kvm_notify(struct virtqueue *vq) in virtio_ccw_kvm_notify() argument 396 struct virtio_ccw_vq_info *info = vq->priv; in virtio_ccw_kvm_notify() 400 vcdev = to_vc_device(info->vq->vdev); in virtio_ccw_kvm_notify() 402 info->cookie = do_kvm_notify(schid, vq->index, info->cookie); in virtio_ccw_kvm_notify() 424 static void virtio_ccw_del_vq(struct virtqueue *vq, struct ccw1 *ccw) in virtio_ccw_del_vq() argument 426 struct virtio_ccw_device *vcdev = to_vc_device(vq->vdev); in virtio_ccw_del_vq() [all …]
|
/linux-4.19.296/drivers/misc/mic/vop/ |
D | vop_main.c | 238 static bool vop_notify(struct virtqueue *vq) in vop_notify() argument 240 struct _vop_vdev *vdev = vq->priv; in vop_notify() 247 static void vop_del_vq(struct virtqueue *vq, int n) in vop_del_vq() argument 249 struct _vop_vdev *vdev = to_vopvdev(vq->vdev); in vop_del_vq() 250 struct vring *vr = (struct vring *)(vq + 1); in vop_del_vq() 256 vring_del_virtqueue(vq); in vop_del_vq() 264 struct virtqueue *vq, *n; in vop_del_vqs() local 269 list_for_each_entry_safe(vq, n, &dev->vqs, list) in vop_del_vqs() 270 vop_del_vq(vq, idx++); in vop_del_vqs() 280 void (*callback)(struct virtqueue *vq), in vop_find_vq() argument [all …]
|
/linux-4.19.296/drivers/char/ |
D | virtio_console.c | 329 struct virtqueue *vq) in find_port_by_vq() argument 336 if (port->in_vq == vq || port->out_vq == vq) in find_port_by_vq() 504 static int add_inbuf(struct virtqueue *vq, struct port_buffer *buf) in add_inbuf() argument 511 ret = virtqueue_add_inbuf(vq, sg, 1, buf, GFP_ATOMIC); in add_inbuf() 512 virtqueue_kick(vq); in add_inbuf() 514 ret = vq->num_free; in add_inbuf() 564 struct virtqueue *vq; in __send_control_msg() local 570 vq = portdev->c_ovq; in __send_control_msg() 580 if (virtqueue_add_outbuf(vq, sg, 1, &portdev->cpkt, GFP_ATOMIC) == 0) { in __send_control_msg() 581 virtqueue_kick(vq); in __send_control_msg() [all …]
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvb_vb2.c | 33 static int _queue_setup(struct vb2_queue *vq, in _queue_setup() argument 37 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _queue_setup() 84 static int _start_streaming(struct vb2_queue *vq, unsigned int count) in _start_streaming() argument 86 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _start_streaming() 92 static void _stop_streaming(struct vb2_queue *vq) in _stop_streaming() argument 94 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _stop_streaming() 110 static void _dmxdev_lock(struct vb2_queue *vq) in _dmxdev_lock() argument 112 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _dmxdev_lock() 118 static void _dmxdev_unlock(struct vb2_queue *vq) in _dmxdev_unlock() argument 120 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq); in _dmxdev_unlock()
|
/linux-4.19.296/include/media/ |
D | soc_camera.h | 387 static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_queue *vq) in soc_camera_from_vb2q() argument 389 return container_of(vq, struct soc_camera_device, vb2_vidq); in soc_camera_from_vb2q() 397 void soc_camera_lock(struct vb2_queue *vq); 398 void soc_camera_unlock(struct vb2_queue *vq);
|
D | videobuf2-v4l2.h | 283 void vb2_ops_wait_prepare(struct vb2_queue *vq); 292 void vb2_ops_wait_finish(struct vb2_queue *vq);
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 452 static int rtl2832_sdr_queue_setup(struct vb2_queue *vq, in rtl2832_sdr_queue_setup() argument 456 struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vq); in rtl2832_sdr_queue_setup() 462 if (vq->num_buffers + *nbuffers < 8) in rtl2832_sdr_queue_setup() 463 *nbuffers = 8 - vq->num_buffers; in rtl2832_sdr_queue_setup() 863 static int rtl2832_sdr_start_streaming(struct vb2_queue *vq, unsigned int count) in rtl2832_sdr_start_streaming() argument 865 struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vq); in rtl2832_sdr_start_streaming() 924 static void rtl2832_sdr_stop_streaming(struct vb2_queue *vq) in rtl2832_sdr_stop_streaming() argument 926 struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vq); in rtl2832_sdr_stop_streaming()
|
/linux-4.19.296/drivers/media/common/videobuf2/ |
D | videobuf2-v4l2.c | 951 void vb2_ops_wait_prepare(struct vb2_queue *vq) in vb2_ops_wait_prepare() argument 953 mutex_unlock(vq->lock); in vb2_ops_wait_prepare() 957 void vb2_ops_wait_finish(struct vb2_queue *vq) in vb2_ops_wait_finish() argument 959 mutex_lock(vq->lock); in vb2_ops_wait_finish()
|