Lines Matching refs:entity

54 	if (!remote || !is_media_entity_v4l2_subdev(remote->entity))  in vsp1_video_remote_subdev()
60 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev()
197 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
251 struct vsp1_entity *entity; in vsp1_video_pipeline_run_partition() local
253 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run_partition()
254 vsp1_entity_configure_partition(entity, pipe, part, dl, dlb); in vsp1_video_pipeline_run_partition()
259 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run()
260 struct vsp1_entity *entity; in vsp1_video_pipeline_run() local
278 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run()
279 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
314 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_frame_end()
354 struct vsp1_entity *entity; in vsp1_video_pipeline_build_branch() local
359 ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); in vsp1_video_pipeline_build_branch()
368 pad = vsp1_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); in vsp1_video_pipeline_build_branch()
377 if (!is_media_entity_v4l2_subdev(pad->entity)) { in vsp1_video_pipeline_build_branch()
382 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch()
383 media_entity_to_v4l2_subdev(pad->entity)); in vsp1_video_pipeline_build_branch()
389 if (entity->type == VSP1_ENTITY_BRU || in vsp1_video_pipeline_build_branch()
390 entity->type == VSP1_ENTITY_BRS) { in vsp1_video_pipeline_build_branch()
397 brx = to_brx(&entity->subdev); in vsp1_video_pipeline_build_branch()
403 if (entity->type == VSP1_ENTITY_WPF) in vsp1_video_pipeline_build_branch()
408 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch()
414 if (entity->type == VSP1_ENTITY_UDS) { in vsp1_video_pipeline_build_branch()
420 pipe->uds = entity; in vsp1_video_pipeline_build_branch()
421 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch()
425 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch()
430 if (entity != &output->entity) in vsp1_video_pipeline_build_branch()
443 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local
444 struct media_device *mdev = entity->graph_obj.mdev; in vsp1_video_pipeline_build()
453 media_graph_walk_start(&graph, entity); in vsp1_video_pipeline_build()
455 while ((entity = media_graph_walk_next(&graph))) { in vsp1_video_pipeline_build()
460 if (!is_media_entity_v4l2_subdev(entity)) in vsp1_video_pipeline_build()
463 subdev = media_entity_to_v4l2_subdev(entity); in vsp1_video_pipeline_build()
471 pipe->inputs[rwpf->entity.index] = rwpf; in vsp1_video_pipeline_build()
555 if (!video->rwpf->entity.pipe) { in vsp1_video_pipeline_get()
567 pipe = video->rwpf->entity.pipe; in vsp1_video_pipeline_get()
584 struct media_device *mdev = &pipe->output->entity.vsp1->media_dev; in vsp1_video_pipeline_put()
650 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_buffer_queue()
677 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions()
679 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local
687 format = v4l2_subdev_state_get_format(pipe->output->entity.state, in vsp1_video_pipeline_setup_partitions()
696 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_pipeline_setup_partitions()
699 if (!entity->ops->max_width) in vsp1_video_pipeline_setup_partitions()
702 entity_max = entity->ops->max_width(entity, in vsp1_video_pipeline_setup_partitions()
703 entity->state, in vsp1_video_pipeline_setup_partitions()
725 struct vsp1_entity *entity; in vsp1_video_setup_pipeline() local
763 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_setup_pipeline()
764 vsp1_entity_route_setup(entity, pipe, pipe->stream_config); in vsp1_video_setup_pipeline()
765 vsp1_entity_configure_stream(entity, entity->state, pipe, NULL, in vsp1_video_setup_pipeline()
802 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_start_streaming()
844 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_stop_streaming()
1127 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1144 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1152 wpf->entity.index); in vsp1_video_suspend()
1169 pipe = wpf->entity.pipe; in vsp1_video_resume()
1206 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_video_create()
1227 ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); in vsp1_video_create()
1239 video->video.entity.ops = &vsp1_video_media_ops; in vsp1_video_create()
1242 rwpf->entity.subdev.name, direction); in vsp1_video_create()
1284 media_entity_cleanup(&video->video.entity); in vsp1_video_cleanup()