/linux-master/tools/testing/selftests/net/ |
H A D | lib.sh | 108 if ! busywait $BUSYWAIT_TIMEOUT ip netns list \| grep -vq "^$ns$" &> /dev/null; then
|
/linux-master/drivers/virtio/ |
H A D | virtio_mem.c | 113 struct virtqueue *vq; member in struct:virtio_mem 1383 rc = virtqueue_add_sgs(vm->vq, sgs, 1, 1, vm, GFP_KERNEL); 1387 virtqueue_kick(vm->vq); 1390 wait_event(vm->host_resp, virtqueue_get_buf(vm->vq, &len)); 2491 static void virtio_mem_handle_response(struct virtqueue *vq) argument 2493 struct virtio_mem *vm = vq->vdev->priv; 2500 struct virtqueue *vq; local 2502 vq = virtio_find_single_vq(vm->vdev, virtio_mem_handle_response, 2504 if (IS_ERR(vq)) 2505 return PTR_ERR(vq); [all...] |
/linux-master/drivers/net/ |
H A D | virtio_net.c | 284 struct virtqueue *vq; member in struct:send_queue 305 struct virtqueue *vq; member in struct:receive_queue 492 static void virtnet_sq_free_unused_buf(struct virtqueue *vq, void *buf); 515 while ((ptr = virtqueue_get_buf(sq->vq, &len)) != NULL) { 537 static int vq2txq(struct virtqueue *vq) argument 539 return (vq->index - 1) / 2; 547 static int vq2rxq(struct virtqueue *vq) argument 549 return vq->index / 2; 641 struct virtqueue *vq) 644 virtqueue_disable_cb(vq); 640 virtqueue_napi_schedule(struct napi_struct *napi, struct virtqueue *vq) argument 649 virtqueue_napi_complete(struct napi_struct *napi, struct virtqueue *vq, int processed) argument 667 skb_xmit_done(struct virtqueue *vq) argument 944 virtnet_rq_unmap_free_buf(struct virtqueue *vq, void *buf) argument 2185 virtnet_napi_enable(struct virtqueue *vq, struct napi_struct *napi) argument 2198 virtnet_napi_tx_enable(struct virtnet_info *vi, struct virtqueue *vq, struct napi_struct *napi) argument 5222 virtnet_sq_free_unused_buf(struct virtqueue *vq, void *buf) argument 5236 struct virtqueue *vq = vi->sq[i].vq; local 5243 struct virtqueue *vq = vi->rq[i].vq; local 5266 mergeable_min_buf_len(struct virtnet_info *vi, struct virtqueue *vq) argument [all...] |
/linux-master/drivers/iommu/ |
H A D | virtio-iommu.c | 159 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/include/media/ |
H A D | videobuf2-v4l2.h | 373 * @vq: pointer to &struct vb2_queue 375 * ..note:: only use if vq->lock is non-NULL. 377 void vb2_ops_wait_prepare(struct vb2_queue *vq); 382 * @vq: pointer to &struct vb2_queue 384 * ..note:: only use if vq->lock is non-NULL. 386 void vb2_ops_wait_finish(struct vb2_queue *vq);
|
/linux-master/drivers/staging/media/tegra-video/ |
H A D | vi.c | 106 static int tegra_channel_queue_setup(struct vb2_queue *vq, argument 112 struct tegra_vi_channel *chan = vb2_get_drv_priv(vq); 260 static int tegra_channel_start_streaming(struct vb2_queue *vq, u32 count) argument 262 struct tegra_vi_channel *chan = vb2_get_drv_priv(vq); 271 ret = chan->vi->ops->vi_start_streaming(vq, count); 278 static void tegra_channel_stop_streaming(struct vb2_queue *vq) argument 280 struct tegra_vi_channel *chan = vb2_get_drv_priv(vq); 282 chan->vi->ops->vi_stop_streaming(vq);
|
H A D | tegra20.c | 505 static int tegra20_vi_start_streaming(struct vb2_queue *vq, u32 count) argument 507 struct tegra_vi_channel *chan = vb2_get_drv_priv(vq); 546 static void tegra20_vi_stop_streaming(struct vb2_queue *vq) argument 548 struct tegra_vi_channel *chan = vb2_get_drv_priv(vq);
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_ioctl.c | 870 int atomisp_start_streaming(struct vb2_queue *vq, unsigned int count) argument 872 struct atomisp_video_pipe *pipe = vq_to_pipe(vq); 972 void atomisp_stop_streaming(struct vb2_queue *vq) argument 974 struct atomisp_video_pipe *pipe = vq_to_pipe(vq);
|
H A D | atomisp_fops.c | 45 static int atomisp_queue_setup(struct vb2_queue *vq, argument 49 struct atomisp_video_pipe *pipe = container_of(vq, struct atomisp_video_pipe, vb_queue);
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-mem2mem.c | 578 struct vb2_queue *vq; local 581 vq = v4l2_m2m_get_vq(m2m_ctx, reqbufs->type); 582 ret = vb2_reqbufs(vq, reqbufs); 586 vq->owner = reqbufs->count ? file->private_data : NULL; 592 static void v4l2_m2m_adjust_mem_offset(struct vb2_queue *vq, argument 596 if (buf->memory == V4L2_MEMORY_MMAP && V4L2_TYPE_IS_CAPTURE(vq->type)) { 597 if (V4L2_TYPE_IS_MULTIPLANAR(vq->type)) { 612 struct vb2_queue *vq; local 615 vq = v4l2_m2m_get_vq(m2m_ctx, buf->type); 616 ret = vb2_querybuf(vq, bu 765 struct vb2_queue *vq; local 803 struct vb2_queue *vq; local 822 struct vb2_queue *vq; local 840 struct vb2_queue *vq; local 850 struct vb2_queue *vq; local 860 struct vb2_queue *vq; local 989 struct vb2_queue *vq; local 1009 struct vb2_queue *vq; local [all...] |
/linux-master/drivers/media/usb/s2255/ |
H A D | s2255drv.c | 644 static int queue_setup(struct vb2_queue *vq, argument 648 struct s2255_vc *vc = vb2_get_drv_priv(vq); 698 static int start_streaming(struct vb2_queue *vq, unsigned int count); 699 static void stop_streaming(struct vb2_queue *vq); 1061 static int start_streaming(struct vb2_queue *vq, unsigned int count) argument 1063 struct s2255_vc *vc = vb2_get_drv_priv(vq); 1078 static void stop_streaming(struct vb2_queue *vq) argument 1080 struct s2255_vc *vc = vb2_get_drv_priv(vq);
|
/linux-master/drivers/media/usb/au0828/ |
H A D | au0828-video.c | 679 static int queue_setup(struct vb2_queue *vq, argument 683 struct au0828_dev *dev = vb2_get_drv_priv(vq); 808 int au0828_start_analog_streaming(struct vb2_queue *vq, unsigned int count) argument 810 struct au0828_dev *dev = vb2_get_drv_priv(vq); 816 if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) 834 if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { 837 } else if (vq->type == V4L2_BUF_TYPE_VBI_CAPTURE) { 846 static void au0828_stop_streaming(struct vb2_queue *vq) argument 848 struct au0828_dev *dev = vb2_get_drv_priv(vq); 878 void au0828_stop_vbi_streaming(struct vb2_queue *vq) argument [all...] |
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-touch-cap.c | 11 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 D | vivid-meta-out.c | 16 static int meta_out_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, argument 20 struct vivid_dev *dev = vb2_get_drv_priv(vq); 75 static int meta_out_start_streaming(struct vb2_queue *vq, unsigned int count) argument 77 struct vivid_dev *dev = vb2_get_drv_priv(vq); 103 static void meta_out_stop_streaming(struct vb2_queue *vq) argument 105 struct vivid_dev *dev = vb2_get_drv_priv(vq);
|
/linux-master/drivers/media/test-drivers/visl/ |
H A D | visl-video.c | 554 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/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 242 static int vimc_capture_start_streaming(struct vb2_queue *vq, unsigned int count) argument 244 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vq); 270 static void vimc_capture_stop_streaming(struct vb2_queue *vq) argument 272 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vq); 295 static int vimc_capture_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, argument 299 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vq);
|
/linux-master/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 761 struct vb2_queue *vq; local 767 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); 768 if (!vq) 971 struct vb2_queue *vq; local 976 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); 977 if (!vq) 995 if (vb2_is_busy(vq) && fmt_changed) 1018 if (vb2_is_busy(vq) && fmt_changed) 1075 struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); local 1088 if (vb2_is_busy(vq) 1371 vicodec_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsigned int *nplanes, unsigned int sizes[], struct device *alloc_devs[]) argument [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_v4l2.c | 482 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/drivers/media/platform/ti/j721e-csi2rx/ |
H A D | j721e-csi2rx.c | 803 static int ti_csi2rx_start_streaming(struct vb2_queue *vq, unsigned int count) argument 805 struct ti_csi2rx_dev *csi = vb2_get_drv_priv(vq); 857 static void ti_csi2rx_stop_streaming(struct vb2_queue *vq) argument 859 struct ti_csi2rx_dev *csi = vb2_get_drv_priv(vq);
|
/linux-master/drivers/media/platform/ti/davinci/ |
H A D | vpif_display.c | 102 * @vq: vb2_queue ptr 111 static int vpif_buffer_queue_setup(struct vb2_queue *vq, argument 115 struct channel_obj *ch = vb2_get_drv_priv(vq); 118 unsigned int q_num_bufs = vb2_get_num_buffers(vq); 162 * @vq: ptr to vb2_buffer 165 static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) argument 169 struct channel_obj *ch = vb2_get_drv_priv(vq); 247 * @vq: ptr to vb2_queue 252 static void vpif_stop_streaming(struct vb2_queue *vq) argument 254 struct channel_obj *ch = vb2_get_drv_priv(vq); [all...] |
H A D | vpif_capture.c | 100 * @vq: vb2_queue ptr 109 static int vpif_buffer_queue_setup(struct vb2_queue *vq, argument 113 struct channel_obj *ch = vb2_get_drv_priv(vq); 116 unsigned int q_num_bufs = vb2_get_num_buffers(vq); 162 * @vq: ptr to vb2_buffer 165 static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) argument 169 struct channel_obj *ch = vb2_get_drv_priv(vq); 252 * @vq: ptr to vb2_queue 257 static void vpif_stop_streaming(struct vb2_queue *vq) argument 259 struct channel_obj *ch = vb2_get_drv_priv(vq); [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 419 struct vb2_queue *vq; local 424 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); 425 if (!vq) { 426 mtk_v4l2_venc_err(ctx, "fail to get vq"); 430 if (vb2_is_busy(vq)) { 474 struct vb2_queue *vq; local 479 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); 480 if (!vq) { 481 mtk_v4l2_venc_err(ctx, "fail to get vq"); 485 if (vb2_is_busy(vq)) { 528 struct vb2_queue *vq; local 798 vb2ops_venc_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsigned int *nplanes, unsigned int sizes[], struct device *alloc_devs[]) argument [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp8_req_if.c | 235 struct vb2_queue *vq; local 244 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); 247 vb = vb2_find_buffer(vq, referenct_ts);
|
H A D | vdec_hevc_req_multi_if.c | 397 struct vb2_queue *vq; local 401 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); 407 vb = vb2_find_buffer(vq, dpb->timestamp);
|
H A D | vdec_av1_req_lat_if.c | 1795 struct vb2_queue *vq; local 1812 vq = v4l2_m2m_get_vq(instance->ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); 1813 if (!vq) 1825 vb = vb2_find_buffer(vq, pfc->ref_idx[i]);
|