Lines Matching refs:ACPI_VIDEO_FIRST_LEVEL
97 ACPI_VIDEO_FIRST_LEVEL, /* actual supported levels begin here */ enumerator
237 for (i = ACPI_VIDEO_FIRST_LEVEL; i < vd->brightness->count; i++) { in acpi_video_get_brightness()
239 return i - ACPI_VIDEO_FIRST_LEVEL; in acpi_video_get_brightness()
246 int request_level = bd->props.brightness + ACPI_VIDEO_FIRST_LEVEL; in acpi_video_set_brightness()
266 *state = video->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in video_get_max_state()
280 for (offset = ACPI_VIDEO_FIRST_LEVEL; offset < video->brightness->count; in video_get_cur_state()
297 if (state >= video->brightness->count - ACPI_VIDEO_FIRST_LEVEL) in video_set_cur_state()
362 for (state = ACPI_VIDEO_FIRST_LEVEL; state < device->brightness->count; in acpi_video_device_lcd_set_level()
367 state - ACPI_VIDEO_FIRST_LEVEL; in acpi_video_device_lcd_set_level()
578 ACPI_VIDEO_FIRST_LEVEL - 1 - bqc_value; in acpi_video_bqc_value_to_level()
581 ACPI_VIDEO_FIRST_LEVEL]; in acpi_video_bqc_value_to_level()
615 for (i = ACPI_VIDEO_FIRST_LEVEL; in acpi_video_device_lcd_get_level_current()
788 ? br->levels[ACPI_VIDEO_FIRST_LEVEL + 1] in acpi_video_bqc_quirk()
803 level = br->count - ACPI_VIDEO_FIRST_LEVEL - 1 - level; in acpi_video_bqc_quirk()
804 if (br->levels[level + ACPI_VIDEO_FIRST_LEVEL] == test_level) in acpi_video_bqc_quirk()
834 if (obj->package.count < ACPI_VIDEO_FIRST_LEVEL) { in acpi_video_get_levels()
851 br->levels = kmalloc_array(obj->package.count + ACPI_VIDEO_FIRST_LEVEL, in acpi_video_get_levels()
867 if (count > ACPI_VIDEO_FIRST_LEVEL in acpi_video_get_levels()
884 for (i = ACPI_VIDEO_FIRST_LEVEL; i < count; i++) { in acpi_video_get_levels()
891 if (level_ac_battery < ACPI_VIDEO_FIRST_LEVEL) { in acpi_video_get_levels()
892 level_ac_battery = ACPI_VIDEO_FIRST_LEVEL - level_ac_battery; in acpi_video_get_levels()
895 i >= ACPI_VIDEO_FIRST_LEVEL; i--) in acpi_video_get_levels()
898 } else if (level_ac_battery > ACPI_VIDEO_FIRST_LEVEL) in acpi_video_get_levels()
902 if (max_level == br->levels[ACPI_VIDEO_FIRST_LEVEL]) { in acpi_video_get_levels()
904 sort(&br->levels[ACPI_VIDEO_FIRST_LEVEL], in acpi_video_get_levels()
905 count - ACPI_VIDEO_FIRST_LEVEL, in acpi_video_get_levels()
906 sizeof(br->levels[ACPI_VIDEO_FIRST_LEVEL]), in acpi_video_get_levels()
977 for (i = ACPI_VIDEO_FIRST_LEVEL; i < br->count; i++) in acpi_video_init_brightness()
990 br->count - ACPI_VIDEO_FIRST_LEVEL)); in acpi_video_init_brightness()
1381 for (i = ACPI_VIDEO_FIRST_LEVEL; i < device->brightness->count; i++) { in acpi_video_get_next_level()
1391 for (i = ACPI_VIDEO_FIRST_LEVEL; i < device->brightness->count; i++) { in acpi_video_get_next_level()
1773 device->brightness->count - ACPI_VIDEO_FIRST_LEVEL - 1; in acpi_video_dev_register_backlight()