Searched refs:vq (Results 76 - 100 of 250) sorted by relevance

12345678910

/linux-master/drivers/media/pci/zoran/
H A Dzoran_driver.c742 static int zr_vb2_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsigned int *nplanes, argument
745 struct zoran *zr = vb2_get_drv_priv(vq);
752 if (*nbuffers < vq->min_queued_buffers)
753 *nbuffers = vq->min_queued_buffers;
867 static int zr_vb2_start_streaming(struct vb2_queue *vq, unsigned int count) argument
869 struct zoran *zr = vq->drv_priv;
904 static void zr_vb2_stop_streaming(struct vb2_queue *vq) argument
906 struct zoran *zr = vq->drv_priv;
957 int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq, int dir) argument
964 vq
[all...]
/linux-master/drivers/vhost/
H A Dvdpa.c168 struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue, local
170 struct vhost_vdpa *v = container_of(vq->dev, struct vhost_vdpa, vdev);
173 ops->kick_vq(v->vdpa, vq - v->vqs);
178 struct vhost_virtqueue *vq = private; local
179 struct eventfd_ctx *call_ctx = vq->call_ctx.ctx;
200 struct vhost_virtqueue *vq = &v->vqs[qid]; local
212 irq_bypass_unregister_producer(&vq->call_ctx.producer);
213 if (!vq->call_ctx.ctx)
216 vq->call_ctx.producer.token = vq
226 struct vhost_virtqueue *vq = &v->vqs[qid]; local
490 struct vhost_virtqueue *vq = d->vqs[i]; local
641 struct vhost_virtqueue *vq; local
[all...]
/linux-master/drivers/media/platform/amlogic/meson-ge2d/
H A Dge2d.c323 static int ge2d_queue_setup(struct vb2_queue *vq, argument
327 struct ge2d_ctx *ctx = vb2_get_drv_priv(vq);
328 struct ge2d_frame *f = get_frame(ctx, vq->type);
360 static int ge2d_start_streaming(struct vb2_queue *vq, unsigned int count) argument
362 struct ge2d_ctx *ctx = vb2_get_drv_priv(vq);
364 if (V4L2_TYPE_IS_OUTPUT(vq->type))
372 static void ge2d_stop_streaming(struct vb2_queue *vq) argument
374 struct ge2d_ctx *ctx = vb2_get_drv_priv(vq);
378 if (V4L2_TYPE_IS_OUTPUT(vq->type))
597 struct vb2_queue *vq; local
632 struct vb2_queue *vq; local
672 struct vb2_queue *vq; local
744 struct vb2_queue *vq; local
[all...]
/linux-master/drivers/media/platform/via/
H A Dvia-camera.c89 struct vb2_queue vq; member in struct:via_camera
594 static int viacam_vb2_queue_setup(struct vb2_queue *vq, argument
599 struct via_camera *cam = vb2_get_drv_priv(vq);
610 static int viacam_vb2_start_streaming(struct vb2_queue *vq, unsigned int count) argument
612 struct via_camera *cam = vb2_get_drv_priv(vq);
649 static void viacam_vb2_stop_streaming(struct vb2_queue *vq) argument
651 struct via_camera *cam = vb2_get_drv_priv(vq);
1131 struct vb2_queue *vq; local
1238 vq = &cam->vq;
[all...]
/linux-master/include/linux/
H A Dvirtio_config.h50 * Device must not be reset from its vq/config callbacks, or in
85 * vq: the virtqueue
92 * vq: the virtqueue
117 int (*set_vq_affinity)(struct virtqueue *vq,
123 int (*disable_vq_and_reset)(struct virtqueue *vq);
124 int (*enable_vq_after_reset)(struct virtqueue *vq);
219 struct virtqueue *vq; local
220 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL,
224 return vq;
266 * virtio_device_ready - enable vq us
322 virtqueue_set_affinity(struct virtqueue *vq, const struct cpumask *cpu_mask) argument
[all...]
/linux-master/drivers/char/
H A Dvirtio_console.c132 /* To protect the vq operations for the control channel */
307 struct virtqueue *vq)
314 if (port->in_vq == vq || port->out_vq == vq)
482 static int add_inbuf(struct virtqueue *vq, struct port_buffer *buf) argument
489 ret = virtqueue_add_inbuf(vq, sg, 1, buf, GFP_ATOMIC);
490 virtqueue_kick(vq);
492 ret = vq->num_free;
519 dev_warn(port->dev, "Errors adding %d buffers back to vq\n",
542 struct virtqueue *vq; local
306 find_port_by_vq(struct ports_device *portdev, struct virtqueue *vq) argument
1291 fill_queue(struct virtqueue *vq, spinlock_t *lock) argument
1666 struct virtqueue *vq; local
1692 flush_bufs(struct virtqueue *vq, bool can_sleep) argument
1701 out_intr(struct virtqueue *vq) argument
1714 in_intr(struct virtqueue *vq) argument
1759 control_intr(struct virtqueue *vq) argument
1899 struct virtqueue *vq; local
[all...]
/linux-master/arch/arm64/kernel/
H A Dsignal.c269 unsigned int vq = 0; local
273 vq = sve_vq_from_vl(vl);
276 vq = sve_vq_from_vl(vl);
282 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16),
289 if (vq) {
297 SVE_SIG_REGS_SIZE(vq));
306 unsigned int vl, vq; local
345 vq = sve_vq_from_vl(vl);
347 if (user->sve_size < SVE_SIG_CONTEXT_SIZE(vq))
369 SVE_SIG_REGS_SIZE(vq));
442 unsigned int vq; local
475 unsigned int vq; local
924 unsigned int vq = 0; local
951 unsigned int vq = 0; local
[all...]
H A Dfpsimd.c610 #define ZREG(sve_state, vq, n) ((char *)(sve_state) + \
611 (SVE_SIG_ZREG_OFFSET(vq, n) - SVE_SIG_REGS_OFFSET))
631 unsigned int vq)
637 p = (__uint128_t *)ZREG(sst, vq, i);
656 unsigned int vq; local
663 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread));
664 __fpsimd_to_sve(sst, fst, vq);
680 unsigned int vq, vl; local
690 vq = sve_vq_from_vl(vl);
692 p = (__uint128_t const *)ZREG(sst, vq,
630 __fpsimd_to_sve(void *sst, struct user_fpsimd_state const *fst, unsigned int vq) argument
818 unsigned int vq; local
1009 unsigned int vq, vl; local
[all...]
H A Dptrace.c762 unsigned int vq; local
798 vq = sve_vq_from_vl(header->vl);
801 header->size = SVE_PT_SIZE(vq, header->flags);
817 unsigned int vq; local
822 vq = sve_vq_from_vl(header.vl);
838 end = SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq);
842 end = SVE_PT_SVE_FPSR_OFFSET(vq);
850 end = SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE;
881 unsigned int vq; local
1053 unsigned int vq; local
1104 unsigned int vq; local
[all...]
/linux-master/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c482 struct vb2_queue *vq; local
484 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
493 vq->subsystem_flags &= ~(VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF);
496 vq->subsystem_flags |= VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF;
507 struct vb2_queue *vq; local
510 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
522 if (vb2_is_streaming(vq) && pix_mp->pixelformat != ctx->src_fmt.pixelformat) {
530 if (vb2_is_busy(vq))
670 struct vb2_queue *vq; local
678 vq
779 hantro_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, unsigned int *num_planes, unsigned int sizes[], struct device *alloc_devs[]) argument
835 struct vb2_queue *vq = vb->vb2_queue; local
[all...]
/linux-master/net/9p/
H A Dtrans_virtio.c51 * @vq: virtio queue associated with this channel
71 struct virtqueue *vq; member in struct:virtio_chan
117 * @vq: virtio queue activity was received on
128 static void req_done(struct virtqueue *vq) argument
130 struct virtio_chan *chan = vq->vdev->priv;
139 while ((req = virtqueue_get_buf(chan->vq, &len)) != NULL) {
281 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req,
301 virtqueue_kick(chan->vq);
509 err = virtqueue_add_sgs(chan->vq, sgs, out_sgs, in_sgs, req,
530 virtqueue_kick(chan->vq);
[all...]
/linux-master/drivers/media/pci/saa7134/
H A Dsaa7134-empress.c31 static int start_streaming(struct vb2_queue *vq, unsigned int count) argument
33 struct saa7134_dmaqueue *dmaq = vq->drv_priv;
38 err = saa7134_ts_start_streaming(vq, count);
59 static void stop_streaming(struct vb2_queue *vq) argument
61 struct saa7134_dmaqueue *dmaq = vq->drv_priv;
64 saa7134_ts_stop_streaming(vq);
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-touch-cap.c11 static int touch_cap_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, argument
15 struct vivid_dev *dev = vb2_get_drv_priv(vq);
66 static int touch_cap_start_streaming(struct vb2_queue *vq, unsigned int count) argument
68 struct vivid_dev *dev = vb2_get_drv_priv(vq);
92 static void touch_cap_stop_streaming(struct vb2_queue *vq) argument
94 struct vivid_dev *dev = vb2_get_drv_priv(vq);
H A Dvivid-vbi-cap.c122 static int vbi_cap_queue_setup(struct vb2_queue *vq, argument
126 struct vivid_dev *dev = vb2_get_drv_priv(vq);
128 unsigned size = vq->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ?
182 static int vbi_cap_start_streaming(struct vb2_queue *vq, unsigned count) argument
184 struct vivid_dev *dev = vb2_get_drv_priv(vq);
208 static void vbi_cap_stop_streaming(struct vb2_queue *vq) argument
210 struct vivid_dev *dev = vb2_get_drv_priv(vq);
/linux-master/drivers/media/usb/uvc/
H A Duvc_queue.c66 static int uvc_queue_setup(struct vb2_queue *vq, argument
70 struct uvc_video_queue *queue = vb2_get_drv_priv(vq);
74 switch (vq->type) {
160 static int uvc_start_streaming(struct vb2_queue *vq, unsigned int count) argument
162 struct uvc_video_queue *queue = vb2_get_drv_priv(vq);
181 static void uvc_stop_streaming(struct vb2_queue *vq) argument
183 struct uvc_video_queue *queue = vb2_get_drv_priv(vq);
187 if (vq->type != V4L2_BUF_TYPE_META_CAPTURE)
/linux-master/drivers/staging/media/rkvdec/
H A Drkvdec.c314 struct vb2_queue *vq; local
318 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
320 if (vb2_is_busy(vq))
338 struct vb2_queue *peer_vq, *vq; local
346 vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE);
347 if (vb2_is_streaming(vq) ||
348 (vb2_is_busy(vq) &&
390 vq->subsystem_flags |= desc->subsystem_flags;
469 static int rkvdec_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, argument
473 struct rkvdec_ctx *ctx = vb2_get_drv_priv(vq);
501 struct vb2_queue *vq = vb->vb2_queue; local
574 rkvdec_queue_cleanup(struct vb2_queue *vq, u32 state) argument
[all...]
/linux-master/fs/fuse/
H A Dvirtio_fs.c50 struct virtqueue *vq; /* protected by ->lock */ member in struct:virtio_fs_vq
72 unsigned int *mq_map; /* index = cpu id, value = request vq id */
150 static inline struct virtio_fs_vq *vq_to_fsvq(struct virtqueue *vq) argument
152 struct virtio_fs *fs = vq->vdev->priv;
154 return &fs->vqs[vq->index];
396 struct virtqueue *vq = fsvq->vq; local
404 virtqueue_disable_cb(vq);
406 while ((req = virtqueue_get_buf(vq, &len)) != NULL) {
410 } while (!virtqueue_enable_cb(vq));
478 struct virtqueue *vq; local
676 struct virtqueue *vq = fsvq->vq; local
753 virtio_fs_vq_done(struct virtqueue *vq) argument
1247 struct virtqueue *vq; local
[all...]
/linux-master/drivers/media/test-drivers/visl/
H A Dvisl-video.c554 static int visl_queue_setup(struct vb2_queue *vq, argument
560 struct visl_ctx *ctx = vb2_get_drv_priv(vq);
565 if (V4L2_TYPE_IS_OUTPUT(vq->type)) {
597 static void visl_queue_cleanup(struct vb2_queue *vq, u32 state) argument
599 struct visl_ctx *ctx = vb2_get_drv_priv(vq);
604 if (V4L2_TYPE_IS_OUTPUT(vq->type))
635 struct vb2_queue *vq = vb->vb2_queue; local
636 struct visl_ctx *ctx = vb2_get_drv_priv(vq);
640 if (V4L2_TYPE_IS_OUTPUT(vq->type)) {
656 static int visl_start_streaming(struct vb2_queue *vq, unsigne argument
686 visl_stop_streaming(struct vb2_queue *vq) argument
[all...]
/linux-master/drivers/gpu/drm/virtio/
H A Dvirtgpu_vq.c56 void virtio_gpu_ctrl_ack(struct virtqueue *vq) argument
58 struct drm_device *dev = vq->vdev->priv;
64 void virtio_gpu_cursor_ack(struct virtqueue *vq) argument
66 struct drm_device *dev = vq->vdev->priv;
182 static void reclaim_vbufs(struct virtqueue *vq, struct list_head *reclaim_list) argument
188 while ((vbuf = virtqueue_get_buf(vq, &len))) {
209 virtqueue_disable_cb(vgdev->ctrlq.vq);
210 reclaim_vbufs(vgdev->ctrlq.vq, &reclaim_list);
212 } while (!virtqueue_enable_cb(vgdev->ctrlq.vq));
218 trace_virtio_gpu_cmd_response(vgdev->ctrlq.vq, res
322 struct virtqueue *vq = vgdev->ctrlq.vq; local
450 struct virtqueue *vq = vgdev->cursorq.vq; local
[all...]
/linux-master/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_mpeg2.c58 struct vb2_queue *vq; local
122 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE);
124 cedrus_write_ref_buf_addr(ctx, vq, pic->forward_ref_ts,
127 cedrus_write_ref_buf_addr(ctx, vq, pic->backward_ref_ts,
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec.h92 int vb2ops_vdec_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers,
/linux-master/drivers/media/platform/marvell/
H A Dmcam-core.c1074 static int mcam_vb_queue_setup(struct vb2_queue *vq, argument
1079 struct mcam_camera *cam = vb2_get_drv_priv(vq);
1112 static void mcam_vb_requeue_bufs(struct vb2_queue *vq, argument
1115 struct mcam_camera *cam = vb2_get_drv_priv(vq);
1139 static int mcam_vb_start_streaming(struct vb2_queue *vq, unsigned int count) argument
1141 struct mcam_camera *cam = vb2_get_drv_priv(vq);
1146 mcam_vb_requeue_bufs(vq, VB2_BUF_STATE_QUEUED);
1174 mcam_vb_requeue_bufs(vq, VB2_BUF_STATE_QUEUED);
1178 static void mcam_vb_stop_streaming(struct vb2_queue *vq) argument
1180 struct mcam_camera *cam = vb2_get_drv_priv(vq);
1278 struct vb2_queue *vq = &cam->vb_queue; local
[all...]
/linux-master/drivers/media/platform/nxp/
H A Dimx7-media-csi.c1256 static int imx7_csi_video_queue_setup(struct vb2_queue *vq, argument
1262 struct imx7_csi *csi = vb2_get_drv_priv(vq);
1263 unsigned int q_num_bufs = vb2_get_num_buffers(vq);
1267 if (vq->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
1441 static int imx7_csi_video_start_streaming(struct vb2_queue *vq, argument
1444 struct imx7_csi *csi = vb2_get_drv_priv(vq);
1484 static void imx7_csi_video_stop_streaming(struct vb2_queue *vq) argument
1486 struct imx7_csi *csi = vb2_get_drv_priv(vq);
1546 struct vb2_queue *vq = &csi->q; local
1550 if (file->private_data == vq
1648 struct vb2_queue *vq; local
[all...]
/linux-master/drivers/iommu/
H A Dvirtio-iommu.c159 struct virtqueue *vq = viommu->vqs[VIOMMU_REQUEST_VQ]; local
163 virtqueue_kick(vq);
167 req = virtqueue_get_buf(vq, &len);
225 struct virtqueue *vq = viommu->vqs[VIOMMU_REQUEST_VQ]; local
247 ret = virtqueue_add_sgs(vq, sg, 1, 1, req, GFP_ATOMIC);
251 ret = virtqueue_add_sgs(vq, sg, 1, 1, req, GFP_ATOMIC);
612 static void viommu_event_handler(struct virtqueue *vq) argument
618 struct viommu_dev *viommu = vq->vdev->priv;
620 while ((evt = virtqueue_get_buf(vq, &len)) != NULL) {
630 ret = virtqueue_add_inbuf(vq, s
1102 struct virtqueue *vq = viommu->vqs[VIOMMU_EVENT_VQ]; local
[all...]
/linux-master/tools/testing/selftests/arm64/fp/
H A Dfp-stress.c388 unsigned int vq; local
393 for (vq = SVE_VQ_MAX; vq > 0; vq /= 2) {
394 vl = prctl(set_vl, vq * 16);
404 vq = sve_vq_from_vl(vl);

Completed in 343 milliseconds

12345678910