Lines Matching refs:isp

47 	struct fimc_isp *isp = vb2_get_drv_priv(vq);  in isp_video_capture_queue_setup()  local
48 struct v4l2_pix_format_mplane *vid_fmt = &isp->video_capture.pixfmt; in isp_video_capture_queue_setup()
58 fmt = isp->video_capture.format; in isp_video_capture_queue_setup()
75 allocators[i] = isp->alloc_ctx; in isp_video_capture_queue_setup()
83 return &__get_curr_is_config(is)->isp.dma2_output; in __get_isp_dma2()
89 struct fimc_isp *isp = vb2_get_drv_priv(q); in isp_video_capture_start_streaming() local
90 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_start_streaming()
92 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_start_streaming()
95 if (!test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state) || in isp_video_capture_start_streaming()
96 test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) in isp_video_capture_start_streaming()
125 set_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); in isp_video_capture_start_streaming()
131 struct fimc_isp *isp = vb2_get_drv_priv(q); in isp_video_capture_stop_streaming() local
132 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_stop_streaming()
136 ret = fimc_pipeline_call(&isp->video_capture.ve, set_stream, 0); in isp_video_capture_stop_streaming()
155 clear_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state); in isp_video_capture_stop_streaming()
156 clear_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); in isp_video_capture_stop_streaming()
158 isp->video_capture.buf_count = 0; in isp_video_capture_stop_streaming()
163 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_prepare() local
164 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_buffer_prepare()
183 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { in isp_video_capture_buffer_prepare()
199 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_queue() local
200 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_buffer_queue()
201 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_buffer_queue()
206 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { in isp_video_capture_buffer_queue()
233 set_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state); in isp_video_capture_buffer_queue()
236 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) in isp_video_capture_buffer_queue()
246 struct fimc_is_video *video = &is->isp.video_capture; in fimc_isp_video_irq_handler()
251 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &is->isp.state)) in fimc_isp_video_irq_handler()
276 struct fimc_isp *isp = video_drvdata(file); in isp_video_open() local
277 struct exynos_video_entity *ve = &isp->video_capture.ve; in isp_video_open()
281 if (mutex_lock_interruptible(&isp->video_lock)) in isp_video_open()
288 ret = pm_runtime_get_sync(&isp->pdev->dev); in isp_video_open()
308 mutex_unlock(&isp->video_lock); in isp_video_open()
314 struct fimc_isp *isp = video_drvdata(file); in isp_video_release() local
315 struct fimc_is_video *ivc = &isp->video_capture; in isp_video_release()
319 mutex_lock(&isp->video_lock); in isp_video_release()
336 pm_runtime_put(&isp->pdev->dev); in isp_video_release()
337 mutex_unlock(&isp->video_lock); in isp_video_release()
357 struct fimc_isp *isp = video_drvdata(file); in isp_video_querycap() local
359 __fimc_vidioc_querycap(&isp->pdev->dev, cap, V4L2_CAP_STREAMING); in isp_video_querycap()
384 struct fimc_isp *isp = video_drvdata(file); in isp_video_g_fmt_mplane() local
386 f->fmt.pix_mp = isp->video_capture.pixfmt; in isp_video_g_fmt_mplane()
390 static void __isp_video_try_fmt(struct fimc_isp *isp, in __isp_video_try_fmt() argument
413 struct fimc_isp *isp = video_drvdata(file); in isp_video_try_fmt_mplane() local
415 __isp_video_try_fmt(isp, &f->fmt.pix_mp, NULL); in isp_video_try_fmt_mplane()
422 struct fimc_isp *isp = video_drvdata(file); in isp_video_s_fmt_mplane() local
423 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_s_fmt_mplane()
428 __isp_video_try_fmt(isp, pixm, &ifmt); in isp_video_s_fmt_mplane()
442 isp->video_capture.format = ifmt; in isp_video_s_fmt_mplane()
443 isp->video_capture.pixfmt = *pixm; in isp_video_s_fmt_mplane()
452 static int isp_video_pipeline_validate(struct fimc_isp *isp) in isp_video_pipeline_validate() argument
454 struct v4l2_subdev *sd = &isp->subdev; in isp_video_pipeline_validate()
495 struct fimc_isp *isp = video_drvdata(file); in isp_video_streamon() local
496 struct exynos_video_entity *ve = &isp->video_capture.ve; in isp_video_streamon()
504 ret = isp_video_pipeline_validate(isp); in isp_video_streamon()
512 isp->video_capture.streaming = 1; in isp_video_streamon()
522 struct fimc_isp *isp = video_drvdata(file); in isp_video_streamoff() local
523 struct fimc_is_video *video = &isp->video_capture; in isp_video_streamoff()
538 struct fimc_isp *isp = video_drvdata(file); in isp_video_reqbufs() local
551 isp->video_capture.reqbufs_count = rb->count; in isp_video_reqbufs()
571 int fimc_isp_video_device_register(struct fimc_isp *isp, in fimc_isp_video_device_register() argument
575 struct vb2_queue *q = &isp->video_capture.vb_queue; in fimc_isp_video_device_register()
581 iv = &isp->video_capture; in fimc_isp_video_device_register()
585 mutex_init(&isp->video_lock); in fimc_isp_video_device_register()
601 q->drv_priv = isp; in fimc_isp_video_device_register()
603 q->lock = &isp->video_lock; in fimc_isp_video_device_register()
620 vdev->lock = &isp->video_lock; in fimc_isp_video_device_register()
627 video_set_drvdata(vdev, isp); in fimc_isp_video_device_register()
641 void fimc_isp_video_device_unregister(struct fimc_isp *isp, in fimc_isp_video_device_unregister() argument
647 ve = &isp->video_capture.ve; in fimc_isp_video_device_unregister()
651 mutex_lock(&isp->video_lock); in fimc_isp_video_device_unregister()
659 mutex_unlock(&isp->video_lock); in fimc_isp_video_device_unregister()