• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/misc/

Lines Matching refs:hotk

75  * Flags for hotk status
174 * about the hotk device
179 acpi_handle handle; //the handle of the hotk device
180 char status; //status of the hotk, for LEDs, ...
190 * available before the hotk
195 static struct asus_hotk *hotk;
277 return (hotk->status & mask) ? 1 : 0;
285 return (hotk->status & mask) ? 1 : 0;
299 return (hotk->status & GPS_ON) ? 1 : 0;
311 return (hotk->status & mask) ? 1 : 0;
316 hotk->status = (out) ? (hotk->status | mask) : (hotk->status & ~mask);
458 len += sprintf(page + len, "Model reference : %s\n", hotk->name);
465 rv = acpi_evaluate_integer(hotk->handle, "SFUN", NULL, &temp);
476 rv = acpi_evaluate_integer(hotk->handle, "ASYM", NULL, &temp);
534 return sprintf(buf, "0x%08x\n", hotk->ledd_status);
547 hotk->ledd_status = (u32) value;
648 hotk->light_switch = value;
654 return sprintf(buf, "%d\n", hotk->light_switch);
673 hotk->light_level = value;
679 return sprintf(buf, "%d\n", hotk->light_level);
715 if (!hotk)
730 acpi_bus_generate_event(hotk->device, event,
731 hotk->event_count[event % 128]++);
836 * This function is used to initialize the hotk with right values. In this
837 * method, we can make all the detection we want, and modify the hotk struct
860 if (!write_acpi_int(hotk->handle, "INIT", 0, &buffer)) {
867 acpi_evaluate_integer(hotk->handle, "BSTS", NULL, &bsts_result);
875 write_acpi_int(hotk->handle, "CWAP", wapf, NULL);
897 hotk->name = kstrdup(string, GFP_KERNEL);
898 if (!hotk->name)
919 acpi_evaluate_integer(hotk->handle, "HRWS", NULL, &hwrs_result);
956 result = acpi_bus_get_status(hotk->device);
960 if (hotk->device->status.present) {
983 hotk = kmalloc(sizeof(struct asus_hotk), GFP_KERNEL);
984 if (!hotk)
986 memset(hotk, 0, sizeof(struct asus_hotk));
988 hotk->handle = device->handle;
991 acpi_driver_data(device) = hotk;
992 hotk->device = device;
1001 * We install the handler, it will receive the hotk in parameter, so, we
1002 * could add other data to the hotk struct
1004 status = acpi_install_notify_handler(hotk->handle, ACPI_ALL_NOTIFY,
1005 asus_hotk_notify, hotk);
1023 hotk->ledd_status = 0xFFF;
1026 hotk->light_switch = 1; /* Default to light sensor disabled */
1027 hotk->light_level = 0; /* level 5 for sensor sensitivity */
1030 set_light_sens_switch(hotk->light_switch);
1033 set_light_sens_level(hotk->light_level);
1040 kfree(hotk->name);
1041 kfree(hotk);
1054 status = acpi_remove_notify_handler(hotk->handle, ACPI_ALL_NOTIFY,
1059 kfree(hotk->name);
1060 kfree(hotk);
1189 dev = acpi_get_physical_device(hotk->device->handle);