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()
199 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition()
200 pipe->output->entity.config, in vsp1_video_calculate_partition()
254 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions()
256 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local
264 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions()
265 pipe->output->entity.config, in vsp1_video_pipeline_setup_partitions()
274 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_pipeline_setup_partitions()
277 if (!entity->ops->max_width) in vsp1_video_pipeline_setup_partitions()
280 entity_max = entity->ops->max_width(entity, pipe); in vsp1_video_pipeline_setup_partitions()
315 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
368 struct vsp1_entity *entity; in vsp1_video_pipeline_run_partition() local
372 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run_partition()
373 vsp1_entity_configure_partition(entity, pipe, dl, dlb); in vsp1_video_pipeline_run_partition()
378 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run()
379 struct vsp1_entity *entity; in vsp1_video_pipeline_run() local
397 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run()
398 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
433 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_frame_end()
473 struct vsp1_entity *entity; in vsp1_video_pipeline_build_branch() local
478 ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); in vsp1_video_pipeline_build_branch()
487 pad = vsp1_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); in vsp1_video_pipeline_build_branch()
496 if (!is_media_entity_v4l2_subdev(pad->entity)) { in vsp1_video_pipeline_build_branch()
501 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch()
502 media_entity_to_v4l2_subdev(pad->entity)); in vsp1_video_pipeline_build_branch()
508 if (entity->type == VSP1_ENTITY_BRU || in vsp1_video_pipeline_build_branch()
509 entity->type == VSP1_ENTITY_BRS) { in vsp1_video_pipeline_build_branch()
516 brx = to_brx(&entity->subdev); in vsp1_video_pipeline_build_branch()
522 if (entity->type == VSP1_ENTITY_WPF) in vsp1_video_pipeline_build_branch()
527 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch()
533 if (entity->type == VSP1_ENTITY_UDS) { in vsp1_video_pipeline_build_branch()
539 pipe->uds = entity; in vsp1_video_pipeline_build_branch()
540 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch()
544 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch()
549 if (entity != &output->entity) in vsp1_video_pipeline_build_branch()
562 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local
563 struct media_device *mdev = entity->graph_obj.mdev; in vsp1_video_pipeline_build()
572 media_graph_walk_start(&graph, entity); in vsp1_video_pipeline_build()
574 while ((entity = media_graph_walk_next(&graph))) { in vsp1_video_pipeline_build()
579 if (!is_media_entity_v4l2_subdev(entity)) in vsp1_video_pipeline_build()
582 subdev = media_entity_to_v4l2_subdev(entity); in vsp1_video_pipeline_build()
590 pipe->inputs[rwpf->entity.index] = rwpf; in vsp1_video_pipeline_build()
666 if (!video->rwpf->entity.pipe) { in vsp1_video_pipeline_get()
678 pipe = video->rwpf->entity.pipe; in vsp1_video_pipeline_get()
695 struct media_device *mdev = &pipe->output->entity.vsp1->media_dev; in vsp1_video_pipeline_put()
761 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_buffer_queue()
788 struct vsp1_entity *entity; in vsp1_video_setup_pipeline() local
826 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_setup_pipeline()
827 vsp1_entity_route_setup(entity, pipe, pipe->stream_config); in vsp1_video_setup_pipeline()
828 vsp1_entity_configure_stream(entity, pipe, NULL, in vsp1_video_setup_pipeline()
865 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_start_streaming()
907 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_stop_streaming()
930 media_pipeline_stop(&video->video.entity); in vsp1_video_stop_streaming()
1051 ret = __media_pipeline_start(&video->video.entity, &pipe->pipe); in vsp1_video_streamon()
1075 media_pipeline_stop(&video->video.entity); in vsp1_video_streamon()
1181 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1198 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1206 wpf->entity.index); in vsp1_video_suspend()
1223 pipe = wpf->entity.pipe; in vsp1_video_resume()
1260 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_video_create()
1281 ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); in vsp1_video_create()
1295 rwpf->entity.subdev.name, direction); in vsp1_video_create()
1337 media_entity_cleanup(&video->video.entity); in vsp1_video_cleanup()