Searched refs:ent_enum (Results 1 – 11 of 11) sorted by relevance
/Linux-v4.19/include/media/ |
D | media-entity.h | 102 struct media_entity_enum ent_enum; member 415 __must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum, 423 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum); 430 static inline void media_entity_enum_zero(struct media_entity_enum *ent_enum) in media_entity_enum_zero() argument 432 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero() 441 static inline void media_entity_enum_set(struct media_entity_enum *ent_enum, in media_entity_enum_set() argument 444 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_set() 447 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set() 456 static inline void media_entity_enum_clear(struct media_entity_enum *ent_enum, in media_entity_enum_clear() argument 459 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_clear() [all …]
|
D | media-device.h | 182 struct media_entity_enum *ent_enum, struct media_device *mdev) in media_entity_enum_init() argument 184 return __media_entity_enum_init(ent_enum, in media_entity_enum_init()
|
/Linux-v4.19/drivers/media/ |
D | media-entity.c | 72 __must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum, in __media_entity_enum_init() argument 76 ent_enum->bmap = kcalloc(idx_max / BITS_PER_LONG, sizeof(long), in __media_entity_enum_init() 78 if (!ent_enum->bmap) in __media_entity_enum_init() 81 bitmap_zero(ent_enum->bmap, idx_max); in __media_entity_enum_init() 82 ent_enum->idx_max = idx_max; in __media_entity_enum_init() 88 void media_entity_enum_cleanup(struct media_entity_enum *ent_enum) in media_entity_enum_cleanup() argument 90 kfree(ent_enum->bmap); in media_entity_enum_cleanup() 289 return media_entity_enum_init(&graph->ent_enum, mdev); in media_graph_walk_init() 299 media_entity_enum_cleanup(&graph->ent_enum); in media_graph_walk_cleanup() 306 media_entity_enum_zero(&graph->ent_enum); in media_graph_walk_start() [all …]
|
D | media-device.c | 610 >= mdev->pm_count_walk.ent_enum.idx_max) { in media_device_register_entity()
|
/Linux-v4.19/drivers/staging/media/omap4iss/ |
D | iss_video.h | 90 struct media_entity_enum ent_enum; member
|
D | iss_video.c | 889 ret = media_entity_enum_init(&pipe->ent_enum, entity->graph_obj.mdev); in iss_video_streamon() 906 media_entity_enum_set(&pipe->ent_enum, entity); in iss_video_streamon() 998 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamon() 1039 media_entity_enum_cleanup(&pipe->ent_enum); in iss_video_streamoff()
|
D | iss.c | 454 if (media_entity_enum_intersects(&pipe->ent_enum, &iss->crashed)) in iss_pipeline_enable()
|
/Linux-v4.19/drivers/media/platform/omap3isp/ |
D | ispvideo.h | 92 struct media_entity_enum ent_enum; member
|
D | ispvideo.c | 246 media_entity_enum_set(&pipe->ent_enum, entity); in isp_video_get_graph_data() 988 if (!media_entity_enum_test(&pipe->ent_enum, ents[i])) in isp_video_check_external_subdevs() 1040 if (media_entity_enum_test(&pipe->ent_enum, in isp_video_check_external_subdevs() 1107 ret = media_entity_enum_init(&pipe->ent_enum, &video->isp->media_dev); in isp_video_streamon() 1185 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamon() 1241 media_entity_enum_cleanup(&pipe->ent_enum); in isp_video_streamoff()
|
D | isp.c | 690 if (media_entity_enum_intersects(&pipe->ent_enum, &isp->crashed)) in isp_pipeline_enable()
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_video.c | 486 struct media_entity_enum ent_enum; in vsp1_video_pipeline_build_branch() local 492 ret = media_entity_enum_init(&ent_enum, &input->entity.vsp1->media_dev); in vsp1_video_pipeline_build_branch() 540 if (media_entity_enum_test_and_set(&ent_enum, in vsp1_video_pipeline_build_branch() 567 media_entity_enum_cleanup(&ent_enum); in vsp1_video_pipeline_build_branch()
|