Lines Matching refs:sinf
251 u32 *sinf; member
361 pcc->sinf[i] = element->integer.value; in acpi_pcc_retrieve_biosdata()
365 pcc->sinf[hkey->package.count] = -1; in acpi_pcc_retrieve_biosdata()
386 return pcc->sinf[SINF_AC_CUR_BRIGHT]; in bl_get()
398 if (bright < pcc->sinf[SINF_AC_MIN_BRIGHT]) in bl_set_status()
399 bright = pcc->sinf[SINF_AC_MIN_BRIGHT]; in bl_set_status()
401 if (bright < pcc->sinf[SINF_DC_MIN_BRIGHT]) in bl_set_status()
402 bright = pcc->sinf[SINF_DC_MIN_BRIGHT]; in bl_set_status()
404 if (bright < pcc->sinf[SINF_AC_MIN_BRIGHT] || in bl_set_status()
405 bright > pcc->sinf[SINF_AC_MAX_BRIGHT]) in bl_set_status()
524 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_NUM_BATTERIES]); in numbatt_show()
536 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_LCD_TYPE]); in lcdtype_show()
548 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_MUTE]); in mute_show()
609 switch (pcc->sinf[SINF_ECO_MODE]) { in eco_mode_show()
646 pcc->sinf[SINF_ECO_MODE] = 0; in eco_mode_store()
651 pcc->sinf[SINF_ECO_MODE] = 1; in eco_mode_store()
678 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_AC_CUR_BRIGHT]); in ac_brightness_show()
708 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_DC_CUR_BRIGHT]); in dc_brightness_show()
738 return sysfs_emit(buf, "%u\n", pcc->sinf[SINF_CUR_BRIGHT]); in current_brightness_show()
1026 pcc->sinf = kcalloc(num_sifr + 1, sizeof(u32), GFP_KERNEL); in acpi_pcc_hotkey_add()
1027 if (!pcc->sinf) { in acpi_pcc_hotkey_add()
1055 props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT]; in acpi_pcc_hotkey_add()
1065 pcc->backlight->props.brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
1072 pcc->ac_brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
1073 pcc->dc_brightness = pcc->sinf[SINF_DC_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
1075 pcc->mute = pcc->sinf[SINF_MUTE]; in acpi_pcc_hotkey_add()
1077 pcc->eco_mode = pcc->sinf[SINF_ECO_MODE]; in acpi_pcc_hotkey_add()
1079 pcc->current_brightness = pcc->sinf[SINF_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
1113 kfree(pcc->sinf); in acpi_pcc_hotkey_add()
1141 kfree(pcc->sinf); in acpi_pcc_hotkey_remove()