Lines Matching full:entity

18 #include <media/media-entity.h>
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()
200 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition()
201 pipe->output->entity.state, in vsp1_video_calculate_partition()
255 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions()
257 struct vsp1_entity *entity; in vsp1_video_pipeline_setup_partitions() local
265 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions()
266 pipe->output->entity.state, in vsp1_video_pipeline_setup_partitions()
275 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_pipeline_setup_partitions()
278 if (!entity->ops->max_width) in vsp1_video_pipeline_setup_partitions()
281 entity_max = entity->ops->max_width(entity, pipe); in vsp1_video_pipeline_setup_partitions()
316 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_complete_buffer()
369 struct vsp1_entity *entity; in vsp1_video_pipeline_run_partition() local
373 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run_partition()
374 vsp1_entity_configure_partition(entity, pipe, dl, dlb); in vsp1_video_pipeline_run_partition()
379 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run()
380 struct vsp1_entity *entity; in vsp1_video_pipeline_run() local
398 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_video_pipeline_run()
399 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
434 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_frame_end()
474 struct vsp1_entity *entity; in vsp1_video_pipeline_build_branch() local
479 ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); in vsp1_video_pipeline_build_branch()
488 pad = vsp1_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); in vsp1_video_pipeline_build_branch()
497 if (!is_media_entity_v4l2_subdev(pad->entity)) { in vsp1_video_pipeline_build_branch()
502 entity = to_vsp1_entity( in vsp1_video_pipeline_build_branch()
503 media_entity_to_v4l2_subdev(pad->entity)); in vsp1_video_pipeline_build_branch()
509 if (entity->type == VSP1_ENTITY_BRU || in vsp1_video_pipeline_build_branch()
510 entity->type == VSP1_ENTITY_BRS) { in vsp1_video_pipeline_build_branch()
517 brx = to_brx(&entity->subdev); in vsp1_video_pipeline_build_branch()
523 if (entity->type == VSP1_ENTITY_WPF) in vsp1_video_pipeline_build_branch()
528 &entity->subdev.entity)) { in vsp1_video_pipeline_build_branch()
534 if (entity->type == VSP1_ENTITY_UDS) { in vsp1_video_pipeline_build_branch()
540 pipe->uds = entity; in vsp1_video_pipeline_build_branch()
541 pipe->uds_input = brx ? &brx->entity : &input->entity; in vsp1_video_pipeline_build_branch()
545 pad = &entity->pads[entity->source_pad]; in vsp1_video_pipeline_build_branch()
549 /* The last entity must be the output WPF. */ in vsp1_video_pipeline_build_branch()
550 if (entity != &output->entity) in vsp1_video_pipeline_build_branch()
563 struct media_entity *entity = &video->video.entity; in vsp1_video_pipeline_build() local
564 struct media_device *mdev = entity->graph_obj.mdev; in vsp1_video_pipeline_build()
573 media_graph_walk_start(&graph, entity); in vsp1_video_pipeline_build()
575 while ((entity = media_graph_walk_next(&graph))) { in vsp1_video_pipeline_build()
580 if (!is_media_entity_v4l2_subdev(entity)) in vsp1_video_pipeline_build()
583 subdev = media_entity_to_v4l2_subdev(entity); in vsp1_video_pipeline_build()
591 pipe->inputs[rwpf->entity.index] = rwpf; in vsp1_video_pipeline_build()
667 if (!video->rwpf->entity.pipe) { in vsp1_video_pipeline_get()
679 pipe = video->rwpf->entity.pipe; in vsp1_video_pipeline_get()
696 struct media_device *mdev = &pipe->output->entity.vsp1->media_dev; in vsp1_video_pipeline_put()
762 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_buffer_queue()
789 struct vsp1_entity *entity; in vsp1_video_setup_pipeline() local
827 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_setup_pipeline()
828 vsp1_entity_route_setup(entity, pipe, pipe->stream_config); in vsp1_video_setup_pipeline()
829 vsp1_entity_configure_stream(entity, pipe, NULL, in vsp1_video_setup_pipeline()
866 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_start_streaming()
908 struct vsp1_pipeline *pipe = video->rwpf->entity.pipe; in vsp1_video_stop_streaming()
1039 * touching an entity in the pipeline can be activated or deactivated in vsp1_video_streamon()
1170 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1187 pipe = wpf->entity.pipe; in vsp1_video_suspend()
1195 wpf->entity.index); in vsp1_video_suspend()
1212 pipe = wpf->entity.pipe; in vsp1_video_resume()
1249 if (rwpf->entity.type == VSP1_ENTITY_RPF) { in vsp1_video_create()
1269 /* Initialize the media entity... */ in vsp1_video_create()
1270 ret = media_entity_pads_init(&video->video.entity, 1, &video->pad); in vsp1_video_create()
1284 rwpf->entity.subdev.name, direction); in vsp1_video_create()
1326 media_entity_cleanup(&video->video.entity); in vsp1_video_cleanup()