Searched refs:ent_enum (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/include/media/ |
D | media-entity.h | 94 struct media_entity_enum ent_enum; member 438 __must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum, 446 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum); 453 static inline void media_entity_enum_zero(struct media_entity_enum *ent_enum) in media_entity_enum_zero() argument 455 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero() 464 static inline void media_entity_enum_set(struct media_entity_enum *ent_enum, in media_entity_enum_set() argument 467 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_set() 470 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set() 479 static inline void media_entity_enum_clear(struct media_entity_enum *ent_enum, in media_entity_enum_clear() argument 482 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_clear() [all …]
|
D | media-device.h | 203 struct media_entity_enum *ent_enum, struct media_device *mdev) in media_entity_enum_init() argument 205 return __media_entity_enum_init(ent_enum, in media_entity_enum_init()
|
/Linux-v5.10/drivers/media/mc/ |
D | mc-entity.c | 63 __must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum, in __media_entity_enum_init() argument 67 ent_enum->bmap = kcalloc(idx_max / BITS_PER_LONG, sizeof(long), in __media_entity_enum_init() 69 if (!ent_enum->bmap) in __media_entity_enum_init() 72 bitmap_zero(ent_enum->bmap, idx_max); in __media_entity_enum_init() 73 ent_enum->idx_max = idx_max; in __media_entity_enum_init() 79 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum) in media_entity_enum_cleanup() argument 81 kfree(ent_enum->bmap); in media_entity_enum_cleanup() 280 return media_entity_enum_init(&graph->ent_enum, mdev); in media_graph_walk_init() 290 media_entity_enum_cleanup(&graph->ent_enum); in media_graph_walk_cleanup() 297 media_entity_enum_zero(&graph->ent_enum); in media_graph_walk_start() [all …]
|
D | mc-device.c | 658 >= mdev->pm_count_walk.ent_enum.idx_max) { in media_device_register_entity()
|
/Linux-v5.10/drivers/staging/media/omap4iss/ |
D | iss_video.h | 84 struct media_entity_enum ent_enum; member
|
D | iss_video.c | 878 ret = media_entity_enum_init(&pipe->ent_enum, entity->graph_obj.mdev); in iss_video_streamon() 895 media_entity_enum_set(&pipe->ent_enum, entity); in iss_video_streamon() 987 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamon() 1028 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamoff()
|
D | iss.c | 450 if (media_entity_enum_intersects(&pipe->ent_enum, &iss->crashed)) in iss_pipeline_enable()
|
/Linux-v5.10/drivers/media/platform/omap3isp/ |
D | ispvideo.h | 89 struct media_entity_enum ent_enum; member
|
D | ispvideo.c | 242 media_entity_enum_set(&pipe->ent_enum, entity); in isp_video_get_graph_data() 980 if (!media_entity_enum_test(&pipe->ent_enum, ents[i])) in isp_video_check_external_subdevs() 1032 if (media_entity_enum_test(&pipe->ent_enum, in isp_video_check_external_subdevs() 1099 ret = media_entity_enum_init(&pipe->ent_enum, &video->isp->media_dev); in isp_video_streamon() 1177 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamon() 1233 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamoff()
|
D | isp.c | 685 if (media_entity_enum_intersects(&pipe->ent_enum, &isp->crashed)) in isp_pipeline_enable()
|
/Linux-v5.10/drivers/media/platform/vsp1/ |
D | vsp1_video.c | 472 struct media_entity_enum ent_enum; in vsp1_video_pipeline_build_branch() local 478 ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); in vsp1_video_pipeline_build_branch() 526 if (media_entity_enum_test_and_set(&ent_enum, in vsp1_video_pipeline_build_branch() 553 media_entity_enum_cleanup(&ent_enum); in vsp1_video_pipeline_build_branch()
|