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()
389 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in isp_video_buffer_queue() local
414 spin_lock_irqsave(&pipe->lock, flags); in isp_video_buffer_queue()
415 pipe->state |= state; in isp_video_buffer_queue()
419 start = isp_pipeline_ready(pipe); in isp_video_buffer_queue()
421 pipe->state |= ISP_PIPELINE_STREAM; in isp_video_buffer_queue()
422 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_buffer_queue()
425 omap3isp_pipeline_set_stream(pipe, in isp_video_buffer_queue()
454 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in omap3isp_video_buffer_next() local
478 if (video == pipe->output && !pipe->do_propagation) in omap3isp_video_buffer_next()
480 atomic_inc_return(&pipe->frame_number); in omap3isp_video_buffer_next()
482 buf->vb.sequence = atomic_read(&pipe->frame_number); in omap3isp_video_buffer_next()
484 if (pipe->field != V4L2_FIELD_NONE) in omap3isp_video_buffer_next()
487 buf->vb.field = pipe->field; in omap3isp_video_buffer_next()
490 if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && pipe->error) { in omap3isp_video_buffer_next()
492 pipe->error = false; in omap3isp_video_buffer_next()
511 spin_lock_irqsave(&pipe->lock, flags); in omap3isp_video_buffer_next()
512 pipe->state &= ~state; in omap3isp_video_buffer_next()
513 if (video->pipe.stream_state == ISP_PIPELINE_STREAM_CONTINUOUS) in omap3isp_video_buffer_next()
515 spin_unlock_irqrestore(&pipe->lock, flags); in omap3isp_video_buffer_next()
519 if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && pipe->input != NULL) { in omap3isp_video_buffer_next()
520 spin_lock(&pipe->lock); in omap3isp_video_buffer_next()
521 pipe->state &= ~ISP_PIPELINE_STREAM; in omap3isp_video_buffer_next()
522 spin_unlock(&pipe->lock); in omap3isp_video_buffer_next()
880 struct isp_pipeline *pipe) in isp_video_check_external_subdevs() argument
899 if (pipe->input != NULL) in isp_video_check_external_subdevs()
904 if (!(pipe->entities & (1 << ents[i]->id))) in isp_video_check_external_subdevs()
925 pipe->external = media_entity_to_v4l2_subdev(source); in isp_video_check_external_subdevs()
936 pipe->external_width = in isp_video_check_external_subdevs()
947 ret = v4l2_g_ext_ctrls(pipe->external->ctrl_handler, &ctrls); in isp_video_check_external_subdevs()
950 pipe->external->name); in isp_video_check_external_subdevs()
954 pipe->external_rate = ctrl.value64; in isp_video_check_external_subdevs()
956 if (pipe->entities & (1 << isp->isp_ccdc.subdev.entity.id)) { in isp_video_check_external_subdevs()
963 if (pipe->external_rate > rate) in isp_video_check_external_subdevs()
1007 struct isp_pipeline *pipe; in isp_video_streamon() local
1019 pipe = video->video.entity.pipe in isp_video_streamon()
1020 ? to_isp_pipeline(&video->video.entity) : &video->pipe; in isp_video_streamon()
1022 pipe->entities = 0; in isp_video_streamon()
1025 pipe->l3_ick = clk_get_rate(video->isp->clock[ISP_CLK_L3_ICK]); in isp_video_streamon()
1026 pipe->max_rate = pipe->l3_ick; in isp_video_streamon()
1028 ret = media_entity_pipeline_start(&video->video.entity, &pipe->pipe); in isp_video_streamon()
1042 ret = isp_video_get_graph_data(video, pipe); in isp_video_streamon()
1051 ret = isp_video_check_external_subdevs(video, pipe); in isp_video_streamon()
1055 pipe->error = false; in isp_video_streamon()
1057 spin_lock_irqsave(&pipe->lock, flags); in isp_video_streamon()
1058 pipe->state &= ~ISP_PIPELINE_STREAM; in isp_video_streamon()
1059 pipe->state |= state; in isp_video_streamon()
1060 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_streamon()
1067 pipe->max_timeperframe = vfh->timeperframe; in isp_video_streamon()
1071 atomic_set(&pipe->frame_number, -1); in isp_video_streamon()
1072 pipe->field = vfh->format.fmt.pix.field; in isp_video_streamon()
1084 if (pipe->input == NULL) { in isp_video_streamon()
1085 ret = omap3isp_pipeline_set_stream(pipe, in isp_video_streamon()
1125 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in isp_video_streamoff() local
1151 spin_lock_irqsave(&pipe->lock, flags); in isp_video_streamoff()
1152 pipe->state &= ~state; in isp_video_streamoff()
1153 spin_unlock_irqrestore(&pipe->lock, flags); in isp_video_streamoff()
1156 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()