Lines Matching refs:vq
736 static void hackrf_return_all_buffers(struct vb2_queue *vq, in hackrf_return_all_buffers() argument
739 struct hackrf_dev *dev = vb2_get_drv_priv(vq); in hackrf_return_all_buffers()
747 if (vq->type == V4L2_BUF_TYPE_SDR_CAPTURE) in hackrf_return_all_buffers()
761 static int hackrf_queue_setup(struct vb2_queue *vq, in hackrf_queue_setup() argument
765 struct hackrf_dev *dev = vb2_get_drv_priv(vq); in hackrf_queue_setup()
770 if (vq->num_buffers + *nbuffers < 8) in hackrf_queue_setup()
771 *nbuffers = 8 - vq->num_buffers; in hackrf_queue_setup()
782 struct vb2_queue *vq = vb->vb2_queue; in hackrf_buf_queue() local
783 struct hackrf_dev *dev = vb2_get_drv_priv(vq); in hackrf_buf_queue()
790 if (vq->type == V4L2_BUF_TYPE_SDR_CAPTURE) in hackrf_buf_queue()
800 static int hackrf_start_streaming(struct vb2_queue *vq, unsigned int count) in hackrf_start_streaming() argument
802 struct hackrf_dev *dev = vb2_get_drv_priv(vq); in hackrf_start_streaming()
812 if (vq->type == V4L2_BUF_TYPE_SDR_CAPTURE) { in hackrf_start_streaming()
863 hackrf_return_all_buffers(vq, VB2_BUF_STATE_QUEUED); in hackrf_start_streaming()
869 static void hackrf_stop_streaming(struct vb2_queue *vq) in hackrf_stop_streaming() argument
871 struct hackrf_dev *dev = vb2_get_drv_priv(vq); in hackrf_stop_streaming()
885 hackrf_return_all_buffers(vq, VB2_BUF_STATE_ERROR); in hackrf_stop_streaming()
887 if (vq->type == V4L2_BUF_TYPE_SDR_CAPTURE) in hackrf_stop_streaming()