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()
518 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_capture_release()
764 struct fimc_pipeline *p = to_fimc_pipeline(fimc->vid_cap.ve.pipe); in fimc_pipeline_try_format()
797 while (me != &fimc->vid_cap.subdev.entity) { in fimc_pipeline_try_format()
895 __fimc_get_format(&fimc->vid_cap.ctx->d_frame, f); in fimc_cap_g_fmt_mplane()
910 struct fimc_vid_cap *vc = &fimc->vid_cap; in __video_try_or_set_format()
948 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()
1011 struct fimc_vid_cap *vc = &fimc->vid_cap; in __fimc_capture_set_format()
1018 if (vb2_is_busy(&fimc->vid_cap.vbq)) in __fimc_capture_set_format()
1062 struct exynos_video_entity *ve = &fimc->vid_cap.ve; in fimc_cap_enum_input()
1105 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_pipeline_validate()
1182 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_cap_streamon()
1232 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_cap_streamoff()
1256 fimc->vid_cap.reqbufs_count = reqbufs->count; in fimc_cap_reqbufs()
1265 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_cap_g_selection()
1302 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_cap_s_selection()
1371 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_link_setup()
1382 fimc->vid_cap.input); in fimc_link_setup()
1385 fimc->vid_cap.input = 0; in fimc_link_setup()
1446 if (!list_empty(&fimc->vid_cap.active_buf_q)) { in fimc_sensor_notify()
1447 buf = list_entry(fimc->vid_cap.active_buf_q.next, in fimc_sensor_notify()
1477 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_get_fmt()
1499 *mf = fimc->vid_cap.wb_fmt; in fimc_subdev_get_fmt()
1503 *mf = fimc->vid_cap.ci_fmt; in fimc_subdev_get_fmt()
1519 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_subdev_set_fmt()
1584 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_get_selection()
1640 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_subdev_set_selection()
1716 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device()
1717 struct vb2_queue *q = &fimc->vid_cap.vbq; in fimc_register_capture_device()
1719 struct fimc_vid_cap *vid_cap; in fimc_register_capture_device() local
1747 vid_cap = &fimc->vid_cap; in fimc_register_capture_device()
1748 vid_cap->active_buf_cnt = 0; in fimc_register_capture_device()
1749 vid_cap->reqbufs_count = 0; in fimc_register_capture_device()
1750 vid_cap->ctx = ctx; in fimc_register_capture_device()
1752 INIT_LIST_HEAD(&vid_cap->pending_buf_q); in fimc_register_capture_device()
1753 INIT_LIST_HEAD(&vid_cap->active_buf_q); in fimc_register_capture_device()
1772 vid_cap->ci_fmt.width = FIMC_DEFAULT_WIDTH; in fimc_register_capture_device()
1773 vid_cap->ci_fmt.height = FIMC_DEFAULT_HEIGHT; in fimc_register_capture_device()
1774 vid_cap->ci_fmt.code = fmt->mbus_code; in fimc_register_capture_device()
1781 vid_cap->wb_fmt = vid_cap->ci_fmt; in fimc_register_capture_device()
1782 vid_cap->wb_fmt.code = fmt->mbus_code; in fimc_register_capture_device()
1784 vid_cap->vd_pad.flags = MEDIA_PAD_FL_SINK; in fimc_register_capture_device()
1786 ret = media_entity_pads_init(&vfd->entity, 1, &vid_cap->vd_pad); in fimc_register_capture_device()
1825 fimc->vid_cap.ve.pipe = v4l2_get_subdev_hostdata(sd); in fimc_capture_subdev_registered()
1830 fimc->vid_cap.ve.pipe = NULL; in fimc_capture_subdev_registered()
1847 vdev = &fimc->vid_cap.ve.vdev; in fimc_capture_subdev_unregistered()
1852 fimc_ctrls_delete(fimc->vid_cap.ctx); in fimc_capture_subdev_unregistered()
1853 fimc->vid_cap.ve.pipe = NULL; in fimc_capture_subdev_unregistered()
1855 kfree(fimc->vid_cap.ctx); in fimc_capture_subdev_unregistered()
1856 fimc->vid_cap.ctx = NULL; in fimc_capture_subdev_unregistered()
1868 struct v4l2_subdev *sd = &fimc->vid_cap.subdev; in fimc_initialize_capture_subdev()
1875 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SINK_CAM].flags = MEDIA_PAD_FL_SINK; in fimc_initialize_capture_subdev()
1876 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SINK_FIFO].flags = MEDIA_PAD_FL_SINK; in fimc_initialize_capture_subdev()
1877 fimc->vid_cap.sd_pads[FIMC_SD_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in fimc_initialize_capture_subdev()
1879 fimc->vid_cap.sd_pads); in fimc_initialize_capture_subdev()
1892 struct v4l2_subdev *sd = &fimc->vid_cap.subdev; in fimc_unregister_capture_subdev()