Home
last modified time | relevance | path

Searched refs:ent_enum (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/include/media/
Dmedia-entity.h96 struct media_entity_enum ent_enum; member
149 struct media_entity_enum ent_enum; member
508 __must_check int media_entity_enum_init(struct media_entity_enum *ent_enum,
516 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum);
523 static inline void media_entity_enum_zero(struct media_entity_enum *ent_enum) in media_entity_enum_zero() argument
525 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero()
534 static inline void media_entity_enum_set(struct media_entity_enum *ent_enum, in media_entity_enum_set() argument
537 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_set()
540 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set()
549 static inline void media_entity_enum_clear(struct media_entity_enum *ent_enum, in media_entity_enum_clear() argument
[all …]
/Linux-v6.6/drivers/media/mc/
Dmc-entity.c62 __must_check int media_entity_enum_init(struct media_entity_enum *ent_enum, in media_entity_enum_init() argument
68 ent_enum->bmap = bitmap_zalloc(idx_max, GFP_KERNEL); in media_entity_enum_init()
69 if (!ent_enum->bmap) in media_entity_enum_init()
72 ent_enum->idx_max = idx_max; in media_entity_enum_init()
78 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum) in media_entity_enum_cleanup() argument
80 bitmap_free(ent_enum->bmap); in media_entity_enum_cleanup()
318 return media_entity_enum_init(&graph->ent_enum, mdev); in media_graph_walk_init()
328 media_entity_enum_cleanup(&graph->ent_enum); in media_graph_walk_cleanup()
335 media_entity_enum_zero(&graph->ent_enum); in media_graph_walk_start()
336 media_entity_enum_set(&graph->ent_enum, entity); in media_graph_walk_start()
[all …]
Dmc-device.c650 >= mdev->pm_count_walk.ent_enum.idx_max) { in media_device_register_entity()
/Linux-v6.6/drivers/media/platform/ti/omap3isp/
Dispvideo.c236 media_entity_enum_set(&pipe->ent_enum, entity); in isp_video_get_graph_data()
977 if (!media_entity_enum_test(&pipe->ent_enum, ents[i])) in isp_video_check_external_subdevs()
1028 if (media_entity_enum_test(&pipe->ent_enum, in isp_video_check_external_subdevs()
1094 ret = media_entity_enum_init(&pipe->ent_enum, &video->isp->media_dev); in isp_video_streamon()
1172 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamon()
1228 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamoff()
Dispvideo.h89 struct media_entity_enum ent_enum; member
Disp.c686 if (media_entity_enum_intersects(&pipe->ent_enum, &isp->crashed)) in isp_pipeline_enable()
/Linux-v6.6/drivers/staging/media/omap4iss/
Diss_video.h83 struct media_entity_enum ent_enum; member
Diss_video.c873 ret = media_entity_enum_init(&pipe->ent_enum, mdev); in iss_video_streamon()
885 media_entity_enum_set(&pipe->ent_enum, pad->entity); in iss_video_streamon()
977 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamon()
1018 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamoff()
Diss.c450 if (media_entity_enum_intersects(&pipe->ent_enum, &iss->crashed)) in iss_pipeline_enable()
/Linux-v6.6/drivers/media/platform/renesas/vsp1/
Dvsp1_video.c473 struct media_entity_enum ent_enum; 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()
527 if (media_entity_enum_test_and_set(&ent_enum, in vsp1_video_pipeline_build_branch()
554 media_entity_enum_cleanup(&ent_enum); in vsp1_video_pipeline_build_branch()