Lines Matching refs:entity

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