• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/platform/x86/

Lines Matching refs:hotk

69  * Flags for hotk status
113 * about the hotk device
117 acpi_handle handle; /* the handle of the hotk device */
118 char status; /* status of the hotk, for LEDs */
448 * available before the hotk
453 static struct asus_hotk *hotk;
523 seq_printf(m, "Model reference : %s\n", hotk->methods->name);
530 if (read_acpi_int(hotk->handle, "SFUN", &temp))
539 if (read_acpi_int(hotk->handle, "ASYM", &temp))
587 return (hotk->status & ledmask) ? 1 : 0;
616 hotk->status =
617 (led_out) ? (hotk->status | ledmask) : (hotk->status & ~ledmask);
622 if (!write_acpi_int(hotk->handle, ledname, led_out, NULL))
634 seq_printf(m, "%d\n", read_led(hotk->methods->mled_status, MLED_ON));
646 return write_led(buffer, count, hotk->methods->mt_mled, MLED_ON, 1);
663 seq_printf(m, "0x%08x\n", hotk->ledd_status);
680 (hotk->handle, hotk->methods->mt_ledd, value, NULL))
684 hotk->ledd_status = (u32) value;
703 seq_printf(m, "%d\n", read_led(hotk->methods->wled_status, WLED_ON));
715 return write_led(buffer, count, hotk->methods->mt_wled, WLED_ON, 0);
732 seq_printf(m, "%d\n", read_led(hotk->methods->bt_status, BT_ON));
746 return write_led(buffer, count, hotk->methods->mt_bt_switch, BT_ON, 0);
763 seq_printf(m, "%d\n", read_led(hotk->methods->tled_status, TLED_ON));
775 return write_led(buffer, count, hotk->methods->mt_tled, TLED_ON, 0);
791 if (hotk->model == L3H) {
812 acpi_evaluate_object(NULL, hotk->methods->lcd_status,
819 } else if (hotk->model == F3Sa) {
831 status = acpi_evaluate_integer(NULL, hotk->methods->lcd_status,
839 if (!read_acpi_int(NULL, hotk->methods->lcd_status, &lcd))
843 if (hotk->model == L2D)
858 if (hotk->model != L3H) {
861 hotk->methods->mt_lcd_switch,
866 (hotk->handle, hotk->methods->mt_lcd_switch, 0x07,
914 if (hotk->methods->brightness_get) { /* SPLV/GPLV laptop */
915 if (!read_acpi_int(hotk->handle, hotk->methods->brightness_get,
919 } else if (hotk->methods->brightness_status) { /* For D1 for example */
920 if (!read_acpi_int(NULL, hotk->methods->brightness_status,
925 value = hotk->brightness;
938 if (hotk->methods->brightness_set) {
939 if (!write_acpi_int(hotk->handle, hotk->methods->brightness_set,
952 hotk->methods->brightness_up :
953 hotk->methods->brightness_down,
1008 if (!write_acpi_int(hotk->handle, hotk->methods->display_set,
1022 if (!read_acpi_int(hotk->handle, hotk->methods->display_get, &value))
1111 if (hotk->methods->mt_wled) {
1115 if (hotk->methods->mt_ledd) {
1119 if (hotk->methods->mt_mled) {
1123 if (hotk->methods->mt_tled) {
1127 if (hotk->methods->mt_bt_switch) {
1135 if (hotk->methods->mt_lcd_switch && hotk->methods->lcd_status) {
1139 if ((hotk->methods->brightness_up && hotk->methods->brightness_down) ||
1140 (hotk->methods->brightness_get && hotk->methods->brightness_set)) {
1144 if (hotk->methods->display_set) {
1155 if (hotk->methods->mt_wled)
1157 if (hotk->methods->mt_mled)
1159 if (hotk->methods->mt_tled)
1161 if (hotk->methods->mt_ledd)
1163 if (hotk->methods->mt_bt_switch)
1165 if (hotk->methods->mt_lcd_switch && hotk->methods->lcd_status)
1167 if ((hotk->methods->brightness_up
1168 && hotk->methods->brightness_down)
1169 || (hotk->methods->brightness_get
1170 && hotk->methods->brightness_set))
1172 if (hotk->methods->display_set)
1181 if (!hotk)
1193 hotk->brightness = (event & ~((u32) BR_UP));
1195 hotk->brightness = (event & ~((u32) BR_DOWN));
1197 acpi_bus_generate_proc_event(hotk->device, event,
1198 hotk->event_count[event % 128]++);
1270 * This function is used to initialize the hotk with right values. In this
1271 * method, we can make all the detection we want, and modify the hotk struct
1294 if (!write_acpi_int(hotk->handle, "INIT", 0, &buffer)) {
1300 if (!read_acpi_int(hotk->handle, "BSTS", &bsts_result))
1327 hotk->model = asus_model_match(string);
1328 if (hotk->model == END_MODEL) { /* match failed */
1331 hotk->model = P30;
1334 hotk->methods = &model_conf[hotk->model];
1338 hotk->model = M2E;
1347 hotk->methods = &model_conf[hotk->model];
1352 hotk->methods->lcd_status = NULL;
1356 hotk->methods->lcd_status = "\\BLFG";
1361 hotk->methods->mt_mled = NULL;
1364 hotk->methods->mt_wled = NULL;
1369 hotk->methods->mt_wled = "WLED";
1373 hotk->methods->mled_status = NULL;
1386 result = acpi_bus_get_status(hotk->device);
1390 if (hotk->device->status.present) {
1410 hotk = kzalloc(sizeof(struct asus_hotk), GFP_KERNEL);
1411 if (!hotk)
1414 hotk->handle = device->handle;
1417 device->driver_data = hotk;
1418 hotk->device = device;
1428 /* For laptops without GPLV: init the hotk->brightness value */
1429 if ((!hotk->methods->brightness_get)
1430 && (!hotk->methods->brightness_status)
1431 && (hotk->methods->brightness_up && hotk->methods->brightness_down)) {
1433 acpi_evaluate_object(NULL, hotk->methods->brightness_down,
1440 hotk->methods->brightness_up,
1451 hotk->ledd_status = 0xFFF;
1455 kfree(hotk);
1464 kfree(hotk);