Lines Matching refs:levels
194 int *levels; member
243 if (vd->brightness->levels[i] == cur_level) in acpi_video_get_brightness()
258 vd->brightness->levels[request_level]); in acpi_video_set_brightness()
288 if (level == video->brightness->levels[offset]) { in video_get_cur_state()
307 level = video->brightness->levels[state -1]; in video_set_cur_state()
323 union acpi_object **levels) in acpi_video_device_lcd_query_levels() argument
330 *levels = NULL; in acpi_video_device_lcd_query_levels()
342 *levels = obj; in acpi_video_device_lcd_query_levels()
371 if (level == device->brightness->levels[state]) { in acpi_video_device_lcd_set_level()
457 *level = device->brightness->levels[*level + 2]; in acpi_video_device_lcd_get_level_current()
462 if (device->brightness->levels[i] == *level) { in acpi_video_device_lcd_get_level_current()
621 br->levels = kmalloc((obj->package.count + 2) * sizeof *(br->levels), in acpi_video_init_brightness()
623 if (!br->levels) { in acpi_video_init_brightness()
634 br->levels[count] = (u32) o->integer.value; in acpi_video_init_brightness()
636 if (br->levels[count] > max_level) in acpi_video_init_brightness()
637 max_level = br->levels[count]; in acpi_video_init_brightness()
648 if (br->levels[i] == br->levels[0]) in acpi_video_init_brightness()
650 if (br->levels[i] == br->levels[1]) in acpi_video_init_brightness()
658 br->levels[i] = br->levels[i - level_ac_battery]; in acpi_video_init_brightness()
664 if (max_level == br->levels[2]) { in acpi_video_init_brightness()
666 sort(&br->levels[2], count - 2, sizeof(br->levels[2]), in acpi_video_init_brightness()
668 } else if (max_level != br->levels[count - 1]) in acpi_video_init_brightness()
717 if (level_old == br->levels[i]) in acpi_video_init_brightness()
725 level = br->levels[level_old]; in acpi_video_init_brightness()
738 kfree(br->levels); in acpi_video_init_brightness()
1056 kfree(data->brightness->levels); in acpi_video_bus_get_one_device()
1206 l = device->brightness->levels[i]; in acpi_video_get_next_level()
1216 l = device->brightness->levels[i]; in acpi_video_get_next_level()
1409 kfree(dev->brightness->levels); in acpi_video_bus_put_devices()