Lines Matching refs:vid_cap
35 struct fimc_source_info *si = &fimc->vid_cap.source_config; in fimc_capture_hw_init()
36 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_capture_hw_init()
86 struct fimc_vid_cap *cap = &fimc->vid_cap; in fimc_capture_state_cleanup()
180 struct fimc_vid_cap *cap = &fimc->vid_cap; in fimc_capture_irq_handler()
263 struct fimc_vid_cap *vid_cap = &fimc->vid_cap; in start_streaming() local
267 vid_cap->frame_count = 0; in start_streaming()
277 min_bufs = fimc->vid_cap.reqbufs_count > 1 ? 2 : 1; in start_streaming()
279 if (vid_cap->active_buf_cnt >= min_bufs && in start_streaming()
284 return fimc_pipeline_call(&vid_cap->ve, set_stream, 1); in start_streaming()
308 return fimc_pipeline_call(&fimc->vid_cap.ve, close); in fimc_capture_suspend()
315 struct fimc_vid_cap *vid_cap = &fimc->vid_cap; in fimc_capture_resume() local
316 struct exynos_video_entity *ve = &vid_cap->ve; in fimc_capture_resume()
323 INIT_LIST_HEAD(&fimc->vid_cap.active_buf_q); in fimc_capture_resume()
324 vid_cap->buf_index = 0; in fimc_capture_resume()
330 for (i = 0; i < vid_cap->reqbufs_count; i++) { in fimc_capture_resume()
331 if (list_empty(&vid_cap->pending_buf_q)) in fimc_capture_resume()
333 buf = fimc_pending_queue_pop(vid_cap); in fimc_capture_resume()
389 v4l2_err(&ctx->fimc_dev->vid_cap.ve.vdev, in buffer_prepare()
407 struct fimc_vid_cap *vid_cap = &fimc->vid_cap; in buffer_queue() local
408 struct exynos_video_entity *ve = &vid_cap->ve; in buffer_queue()
417 vid_cap->active_buf_cnt < FIMC_MAX_OUT_BUFS) { in buffer_queue()
419 int buf_id = (vid_cap->reqbufs_count == 1) ? -1 : in buffer_queue()
420 vid_cap->buf_index; in buffer_queue()
423 buf->index = vid_cap->buf_index; in buffer_queue()
424 fimc_active_queue_add(vid_cap, buf); in buffer_queue()
426 if (++vid_cap->buf_index >= FIMC_MAX_OUT_BUFS) in buffer_queue()
427 vid_cap->buf_index = 0; in buffer_queue()
429 fimc_pending_queue_add(vid_cap, buf); in buffer_queue()
432 min_bufs = vid_cap->reqbufs_count > 1 ? 2 : 1; in buffer_queue()
435 if (vb2_is_streaming(&vid_cap->vbq) && in buffer_queue()
436 vid_cap->active_buf_cnt >= min_bufs && in buffer_queue()
469 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_capture_open()
520 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_capture_release()
766 struct fimc_pipeline *p = to_fimc_pipeline(fimc->vid_cap.ve.pipe); in fimc_pipeline_try_format()
798 while (me != &fimc->vid_cap.subdev.entity) { in fimc_pipeline_try_format()
896 __fimc_get_format(&fimc->vid_cap.ctx->d_frame, f); in fimc_cap_g_fmt_mplane()
911 struct fimc_vid_cap *vc = &fimc->vid_cap; in __video_try_or_set_format()
949 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()
1012 struct fimc_vid_cap *vc = &fimc->vid_cap; in __fimc_capture_set_format()
1019 if (vb2_is_busy(&fimc->vid_cap.vbq)) in __fimc_capture_set_format()
1063 struct exynos_video_entity *ve = &fimc->vid_cap.ve; in fimc_cap_enum_input()
1101 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_pipeline_validate()
1180 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_cap_streamon()
1231 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_cap_streamoff()
1255 fimc->vid_cap.reqbufs_count = reqbufs->count; in fimc_cap_reqbufs()
1264 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_cap_g_selection()
1301 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_cap_s_selection()
1370 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_link_setup()
1381 fimc->vid_cap.input); in fimc_link_setup()
1384 fimc->vid_cap.input = 0; in fimc_link_setup()
1445 if (!list_empty(&fimc->vid_cap.active_buf_q)) { in fimc_sensor_notify()
1446 buf = list_entry(fimc->vid_cap.active_buf_q.next, in fimc_sensor_notify()
1476 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_get_fmt()
1498 *mf = fimc->vid_cap.wb_fmt; in fimc_subdev_get_fmt()
1502 *mf = fimc->vid_cap.ci_fmt; in fimc_subdev_get_fmt()
1518 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_subdev_set_fmt()
1583 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_get_selection()
1639 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_set_selection()
1715 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device()
1716 struct vb2_queue *q = &fimc->vid_cap.vbq; in fimc_register_capture_device()
1718 struct fimc_vid_cap *vid_cap; in fimc_register_capture_device() local
1746 vid_cap = &fimc->vid_cap; in fimc_register_capture_device()
1747 vid_cap->active_buf_cnt = 0; in fimc_register_capture_device()
1748 vid_cap->reqbufs_count = 0; in fimc_register_capture_device()
1749 vid_cap->ctx = ctx; in fimc_register_capture_device()
1751 INIT_LIST_HEAD(&vid_cap->pending_buf_q); in fimc_register_capture_device()
1752 INIT_LIST_HEAD(&vid_cap->active_buf_q); in fimc_register_capture_device()
1771 vid_cap->ci_fmt.width = FIMC_DEFAULT_WIDTH; in fimc_register_capture_device()
1772 vid_cap->ci_fmt.height = FIMC_DEFAULT_HEIGHT; in fimc_register_capture_device()
1773 vid_cap->ci_fmt.code = fmt->mbus_code; in fimc_register_capture_device()
1780 vid_cap->wb_fmt = vid_cap->ci_fmt; in fimc_register_capture_device()
1781 vid_cap->wb_fmt.code = fmt->mbus_code; in fimc_register_capture_device()
1783 vid_cap->vd_pad.flags = MEDIA_PAD_FL_SINK; in fimc_register_capture_device()
1785 ret = media_entity_pads_init(&vfd->entity, 1, &vid_cap->vd_pad); in fimc_register_capture_device()
1824 fimc->vid_cap.ve.pipe = v4l2_get_subdev_hostdata(sd); in fimc_capture_subdev_registered()
1829 fimc->vid_cap.ve.pipe = NULL; in fimc_capture_subdev_registered()
1846 vdev = &fimc->vid_cap.ve.vdev; in fimc_capture_subdev_unregistered()
1851 fimc_ctrls_delete(fimc->vid_cap.ctx); in fimc_capture_subdev_unregistered()
1852 fimc->vid_cap.ve.pipe = NULL; in fimc_capture_subdev_unregistered()
1854 kfree(fimc->vid_cap.ctx); in fimc_capture_subdev_unregistered()
1855 fimc->vid_cap.ctx = NULL; in fimc_capture_subdev_unregistered()
1867 struct v4l2_subdev *sd = &fimc->vid_cap.subdev; in fimc_initialize_capture_subdev()
1874 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SINK_CAM].flags = MEDIA_PAD_FL_SINK; in fimc_initialize_capture_subdev()
1875 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SINK_FIFO].flags = MEDIA_PAD_FL_SINK; in fimc_initialize_capture_subdev()
1876 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in fimc_initialize_capture_subdev()
1878 fimc->vid_cap.sd_pads); in fimc_initialize_capture_subdev()
1891 struct v4l2_subdev *sd = &fimc->vid_cap.subdev; in fimc_unregister_capture_subdev()