Lines Matching refs:entity
164 media_entity_type(remote->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in vsp1_video_remote_subdev()
170 return media_entity_to_v4l2_subdev(remote->entity); in vsp1_video_remote_subdev()
314 struct vsp1_entity *entity; in vsp1_pipeline_validate_branch() local
322 pad = media_entity_remote_pad(&input->entity.pads[RWPF_PAD_SOURCE]); in vsp1_pipeline_validate_branch()
329 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in vsp1_pipeline_validate_branch()
332 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity)); in vsp1_pipeline_validate_branch()
337 if (entity->type == VSP1_ENTITY_BRU) { in vsp1_pipeline_validate_branch()
338 struct vsp1_bru *bru = to_bru(&entity->subdev); in vsp1_pipeline_validate_branch()
351 if (entity->type == VSP1_ENTITY_WPF) in vsp1_pipeline_validate_branch()
355 if (entities & (1 << entity->subdev.entity.id)) in vsp1_pipeline_validate_branch()
358 entities |= 1 << entity->subdev.entity.id; in vsp1_pipeline_validate_branch()
361 if (entity->type == VSP1_ENTITY_UDS) { in vsp1_pipeline_validate_branch()
365 pipe->uds = entity; in vsp1_pipeline_validate_branch()
367 : &input->entity; in vsp1_pipeline_validate_branch()
375 pad = &entity->pads[entity->source_pad]; in vsp1_pipeline_validate_branch()
380 if (entity != &output->entity) in vsp1_pipeline_validate_branch()
411 struct media_entity *entity = &video->video.entity; in vsp1_pipeline_validate() local
412 struct media_device *mdev = entity->parent; in vsp1_pipeline_validate()
419 media_entity_graph_walk_start(&graph, entity); in vsp1_pipeline_validate()
421 while ((entity = media_entity_graph_walk_next(&graph))) { in vsp1_pipeline_validate()
426 if (media_entity_type(entity) != MEDIA_ENT_T_V4L2_SUBDEV) { in vsp1_pipeline_validate()
431 subdev = media_entity_to_v4l2_subdev(entity); in vsp1_pipeline_validate()
510 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_pipeline_run()
512 vsp1_write(vsp1, VI6_CMD(pipe->output->entity.index), VI6_CMD_STRCMD); in vsp1_pipeline_run()
531 struct vsp1_entity *entity; in vsp1_pipeline_stop() local
544 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_pipeline_stop()
545 if (entity->route && entity->route->reg) in vsp1_pipeline_stop()
546 vsp1_write(entity->vsp1, entity->route->reg, in vsp1_pipeline_stop()
549 v4l2_subdev_call(&entity->subdev, video, s_stream, 0); in vsp1_pipeline_stop()
583 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); in vsp1_video_complete_buffer()
689 struct vsp1_entity *entity; in vsp1_pipeline_propagate_alpha() local
695 if (media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in vsp1_pipeline_propagate_alpha()
698 entity = to_vsp1_entity(media_entity_to_v4l2_subdev(pad->entity)); in vsp1_pipeline_propagate_alpha()
703 if (entity->type == VSP1_ENTITY_BRU) in vsp1_pipeline_propagate_alpha()
706 if (entity->type == VSP1_ENTITY_UDS) { in vsp1_pipeline_propagate_alpha()
707 struct vsp1_uds *uds = to_uds(&entity->subdev); in vsp1_pipeline_propagate_alpha()
713 pad = &entity->pads[entity->source_pad]; in vsp1_pipeline_propagate_alpha()
735 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); in vsp1_pipelines_suspend()
752 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); in vsp1_pipelines_suspend()
760 wpf->entity.index); in vsp1_pipelines_suspend()
776 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); in vsp1_pipelines_resume()
848 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); in vsp1_video_buffer_queue()
880 sink = container_of(source->sink, struct vsp1_entity, subdev.entity); in vsp1_entity_route_setup()
888 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); in vsp1_video_start_streaming()
889 struct vsp1_entity *entity; in vsp1_video_start_streaming() local
914 list_for_each_entry(entity, &pipe->entities, list_pipe) { in vsp1_video_start_streaming()
915 vsp1_entity_route_setup(entity); in vsp1_video_start_streaming()
917 ret = v4l2_subdev_call(&entity->subdev, video, in vsp1_video_start_streaming()
940 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); in vsp1_video_stop_streaming()
955 media_entity_pipeline_stop(&video->video.entity); in vsp1_video_stop_streaming()
1081 pipe = video->video.entity.pipe in vsp1_video_streamon()
1082 ? to_vsp1_pipeline(&video->video.entity) : &video->pipe; in vsp1_video_streamon()
1084 ret = media_entity_pipeline_start(&video->video.entity, &pipe->pipe); in vsp1_video_streamon()
1109 media_entity_pipeline_stop(&video->video.entity); in vsp1_video_streamon()
1227 ret = media_entity_init(&video->video.entity, 1, &video->pad, 0); in vsp1_video_init()
1298 media_entity_cleanup(&video->video.entity); in vsp1_video_cleanup()