Lines Matching refs:isp

46 	struct fimc_isp *isp = vb2_get_drv_priv(vq);  in isp_video_capture_queue_setup()  local
47 struct v4l2_pix_format_mplane *vid_fmt = &isp->video_capture.pixfmt; in isp_video_capture_queue_setup()
57 fmt = isp->video_capture.format; in isp_video_capture_queue_setup()
74 allocators[i] = isp->alloc_ctx; in isp_video_capture_queue_setup()
82 return &__get_curr_is_config(is)->isp.dma2_output; in __get_isp_dma2()
88 struct fimc_isp *isp = vb2_get_drv_priv(q); in isp_video_capture_start_streaming() local
89 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_start_streaming()
91 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_start_streaming()
94 if (!test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state) || in isp_video_capture_start_streaming()
95 test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) in isp_video_capture_start_streaming()
124 set_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); in isp_video_capture_start_streaming()
130 struct fimc_isp *isp = vb2_get_drv_priv(q); in isp_video_capture_stop_streaming() local
131 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_stop_streaming()
135 ret = fimc_pipeline_call(&isp->video_capture.ve, set_stream, 0); in isp_video_capture_stop_streaming()
154 clear_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state); in isp_video_capture_stop_streaming()
155 clear_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); in isp_video_capture_stop_streaming()
157 isp->video_capture.buf_count = 0; in isp_video_capture_stop_streaming()
162 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_prepare() local
163 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_buffer_prepare()
182 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { in isp_video_capture_buffer_prepare()
197 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_queue() local
198 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_buffer_queue()
199 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_buffer_queue()
204 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { in isp_video_capture_buffer_queue()
231 set_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state); in isp_video_capture_buffer_queue()
234 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) in isp_video_capture_buffer_queue()
244 struct fimc_is_video *video = &is->isp.video_capture; in fimc_isp_video_irq_handler()
249 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &is->isp.state)) in fimc_isp_video_irq_handler()
274 struct fimc_isp *isp = video_drvdata(file); in isp_video_open() local
275 struct exynos_video_entity *ve = &isp->video_capture.ve; in isp_video_open()
279 if (mutex_lock_interruptible(&isp->video_lock)) in isp_video_open()
286 ret = pm_runtime_get_sync(&isp->pdev->dev); in isp_video_open()
306 mutex_unlock(&isp->video_lock); in isp_video_open()
312 struct fimc_isp *isp = video_drvdata(file); in isp_video_release() local
313 struct fimc_is_video *ivc = &isp->video_capture; in isp_video_release()
317 mutex_lock(&isp->video_lock); in isp_video_release()
334 pm_runtime_put(&isp->pdev->dev); in isp_video_release()
335 mutex_unlock(&isp->video_lock); in isp_video_release()
355 struct fimc_isp *isp = video_drvdata(file); in isp_video_querycap() local
357 __fimc_vidioc_querycap(&isp->pdev->dev, cap, V4L2_CAP_STREAMING); in isp_video_querycap()
382 struct fimc_isp *isp = video_drvdata(file); in isp_video_g_fmt_mplane() local
384 f->fmt.pix_mp = isp->video_capture.pixfmt; in isp_video_g_fmt_mplane()
388 static void __isp_video_try_fmt(struct fimc_isp *isp, in __isp_video_try_fmt() argument
411 struct fimc_isp *isp = video_drvdata(file); in isp_video_try_fmt_mplane() local
413 __isp_video_try_fmt(isp, &f->fmt.pix_mp, NULL); in isp_video_try_fmt_mplane()
420 struct fimc_isp *isp = video_drvdata(file); in isp_video_s_fmt_mplane() local
421 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_s_fmt_mplane()
426 __isp_video_try_fmt(isp, pixm, &ifmt); in isp_video_s_fmt_mplane()
440 isp->video_capture.format = ifmt; in isp_video_s_fmt_mplane()
441 isp->video_capture.pixfmt = *pixm; in isp_video_s_fmt_mplane()
450 static int isp_video_pipeline_validate(struct fimc_isp *isp) in isp_video_pipeline_validate() argument
452 struct v4l2_subdev *sd = &isp->subdev; in isp_video_pipeline_validate()
493 struct fimc_isp *isp = video_drvdata(file); in isp_video_streamon() local
494 struct exynos_video_entity *ve = &isp->video_capture.ve; in isp_video_streamon()
502 ret = isp_video_pipeline_validate(isp); in isp_video_streamon()
510 isp->video_capture.streaming = 1; in isp_video_streamon()
520 struct fimc_isp *isp = video_drvdata(file); in isp_video_streamoff() local
521 struct fimc_is_video *video = &isp->video_capture; in isp_video_streamoff()
536 struct fimc_isp *isp = video_drvdata(file); in isp_video_reqbufs() local
549 isp->video_capture.reqbufs_count = rb->count; in isp_video_reqbufs()
569 int fimc_isp_video_device_register(struct fimc_isp *isp, in fimc_isp_video_device_register() argument
573 struct vb2_queue *q = &isp->video_capture.vb_queue; in fimc_isp_video_device_register()
579 iv = &isp->video_capture; in fimc_isp_video_device_register()
583 mutex_init(&isp->video_lock); in fimc_isp_video_device_register()
599 q->drv_priv = isp; in fimc_isp_video_device_register()
601 q->lock = &isp->video_lock; in fimc_isp_video_device_register()
618 vdev->lock = &isp->video_lock; in fimc_isp_video_device_register()
625 video_set_drvdata(vdev, isp); in fimc_isp_video_device_register()
639 void fimc_isp_video_device_unregister(struct fimc_isp *isp, in fimc_isp_video_device_unregister() argument
645 ve = &isp->video_capture.ve; in fimc_isp_video_device_unregister()
649 mutex_lock(&isp->video_lock); in fimc_isp_video_device_unregister()
657 mutex_unlock(&isp->video_lock); in fimc_isp_video_device_unregister()