Lines Matching refs:dev

22 	struct vivid_dev *dev = vb2_get_drv_priv(vq);  in vbi_out_queue_setup()  local
23 bool is_60hz = dev->std_out & V4L2_STD_525_60; in vbi_out_queue_setup()
28 if (!vivid_is_svid_out(dev)) in vbi_out_queue_setup()
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare() local
43 bool is_60hz = dev->std_out & V4L2_STD_525_60; in vbi_out_buf_prepare()
48 dprintk(dev, 1, "%s\n", __func__); in vbi_out_buf_prepare()
50 if (dev->buf_prepare_error) { in vbi_out_buf_prepare()
55 dev->buf_prepare_error = false; in vbi_out_buf_prepare()
59 dprintk(dev, 1, "%s data will not fit into plane (%lu < %u)\n", in vbi_out_buf_prepare()
71 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue() local
74 dprintk(dev, 1, "%s\n", __func__); in vbi_out_buf_queue()
76 spin_lock(&dev->slock); in vbi_out_buf_queue()
77 list_add_tail(&buf->list, &dev->vbi_out_active); in vbi_out_buf_queue()
78 spin_unlock(&dev->slock); in vbi_out_buf_queue()
83 struct vivid_dev *dev = vb2_get_drv_priv(vq); in vbi_out_start_streaming() local
86 dprintk(dev, 1, "%s\n", __func__); in vbi_out_start_streaming()
87 dev->vbi_out_seq_count = 0; in vbi_out_start_streaming()
88 if (dev->start_streaming_error) { in vbi_out_start_streaming()
89 dev->start_streaming_error = false; in vbi_out_start_streaming()
92 err = vivid_start_generating_vid_out(dev, &dev->vbi_out_streaming); in vbi_out_start_streaming()
97 list_for_each_entry_safe(buf, tmp, &dev->vbi_out_active, list) { in vbi_out_start_streaming()
109 struct vivid_dev *dev = vb2_get_drv_priv(vq); in vbi_out_stop_streaming() local
111 dprintk(dev, 1, "%s\n", __func__); in vbi_out_stop_streaming()
112 vivid_stop_generating_vid_out(dev, &dev->vbi_out_streaming); in vbi_out_stop_streaming()
113 dev->vbi_out_have_wss = false; in vbi_out_stop_streaming()
114 dev->vbi_out_have_cc[0] = false; in vbi_out_stop_streaming()
115 dev->vbi_out_have_cc[1] = false; in vbi_out_stop_streaming()
120 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_request_complete() local
122 v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vbi_out); in vbi_out_buf_request_complete()
139 struct vivid_dev *dev = video_drvdata(file); in vidioc_g_fmt_vbi_out() local
141 bool is_60hz = dev->std_out & V4L2_STD_525_60; in vidioc_g_fmt_vbi_out()
143 if (!vivid_is_svid_out(dev) || !dev->has_raw_vbi_out) in vidioc_g_fmt_vbi_out()
153 vbi->flags = dev->vbi_cap_interlaced ? V4L2_VBI_INTERLACED : 0; in vidioc_g_fmt_vbi_out()
162 struct vivid_dev *dev = video_drvdata(file); in vidioc_s_fmt_vbi_out() local
167 if (vb2_is_busy(&dev->vb_vbi_out_q)) in vidioc_s_fmt_vbi_out()
169 dev->stream_sliced_vbi_out = false; in vidioc_s_fmt_vbi_out()
170 dev->vbi_out_dev.queue->type = V4L2_BUF_TYPE_VBI_OUTPUT; in vidioc_s_fmt_vbi_out()
176 struct vivid_dev *dev = video_drvdata(file); in vidioc_g_fmt_sliced_vbi_out() local
179 if (!vivid_is_svid_out(dev) || !dev->has_sliced_vbi_out) in vidioc_g_fmt_sliced_vbi_out()
182 vivid_fill_service_lines(vbi, dev->service_set_out); in vidioc_g_fmt_sliced_vbi_out()
188 struct vivid_dev *dev = video_drvdata(file); in vidioc_try_fmt_sliced_vbi_out() local
190 bool is_60hz = dev->std_out & V4L2_STD_525_60; in vidioc_try_fmt_sliced_vbi_out()
193 if (!vivid_is_svid_out(dev) || !dev->has_sliced_vbi_out) in vidioc_try_fmt_sliced_vbi_out()
205 struct vivid_dev *dev = video_drvdata(file); in vidioc_s_fmt_sliced_vbi_out() local
211 if (vb2_is_busy(&dev->vb_vbi_out_q)) in vidioc_s_fmt_sliced_vbi_out()
213 dev->service_set_out = vbi->service_set; in vidioc_s_fmt_sliced_vbi_out()
214 dev->stream_sliced_vbi_out = true; in vidioc_s_fmt_sliced_vbi_out()
215 dev->vbi_out_dev.queue->type = V4L2_BUF_TYPE_SLICED_VBI_OUTPUT; in vidioc_s_fmt_sliced_vbi_out()
219 void vivid_sliced_vbi_out_process(struct vivid_dev *dev, in vivid_sliced_vbi_out_process() argument
227 dev->vbi_out_have_cc[0] = false; in vivid_sliced_vbi_out_process()
228 dev->vbi_out_have_cc[1] = false; in vivid_sliced_vbi_out_process()
229 dev->vbi_out_have_wss = false; in vivid_sliced_vbi_out_process()
233 if ((dev->std_out & V4L2_STD_525_60) && vbi->line == 21) { in vivid_sliced_vbi_out_process()
234 dev->vbi_out_have_cc[!!vbi->field] = true; in vivid_sliced_vbi_out_process()
235 dev->vbi_out_cc[!!vbi->field][0] = vbi->data[0]; in vivid_sliced_vbi_out_process()
236 dev->vbi_out_cc[!!vbi->field][1] = vbi->data[1]; in vivid_sliced_vbi_out_process()
240 if ((dev->std_out & V4L2_STD_625_50) && in vivid_sliced_vbi_out_process()
242 dev->vbi_out_have_wss = true; in vivid_sliced_vbi_out_process()
243 dev->vbi_out_wss[0] = vbi->data[0]; in vivid_sliced_vbi_out_process()
244 dev->vbi_out_wss[1] = vbi->data[1]; in vivid_sliced_vbi_out_process()