PLATFORM_PROFILE_LAST
if (WARN_ON(val >= PLATFORM_PROFILE_LAST))
enum platform_profile_option profile = PLATFORM_PROFILE_LAST;
unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
unsigned long hidden_choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
unsigned long tmp[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
bitmap_or(tmp, handler->choices, handler->hidden_choices, PLATFORM_PROFILE_LAST);
bitmap_and(data->aggregate, tmp, data->aggregate, PLATFORM_PROFILE_LAST);
handler->hidden_choices, PLATFORM_PROFILE_LAST);
unsigned long aggregate[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
.aggregate = { [0 ... BITS_TO_LONGS(PLATFORM_PROFILE_LAST) - 1] = ~0UL },
if (bitmap_empty(data.aggregate, PLATFORM_PROFILE_LAST))
if (*profile != PLATFORM_PROFILE_LAST && *profile != val)
enum platform_profile_option profile = PLATFORM_PROFILE_LAST;
if (profile == PLATFORM_PROFILE_LAST)
.aggregate = { [0 ... BITS_TO_LONGS(PLATFORM_PROFILE_LAST) - 1] = ~0UL },
static_assert(ARRAY_SIZE(profile_names) == PLATFORM_PROFILE_LAST);
.aggregate = { [0 ... BITS_TO_LONGS(PLATFORM_PROFILE_LAST) - 1] = ~0UL },
enum platform_profile_option next = PLATFORM_PROFILE_LAST;
enum platform_profile_option profile = PLATFORM_PROFILE_LAST;
profile == PLATFORM_PROFILE_LAST)
PLATFORM_PROFILE_LAST,
if (bitmap_empty(pprof->choices, PLATFORM_PROFILE_LAST)) {
for_each_set_bit(i, choices, PLATFORM_PROFILE_LAST) {
if (bitmap_empty(choices, PLATFORM_PROFILE_LAST))
for (u32 i = 0; i < PLATFORM_PROFILE_LAST; i++) {
u8 supported_profiles[PLATFORM_PROFILE_LAST];
u8 profile_performance_modes[PLATFORM_PROFILE_LAST];