Lines Matching refs:pipe

225 				    struct isp_pipeline *pipe)  in isp_video_get_graph_data()  argument
238 pipe->entities |= 1 << entity->id; in isp_video_get_graph_data()
257 pipe->input = far_end; in isp_video_get_graph_data()
258 pipe->output = video; in isp_video_get_graph_data()
263 pipe->input = video; in isp_video_get_graph_data()
264 pipe->output = far_end; in isp_video_get_graph_data()
386 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in isp_video_buffer_queue() local
411 spin_lock_irqsave(&pipe->lock, flags); in isp_video_buffer_queue()
412 pipe->state |= state; in isp_video_buffer_queue()
416 start = isp_pipeline_ready(pipe); in isp_video_buffer_queue()
418 pipe->state |= ISP_PIPELINE_STREAM; in isp_video_buffer_queue()
419 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_buffer_queue()
422 omap3isp_pipeline_set_stream(pipe, in isp_video_buffer_queue()
451 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in omap3isp_video_buffer_next() local
475 if (video == pipe->output && !pipe->do_propagation) in omap3isp_video_buffer_next()
477 atomic_inc_return(&pipe->frame_number); in omap3isp_video_buffer_next()
479 buf->vb.v4l2_buf.sequence = atomic_read(&pipe->frame_number); in omap3isp_video_buffer_next()
481 if (pipe->field != V4L2_FIELD_NONE) in omap3isp_video_buffer_next()
484 buf->vb.v4l2_buf.field = pipe->field; in omap3isp_video_buffer_next()
487 if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && pipe->error) { in omap3isp_video_buffer_next()
489 pipe->error = false; in omap3isp_video_buffer_next()
508 spin_lock_irqsave(&pipe->lock, flags); in omap3isp_video_buffer_next()
509 pipe->state &= ~state; in omap3isp_video_buffer_next()
510 if (video->pipe.stream_state == ISP_PIPELINE_STREAM_CONTINUOUS) in omap3isp_video_buffer_next()
512 spin_unlock_irqrestore(&pipe->lock, flags); in omap3isp_video_buffer_next()
516 if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && pipe->input != NULL) { in omap3isp_video_buffer_next()
517 spin_lock(&pipe->lock); in omap3isp_video_buffer_next()
518 pipe->state &= ~ISP_PIPELINE_STREAM; in omap3isp_video_buffer_next()
519 spin_unlock(&pipe->lock); in omap3isp_video_buffer_next()
877 struct isp_pipeline *pipe) in isp_video_check_external_subdevs() argument
896 if (pipe->input != NULL) in isp_video_check_external_subdevs()
901 if (!(pipe->entities & (1 << ents[i]->id))) in isp_video_check_external_subdevs()
922 pipe->external = media_entity_to_v4l2_subdev(source); in isp_video_check_external_subdevs()
933 pipe->external_width = in isp_video_check_external_subdevs()
944 ret = v4l2_g_ext_ctrls(pipe->external->ctrl_handler, &ctrls); in isp_video_check_external_subdevs()
947 pipe->external->name); in isp_video_check_external_subdevs()
951 pipe->external_rate = ctrl.value64; in isp_video_check_external_subdevs()
953 if (pipe->entities & (1 << isp->isp_ccdc.subdev.entity.id)) { in isp_video_check_external_subdevs()
960 if (pipe->external_rate > rate) in isp_video_check_external_subdevs()
1004 struct isp_pipeline *pipe; in isp_video_streamon() local
1016 pipe = video->video.entity.pipe in isp_video_streamon()
1017 ? to_isp_pipeline(&video->video.entity) : &video->pipe; in isp_video_streamon()
1019 pipe->entities = 0; in isp_video_streamon()
1023 pipe->l3_ick = clk_get_rate(video->isp->clock[ISP_CLK_L3_ICK]); in isp_video_streamon()
1024 pipe->max_rate = pipe->l3_ick; in isp_video_streamon()
1026 ret = media_entity_pipeline_start(&video->video.entity, &pipe->pipe); in isp_video_streamon()
1040 ret = isp_video_get_graph_data(video, pipe); in isp_video_streamon()
1049 ret = isp_video_check_external_subdevs(video, pipe); in isp_video_streamon()
1053 pipe->error = false; in isp_video_streamon()
1055 spin_lock_irqsave(&pipe->lock, flags); in isp_video_streamon()
1056 pipe->state &= ~ISP_PIPELINE_STREAM; in isp_video_streamon()
1057 pipe->state |= state; in isp_video_streamon()
1058 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_streamon()
1065 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1069 atomic_set(&pipe->frame_number, -1); in isp_video_streamon()
1070 pipe->field = vfh->format.fmt.pix.field; in isp_video_streamon()
1082 if (pipe->input == NULL) { in isp_video_streamon()
1083 ret = omap3isp_pipeline_set_stream(pipe, in isp_video_streamon()
1124 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in isp_video_streamoff() local
1150 spin_lock_irqsave(&pipe->lock, flags); in isp_video_streamoff()
1151 pipe->state &= ~state; in isp_video_streamoff()
1152 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_streamoff()
1155 omap3isp_pipeline_set_stream(pipe, ISP_PIPELINE_STREAM_STOPPED); in isp_video_streamoff()
1380 spin_lock_init(&video->pipe.lock); in omap3isp_video_init()
1395 video->pipe.stream_state = ISP_PIPELINE_STREAM_STOPPED; in omap3isp_video_init()