Lines Matching defs:levels
61 int *levels;
182 vidbp->cur_level = vidbp->levels[vidbp->cur_level_index];
193 if (vidbp->levels[i] == vidbp->cur_level) {
210 if (acpi_drv_set_int(vidbp->dev.hdl, "_BCM", vidbp->levels[level])
215 vidbp->cur_level = vidbp->levels[level];
461 * op->nlev will be needed to free op->levels.
464 vidbp->levels = kmem_zalloc(nlev * sizeof (uint32_t), KM_SLEEP);
467 * Get all the supported brightness levels.
480 vidbp->levels[i] = lev;
484 * Sort the brightness levels.
488 if (vidbp->levels[k] > vidbp->levels[k+1]) {
489 tmp = vidbp->levels[k+1];
490 vidbp->levels[k+1] = vidbp->levels[k];
491 vidbp->levels[k] = tmp;
497 * The first two levels could be duplicated, so remove
501 if (vidbp->levels[l] == vidbp->levels[l+1]) {
503 vidbp->levels[m] = vidbp->levels[m+1];
645 if (copyout(vidbp->levels, (void *)arg,
646 sizeof (*vidbp->levels) * vidbp->nlevel)) {
654 * Need to get the current levels through ACPI first
655 * then go through array of levels to find index.
664 if (vidbp->levels[i] == vidbp->cur_level) {