Lines Matching refs:methods
116 struct model_data *methods; //methods available on the laptop member
420 hotk->methods->name); in proc_read_info()
535 return sprintf(page, "%d\n", read_led(hotk, hotk->methods->mled_status, MLED_ON)); in proc_read_mled()
544 return write_led(buffer, count, hotk, hotk->methods->mt_mled, MLED_ON, 1); in proc_write_mled()
555 return sprintf(page, "%d\n", read_led(hotk, hotk->methods->wled_status, WLED_ON)); in proc_read_wled()
563 return write_led(buffer, count, hotk, hotk->methods->mt_wled, WLED_ON, 0); in proc_write_wled()
574 return sprintf(page, "%d\n", read_led(hotk, hotk->methods->tled_status, TLED_ON)); in proc_read_tled()
582 return write_led(buffer, count, hotk, hotk->methods->mt_tled, TLED_ON, 0); in proc_write_tled()
593 if (!read_acpi_int(NULL, hotk->methods->lcd_status, &lcd)) in get_lcd_state()
617 status = acpi_evaluate_object(NULL, hotk->methods->lcd_status, &input, &output); in get_lcd_state()
638 acpi_evaluate_object(NULL, hotk->methods->mt_lcd_switch, in set_lcd_state()
641 if (!write_acpi_int(hotk->handle, hotk->methods->mt_lcd_switch, 0x07, NULL)) in set_lcd_state()
679 if(hotk->methods->brightness_get) { /* SPLV/GPLV laptop */ in read_brightness()
680 if (!read_acpi_int(hotk->handle, hotk->methods->brightness_get, in read_brightness()
683 } else if (hotk->methods->brightness_status) { /* For D1 for example */ in read_brightness()
684 if (!read_acpi_int(NULL, hotk->methods->brightness_status, in read_brightness()
700 if(hotk->methods->brightness_set) { in set_brightness()
701 if (!write_acpi_int(hotk->handle, hotk->methods->brightness_set, in set_brightness()
711 hotk->methods->brightness_up : in set_brightness()
712 hotk->methods->brightness_down, in set_brightness()
751 if (!write_acpi_int(hotk->handle, hotk->methods->display_set, in set_display()
768 if (!read_acpi_int(hotk->handle, hotk->methods->display_get, &value)) in proc_read_disp()
855 if (hotk->methods->mt_wled) { in asus_hotk_add_fs()
859 if (hotk->methods->mt_mled) { in asus_hotk_add_fs()
863 if (hotk->methods->mt_tled) { in asus_hotk_add_fs()
871 if (hotk->methods->mt_lcd_switch && hotk->methods->lcd_status) { in asus_hotk_add_fs()
875 if ((hotk->methods->brightness_up && hotk->methods->brightness_down) || in asus_hotk_add_fs()
876 (hotk->methods->brightness_get && hotk->methods->brightness_get)) { in asus_hotk_add_fs()
880 if (hotk->methods->display_set) { in asus_hotk_add_fs()
894 if (hotk->methods->mt_wled) in asus_hotk_remove_fs()
896 if (hotk->methods->mt_mled) in asus_hotk_remove_fs()
898 if (hotk->methods->mt_tled) in asus_hotk_remove_fs()
900 if (hotk->methods->mt_lcd_switch && hotk->methods->lcd_status) in asus_hotk_remove_fs()
902 …if ((hotk->methods->brightness_up && hotk->methods->brightness_down) || (hotk->methods->brightness… in asus_hotk_remove_fs()
904 if (hotk->methods->display_set) in asus_hotk_remove_fs()
984 hotk->methods = &model_conf[hotk->model]; in asus_hotk_get_info()
1039 hotk->methods = &model_conf[hotk->model]; in asus_hotk_get_info()
1043 hotk->methods->lcd_status = NULL; in asus_hotk_get_info()
1047 hotk->methods->mt_mled = NULL; in asus_hotk_get_info()
1050 hotk->methods->display_get = NULL; //TODO in asus_hotk_get_info()
1051 hotk->methods->lcd_status = "\\_SB.BKLT"; in asus_hotk_get_info()
1052 hotk->methods->mt_wled = "WLED"; in asus_hotk_get_info()
1053 hotk->methods->wled_status = "\\_SB.PCI0.SBRG.SG13"; in asus_hotk_get_info()
1058 hotk->methods->mled_status = NULL; in asus_hotk_get_info()
1135 if ((!hotk->methods->brightness_get) && (!hotk->methods->brightness_status) && in asus_hotk_add()
1136 (hotk->methods->brightness_up && hotk->methods->brightness_down)) { in asus_hotk_add()
1137 status = acpi_evaluate_object(NULL, hotk->methods->brightness_down, in asus_hotk_add()
1142 status = acpi_evaluate_object(NULL, hotk->methods->brightness_up, in asus_hotk_add()