Lines Matching refs:entity

22 #include <media/media-entity.h>
164 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV)
170 return media_entity_to_v4l2_subdev(remote->entity);
314 struct vsp1_entity *entity;
322 pad = media_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]);
329 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV)
332 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity));
337 if (entity->type == VSP1_ENTITY_BRU) {
338 struct vsp1_bru *bru = to_bru(&entity->subdev);
351 if (entity->type == VSP1_ENTITY_WPF)
355 if (entities & (1 << entity->subdev.entity.id))
358 entities |= 1 << entity->subdev.entity.id;
361 if (entity->type == VSP1_ENTITY_UDS) {
365 pipe->uds = entity;
367 : &input->entity;
375 pad = &entity->pads[entity->source_pad];
379 /* The last entity must be the output WPF. */
380 if (entity != &output->entity)
411 struct media_entity *entity = &video->video.entity;
412 struct media_device *mdev = entity->parent;
419 media_entity_graph_walk_start(&graph, entity);
421 while ((entity = media_entity_graph_walk_next(&graph))) {
426 if (media_entity_type(entity) != MEDIA_ENT_T_V4L2_SUBDEV) {
431 subdev = media_entity_to_v4l2_subdev(entity);
510 struct vsp1_device *vsp1 = pipe->output->entity.vsp1;
512 vsp1_write(vsp1, VI6_CMD(pipe->output->entity.index), VI6_CMD_STRCMD);
519 struct vsp1_entity *entity;
532 list_for_each_entry(entity, &pipe->entities, list_pipe) {
533 if (entity->route && entity->route->reg)
534 vsp1_write(entity->vsp1, entity->route->reg,
537 v4l2_subdev_call(&entity->subdev, video, s_stream, 0);
571 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity);
677 struct vsp1_entity *entity;
683 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV)
686 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity));
691 if (entity->type == VSP1_ENTITY_BRU)
694 if (entity->type == VSP1_ENTITY_UDS) {
695 struct vsp1_uds *uds = to_uds(&entity->subdev);
701 pad = &entity->pads[entity->source_pad];
766 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity);
798 sink = container_of(source->sink, struct vsp1_entity, subdev.entity);
806 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity);
807 struct vsp1_entity *entity;
832 list_for_each_entry(entity, &pipe->entities, list_pipe) {
833 vsp1_entity_route_setup(entity);
835 ret = v4l2_subdev_call(&entity->subdev, video,
858 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity);
873 media_entity_pipeline_stop(&video->video.entity);
993 /* Start streaming on the pipeline. No link touching an entity in the
999 pipe = video->video.entity.pipe
1000 ? to_vsp1_pipeline(&video->video.entity) : &video->pipe;
1002 ret = media_entity_pipeline_start(&video->video.entity, &pipe->pipe);
1027 media_entity_pipeline_stop(&video->video.entity);
1144 /* Initialize the media entity... */
1145 ret = media_entity_init(&video->video.entity, 1, &video->pad, 0);
1216 media_entity_cleanup(&video->video.entity);