Lines Matching refs:ent_enum

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()
462 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear()
473 static inline bool media_entity_enum_test(struct media_entity_enum *ent_enum, in media_entity_enum_test() argument
476 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test()
479 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test()
492 media_entity_enum_test_and_set(struct media_entity_enum *ent_enum, in media_entity_enum_test_and_set() argument
495 if (WARN_ON(entity->internal_idx >= ent_enum->idx_max)) in media_entity_enum_test_and_set()
498 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set()
508 static inline bool media_entity_enum_empty(struct media_entity_enum *ent_enum) in media_entity_enum_empty() argument
510 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty()