eeepc 207 drivers/platform/x86/eeepc-laptop.c static int set_acpi(struct eeepc_laptop *eeepc, int cm, int value) eeepc 213 drivers/platform/x86/eeepc-laptop.c if ((eeepc->cm_supported & (0x1 << cm)) == 0) eeepc 216 drivers/platform/x86/eeepc-laptop.c if (write_acpi_int(eeepc->handle, method, value)) eeepc 221 drivers/platform/x86/eeepc-laptop.c static int get_acpi(struct eeepc_laptop *eeepc, int cm) eeepc 228 drivers/platform/x86/eeepc-laptop.c if ((eeepc->cm_supported & (0x1 << cm)) == 0) eeepc 231 drivers/platform/x86/eeepc-laptop.c if (read_acpi_int(eeepc->handle, method, &value)) eeepc 236 drivers/platform/x86/eeepc-laptop.c static int acpi_setter_handle(struct eeepc_laptop *eeepc, int cm, eeepc 244 drivers/platform/x86/eeepc-laptop.c if ((eeepc->cm_supported & (0x1 << cm)) == 0) eeepc 247 drivers/platform/x86/eeepc-laptop.c status = acpi_get_handle(eeepc->handle, (char *)method, eeepc 270 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 276 drivers/platform/x86/eeepc-laptop.c rv = set_acpi(eeepc, cm, value); eeepc 284 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 285 drivers/platform/x86/eeepc-laptop.c int value = get_acpi(eeepc, cm); eeepc 326 drivers/platform/x86/eeepc-laptop.c static int get_cpufv(struct eeepc_laptop *eeepc, struct eeepc_cpufv *c) eeepc 328 drivers/platform/x86/eeepc-laptop.c c->cur = get_acpi(eeepc, CM_ASL_CPUFV); eeepc 343 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 348 drivers/platform/x86/eeepc-laptop.c if (get_cpufv(eeepc, &c)) eeepc 360 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 363 drivers/platform/x86/eeepc-laptop.c if (get_cpufv(eeepc, &c)) eeepc 372 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 376 drivers/platform/x86/eeepc-laptop.c if (eeepc->cpufv_disabled) eeepc 378 drivers/platform/x86/eeepc-laptop.c if (get_cpufv(eeepc, &c)) eeepc 385 drivers/platform/x86/eeepc-laptop.c rv = set_acpi(eeepc, CM_ASL_CPUFV, value); eeepc 395 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 397 drivers/platform/x86/eeepc-laptop.c return sprintf(buf, "%d\n", eeepc->cpufv_disabled); eeepc 404 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(dev); eeepc 413 drivers/platform/x86/eeepc-laptop.c if (eeepc->cpufv_disabled) eeepc 415 drivers/platform/x86/eeepc-laptop.c eeepc->cpufv_disabled = false; eeepc 443 drivers/platform/x86/eeepc-laptop.c static int eeepc_platform_init(struct eeepc_laptop *eeepc) eeepc 447 drivers/platform/x86/eeepc-laptop.c eeepc->platform_device = platform_device_alloc(EEEPC_LAPTOP_FILE, -1); eeepc 448 drivers/platform/x86/eeepc-laptop.c if (!eeepc->platform_device) eeepc 450 drivers/platform/x86/eeepc-laptop.c platform_set_drvdata(eeepc->platform_device, eeepc); eeepc 452 drivers/platform/x86/eeepc-laptop.c result = platform_device_add(eeepc->platform_device); eeepc 456 drivers/platform/x86/eeepc-laptop.c result = sysfs_create_group(&eeepc->platform_device->dev.kobj, eeepc 463 drivers/platform/x86/eeepc-laptop.c platform_device_del(eeepc->platform_device); eeepc 465 drivers/platform/x86/eeepc-laptop.c platform_device_put(eeepc->platform_device); eeepc 469 drivers/platform/x86/eeepc-laptop.c static void eeepc_platform_exit(struct eeepc_laptop *eeepc) eeepc 471 drivers/platform/x86/eeepc-laptop.c sysfs_remove_group(&eeepc->platform_device->dev.kobj, eeepc 473 drivers/platform/x86/eeepc-laptop.c platform_device_unregister(eeepc->platform_device); eeepc 487 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc; eeepc 489 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(work, struct eeepc_laptop, tpd_led_work); eeepc 491 drivers/platform/x86/eeepc-laptop.c set_acpi(eeepc, CM_ASL_TPD, eeepc->tpd_led_wk); eeepc 497 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc; eeepc 499 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(led_cdev, struct eeepc_laptop, tpd_led); eeepc 501 drivers/platform/x86/eeepc-laptop.c eeepc->tpd_led_wk = (value > 0) ? 1 : 0; eeepc 502 drivers/platform/x86/eeepc-laptop.c queue_work(eeepc->led_workqueue, &eeepc->tpd_led_work); eeepc 507 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc; eeepc 509 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(led_cdev, struct eeepc_laptop, tpd_led); eeepc 511 drivers/platform/x86/eeepc-laptop.c return get_acpi(eeepc, CM_ASL_TPD); eeepc 514 drivers/platform/x86/eeepc-laptop.c static int eeepc_led_init(struct eeepc_laptop *eeepc) eeepc 518 drivers/platform/x86/eeepc-laptop.c if (get_acpi(eeepc, CM_ASL_TPD) == -ENODEV) eeepc 521 drivers/platform/x86/eeepc-laptop.c eeepc->led_workqueue = create_singlethread_workqueue("led_workqueue"); eeepc 522 drivers/platform/x86/eeepc-laptop.c if (!eeepc->led_workqueue) eeepc 524 drivers/platform/x86/eeepc-laptop.c INIT_WORK(&eeepc->tpd_led_work, tpd_led_update); eeepc 526 drivers/platform/x86/eeepc-laptop.c eeepc->tpd_led.name = "eeepc::touchpad"; eeepc 527 drivers/platform/x86/eeepc-laptop.c eeepc->tpd_led.brightness_set = tpd_led_set; eeepc 528 drivers/platform/x86/eeepc-laptop.c if (get_acpi(eeepc, CM_ASL_TPD) >= 0) /* if method is available */ eeepc 529 drivers/platform/x86/eeepc-laptop.c eeepc->tpd_led.brightness_get = tpd_led_get; eeepc 530 drivers/platform/x86/eeepc-laptop.c eeepc->tpd_led.max_brightness = 1; eeepc 532 drivers/platform/x86/eeepc-laptop.c rv = led_classdev_register(&eeepc->platform_device->dev, eeepc 533 drivers/platform/x86/eeepc-laptop.c &eeepc->tpd_led); eeepc 535 drivers/platform/x86/eeepc-laptop.c destroy_workqueue(eeepc->led_workqueue); eeepc 542 drivers/platform/x86/eeepc-laptop.c static void eeepc_led_exit(struct eeepc_laptop *eeepc) eeepc 544 drivers/platform/x86/eeepc-laptop.c if (!IS_ERR_OR_NULL(eeepc->tpd_led.dev)) eeepc 545 drivers/platform/x86/eeepc-laptop.c led_classdev_unregister(&eeepc->tpd_led); eeepc 546 drivers/platform/x86/eeepc-laptop.c if (eeepc->led_workqueue) eeepc 547 drivers/platform/x86/eeepc-laptop.c destroy_workqueue(eeepc->led_workqueue); eeepc 554 drivers/platform/x86/eeepc-laptop.c static bool eeepc_wlan_rfkill_blocked(struct eeepc_laptop *eeepc) eeepc 556 drivers/platform/x86/eeepc-laptop.c if (get_acpi(eeepc, CM_ASL_WLAN) == 1) eeepc 561 drivers/platform/x86/eeepc-laptop.c static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle) eeepc 566 drivers/platform/x86/eeepc-laptop.c bool blocked = eeepc_wlan_rfkill_blocked(eeepc); eeepc 570 drivers/platform/x86/eeepc-laptop.c if (eeepc->wlan_rfkill) eeepc 571 drivers/platform/x86/eeepc-laptop.c rfkill_set_sw_state(eeepc->wlan_rfkill, blocked); eeepc 573 drivers/platform/x86/eeepc-laptop.c mutex_lock(&eeepc->hotplug_lock); eeepc 576 drivers/platform/x86/eeepc-laptop.c if (!eeepc->hotplug_slot.ops) eeepc 631 drivers/platform/x86/eeepc-laptop.c mutex_unlock(&eeepc->hotplug_lock); eeepc 634 drivers/platform/x86/eeepc-laptop.c static void eeepc_rfkill_hotplug_update(struct eeepc_laptop *eeepc, char *node) eeepc 642 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug(eeepc, handle); eeepc 647 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = data; eeepc 652 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug(eeepc, handle); eeepc 655 drivers/platform/x86/eeepc-laptop.c static int eeepc_register_rfkill_notifier(struct eeepc_laptop *eeepc, eeepc 669 drivers/platform/x86/eeepc-laptop.c eeepc); eeepc 677 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug(eeepc, handle); eeepc 681 drivers/platform/x86/eeepc-laptop.c static void eeepc_unregister_rfkill_notifier(struct eeepc_laptop *eeepc, eeepc 703 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug(eeepc, handle); eeepc 709 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc; eeepc 712 drivers/platform/x86/eeepc-laptop.c eeepc = container_of(hotplug_slot, struct eeepc_laptop, hotplug_slot); eeepc 713 drivers/platform/x86/eeepc-laptop.c val = get_acpi(eeepc, CM_ASL_WLAN); eeepc 728 drivers/platform/x86/eeepc-laptop.c static int eeepc_setup_pci_hotplug(struct eeepc_laptop *eeepc) eeepc 738 drivers/platform/x86/eeepc-laptop.c eeepc->hotplug_slot.ops = &eeepc_hotplug_slot_ops; eeepc 740 drivers/platform/x86/eeepc-laptop.c ret = pci_hp_register(&eeepc->hotplug_slot, bus, 0, "eeepc-wifi"); eeepc 749 drivers/platform/x86/eeepc-laptop.c eeepc->hotplug_slot.ops = NULL; eeepc 767 drivers/platform/x86/eeepc-laptop.c static int eeepc_new_rfkill(struct eeepc_laptop *eeepc, eeepc 775 drivers/platform/x86/eeepc-laptop.c result = acpi_setter_handle(eeepc, cm, &handle); eeepc 779 drivers/platform/x86/eeepc-laptop.c *rfkill = rfkill_alloc(name, &eeepc->platform_device->dev, type, eeepc 785 drivers/platform/x86/eeepc-laptop.c rfkill_init_sw_state(*rfkill, get_acpi(eeepc, cm) != 1); eeepc 799 drivers/platform/x86/eeepc-laptop.c static void eeepc_rfkill_exit(struct eeepc_laptop *eeepc) eeepc 801 drivers/platform/x86/eeepc-laptop.c eeepc_unregister_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_1); eeepc 802 drivers/platform/x86/eeepc-laptop.c eeepc_unregister_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_2); eeepc 803 drivers/platform/x86/eeepc-laptop.c eeepc_unregister_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_3); eeepc 804 drivers/platform/x86/eeepc-laptop.c if (eeepc->wlan_rfkill) { eeepc 805 drivers/platform/x86/eeepc-laptop.c rfkill_unregister(eeepc->wlan_rfkill); eeepc 806 drivers/platform/x86/eeepc-laptop.c rfkill_destroy(eeepc->wlan_rfkill); eeepc 807 drivers/platform/x86/eeepc-laptop.c eeepc->wlan_rfkill = NULL; eeepc 810 drivers/platform/x86/eeepc-laptop.c if (eeepc->hotplug_slot.ops) eeepc 811 drivers/platform/x86/eeepc-laptop.c pci_hp_deregister(&eeepc->hotplug_slot); eeepc 813 drivers/platform/x86/eeepc-laptop.c if (eeepc->bluetooth_rfkill) { eeepc 814 drivers/platform/x86/eeepc-laptop.c rfkill_unregister(eeepc->bluetooth_rfkill); eeepc 815 drivers/platform/x86/eeepc-laptop.c rfkill_destroy(eeepc->bluetooth_rfkill); eeepc 816 drivers/platform/x86/eeepc-laptop.c eeepc->bluetooth_rfkill = NULL; eeepc 818 drivers/platform/x86/eeepc-laptop.c if (eeepc->wwan3g_rfkill) { eeepc 819 drivers/platform/x86/eeepc-laptop.c rfkill_unregister(eeepc->wwan3g_rfkill); eeepc 820 drivers/platform/x86/eeepc-laptop.c rfkill_destroy(eeepc->wwan3g_rfkill); eeepc 821 drivers/platform/x86/eeepc-laptop.c eeepc->wwan3g_rfkill = NULL; eeepc 823 drivers/platform/x86/eeepc-laptop.c if (eeepc->wimax_rfkill) { eeepc 824 drivers/platform/x86/eeepc-laptop.c rfkill_unregister(eeepc->wimax_rfkill); eeepc 825 drivers/platform/x86/eeepc-laptop.c rfkill_destroy(eeepc->wimax_rfkill); eeepc 826 drivers/platform/x86/eeepc-laptop.c eeepc->wimax_rfkill = NULL; eeepc 830 drivers/platform/x86/eeepc-laptop.c static int eeepc_rfkill_init(struct eeepc_laptop *eeepc) eeepc 834 drivers/platform/x86/eeepc-laptop.c mutex_init(&eeepc->hotplug_lock); eeepc 836 drivers/platform/x86/eeepc-laptop.c result = eeepc_new_rfkill(eeepc, &eeepc->wlan_rfkill, eeepc 843 drivers/platform/x86/eeepc-laptop.c result = eeepc_new_rfkill(eeepc, &eeepc->bluetooth_rfkill, eeepc 850 drivers/platform/x86/eeepc-laptop.c result = eeepc_new_rfkill(eeepc, &eeepc->wwan3g_rfkill, eeepc 857 drivers/platform/x86/eeepc-laptop.c result = eeepc_new_rfkill(eeepc, &eeepc->wimax_rfkill, eeepc 864 drivers/platform/x86/eeepc-laptop.c if (eeepc->hotplug_disabled) eeepc 867 drivers/platform/x86/eeepc-laptop.c result = eeepc_setup_pci_hotplug(eeepc); eeepc 875 drivers/platform/x86/eeepc-laptop.c eeepc_register_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_1); eeepc 876 drivers/platform/x86/eeepc-laptop.c eeepc_register_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_2); eeepc 877 drivers/platform/x86/eeepc-laptop.c eeepc_register_rfkill_notifier(eeepc, EEEPC_RFKILL_NODE_3); eeepc 881 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_exit(eeepc); eeepc 890 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(device); eeepc 892 drivers/platform/x86/eeepc-laptop.c if (eeepc->wlan_rfkill) { eeepc 900 drivers/platform/x86/eeepc-laptop.c wlan = get_acpi(eeepc, CM_ASL_WLAN); eeepc 902 drivers/platform/x86/eeepc-laptop.c set_acpi(eeepc, CM_ASL_WLAN, wlan); eeepc 910 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = dev_get_drvdata(device); eeepc 913 drivers/platform/x86/eeepc-laptop.c if (eeepc->wlan_rfkill) { eeepc 914 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug_update(eeepc, EEEPC_RFKILL_NODE_1); eeepc 915 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug_update(eeepc, EEEPC_RFKILL_NODE_2); eeepc 916 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_hotplug_update(eeepc, EEEPC_RFKILL_NODE_3); eeepc 919 drivers/platform/x86/eeepc-laptop.c if (eeepc->bluetooth_rfkill) eeepc 920 drivers/platform/x86/eeepc-laptop.c rfkill_set_sw_state(eeepc->bluetooth_rfkill, eeepc 921 drivers/platform/x86/eeepc-laptop.c get_acpi(eeepc, CM_ASL_BLUETOOTH) != 1); eeepc 922 drivers/platform/x86/eeepc-laptop.c if (eeepc->wwan3g_rfkill) eeepc 923 drivers/platform/x86/eeepc-laptop.c rfkill_set_sw_state(eeepc->wwan3g_rfkill, eeepc 924 drivers/platform/x86/eeepc-laptop.c get_acpi(eeepc, CM_ASL_3G) != 1); eeepc 925 drivers/platform/x86/eeepc-laptop.c if (eeepc->wimax_rfkill) eeepc 926 drivers/platform/x86/eeepc-laptop.c rfkill_set_sw_state(eeepc->wimax_rfkill, eeepc 927 drivers/platform/x86/eeepc-laptop.c get_acpi(eeepc, CM_ASL_WIMAX) != 1); eeepc 1073 drivers/platform/x86/eeepc-laptop.c static int eeepc_hwmon_init(struct eeepc_laptop *eeepc) eeepc 1075 drivers/platform/x86/eeepc-laptop.c struct device *dev = &eeepc->platform_device->dev; eeepc 1092 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = bl_get_data(bd); eeepc 1094 drivers/platform/x86/eeepc-laptop.c return get_acpi(eeepc, CM_ASL_PANELBRIGHT); eeepc 1099 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = bl_get_data(bd); eeepc 1101 drivers/platform/x86/eeepc-laptop.c return set_acpi(eeepc, CM_ASL_PANELBRIGHT, value); eeepc 1114 drivers/platform/x86/eeepc-laptop.c static int eeepc_backlight_notify(struct eeepc_laptop *eeepc) eeepc 1116 drivers/platform/x86/eeepc-laptop.c struct backlight_device *bd = eeepc->backlight_device; eeepc 1124 drivers/platform/x86/eeepc-laptop.c static int eeepc_backlight_init(struct eeepc_laptop *eeepc) eeepc 1133 drivers/platform/x86/eeepc-laptop.c &eeepc->platform_device->dev, eeepc, eeepc 1137 drivers/platform/x86/eeepc-laptop.c eeepc->backlight_device = NULL; eeepc 1140 drivers/platform/x86/eeepc-laptop.c eeepc->backlight_device = bd; eeepc 1147 drivers/platform/x86/eeepc-laptop.c static void eeepc_backlight_exit(struct eeepc_laptop *eeepc) eeepc 1149 drivers/platform/x86/eeepc-laptop.c backlight_device_unregister(eeepc->backlight_device); eeepc 1150 drivers/platform/x86/eeepc-laptop.c eeepc->backlight_device = NULL; eeepc 1157 drivers/platform/x86/eeepc-laptop.c static int eeepc_input_init(struct eeepc_laptop *eeepc) eeepc 1169 drivers/platform/x86/eeepc-laptop.c input->dev.parent = &eeepc->platform_device->dev; eeepc 1183 drivers/platform/x86/eeepc-laptop.c eeepc->inputdev = input; eeepc 1191 drivers/platform/x86/eeepc-laptop.c static void eeepc_input_exit(struct eeepc_laptop *eeepc) eeepc 1193 drivers/platform/x86/eeepc-laptop.c if (eeepc->inputdev) eeepc 1194 drivers/platform/x86/eeepc-laptop.c input_unregister_device(eeepc->inputdev); eeepc 1195 drivers/platform/x86/eeepc-laptop.c eeepc->inputdev = NULL; eeepc 1201 drivers/platform/x86/eeepc-laptop.c static void eeepc_input_notify(struct eeepc_laptop *eeepc, int event) eeepc 1203 drivers/platform/x86/eeepc-laptop.c if (!eeepc->inputdev) eeepc 1205 drivers/platform/x86/eeepc-laptop.c if (!sparse_keymap_report_event(eeepc->inputdev, event, 1, true)) eeepc 1211 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = acpi_driver_data(device); eeepc 1217 drivers/platform/x86/eeepc-laptop.c count = eeepc->event_count[event % 128]++; eeepc 1224 drivers/platform/x86/eeepc-laptop.c eeepc_input_notify(eeepc, event); eeepc 1229 drivers/platform/x86/eeepc-laptop.c if (!eeepc->backlight_device) eeepc 1233 drivers/platform/x86/eeepc-laptop.c old_brightness = eeepc_backlight_notify(eeepc); eeepc 1248 drivers/platform/x86/eeepc-laptop.c eeepc_input_notify(eeepc, event); eeepc 1251 drivers/platform/x86/eeepc-laptop.c static void eeepc_dmi_check(struct eeepc_laptop *eeepc) eeepc 1279 drivers/platform/x86/eeepc-laptop.c eeepc->cpufv_disabled = true; eeepc 1294 drivers/platform/x86/eeepc-laptop.c eeepc->hotplug_disabled = true; eeepc 1299 drivers/platform/x86/eeepc-laptop.c static void cmsg_quirk(struct eeepc_laptop *eeepc, int cm, const char *name) eeepc 1305 drivers/platform/x86/eeepc-laptop.c if (!(eeepc->cm_supported & (1 << cm)) eeepc 1306 drivers/platform/x86/eeepc-laptop.c && !read_acpi_int(eeepc->handle, cm_getv[cm], &dummy)) { eeepc 1309 drivers/platform/x86/eeepc-laptop.c eeepc->cm_supported |= 1 << cm; eeepc 1313 drivers/platform/x86/eeepc-laptop.c static void cmsg_quirks(struct eeepc_laptop *eeepc) eeepc 1315 drivers/platform/x86/eeepc-laptop.c cmsg_quirk(eeepc, CM_ASL_LID, "LID"); eeepc 1316 drivers/platform/x86/eeepc-laptop.c cmsg_quirk(eeepc, CM_ASL_TYPE, "TYPE"); eeepc 1317 drivers/platform/x86/eeepc-laptop.c cmsg_quirk(eeepc, CM_ASL_PANELPOWER, "PANELPOWER"); eeepc 1318 drivers/platform/x86/eeepc-laptop.c cmsg_quirk(eeepc, CM_ASL_TPD, "TPD"); eeepc 1321 drivers/platform/x86/eeepc-laptop.c static int eeepc_acpi_init(struct eeepc_laptop *eeepc) eeepc 1326 drivers/platform/x86/eeepc-laptop.c result = acpi_bus_get_status(eeepc->device); eeepc 1329 drivers/platform/x86/eeepc-laptop.c if (!eeepc->device->status.present) { eeepc 1337 drivers/platform/x86/eeepc-laptop.c if (write_acpi_int(eeepc->handle, "INIT", init_flags)) { eeepc 1343 drivers/platform/x86/eeepc-laptop.c if (read_acpi_int(eeepc->handle, "CMSG", &eeepc->cm_supported)) { eeepc 1347 drivers/platform/x86/eeepc-laptop.c cmsg_quirks(eeepc); eeepc 1348 drivers/platform/x86/eeepc-laptop.c pr_info("Get control methods supported: 0x%x\n", eeepc->cm_supported); eeepc 1353 drivers/platform/x86/eeepc-laptop.c static void eeepc_enable_camera(struct eeepc_laptop *eeepc) eeepc 1359 drivers/platform/x86/eeepc-laptop.c if (get_acpi(eeepc, CM_ASL_CAMERA) == 0) eeepc 1360 drivers/platform/x86/eeepc-laptop.c set_acpi(eeepc, CM_ASL_CAMERA, 1); eeepc 1367 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc; eeepc 1371 drivers/platform/x86/eeepc-laptop.c eeepc = kzalloc(sizeof(struct eeepc_laptop), GFP_KERNEL); eeepc 1372 drivers/platform/x86/eeepc-laptop.c if (!eeepc) eeepc 1374 drivers/platform/x86/eeepc-laptop.c eeepc->handle = device->handle; eeepc 1377 drivers/platform/x86/eeepc-laptop.c device->driver_data = eeepc; eeepc 1378 drivers/platform/x86/eeepc-laptop.c eeepc->device = device; eeepc 1380 drivers/platform/x86/eeepc-laptop.c eeepc->hotplug_disabled = hotplug_disabled; eeepc 1382 drivers/platform/x86/eeepc-laptop.c eeepc_dmi_check(eeepc); eeepc 1384 drivers/platform/x86/eeepc-laptop.c result = eeepc_acpi_init(eeepc); eeepc 1387 drivers/platform/x86/eeepc-laptop.c eeepc_enable_camera(eeepc); eeepc 1401 drivers/platform/x86/eeepc-laptop.c result = eeepc_platform_init(eeepc); eeepc 1406 drivers/platform/x86/eeepc-laptop.c result = eeepc_backlight_init(eeepc); eeepc 1411 drivers/platform/x86/eeepc-laptop.c result = eeepc_input_init(eeepc); eeepc 1415 drivers/platform/x86/eeepc-laptop.c result = eeepc_hwmon_init(eeepc); eeepc 1419 drivers/platform/x86/eeepc-laptop.c result = eeepc_led_init(eeepc); eeepc 1423 drivers/platform/x86/eeepc-laptop.c result = eeepc_rfkill_init(eeepc); eeepc 1431 drivers/platform/x86/eeepc-laptop.c eeepc_led_exit(eeepc); eeepc 1434 drivers/platform/x86/eeepc-laptop.c eeepc_input_exit(eeepc); eeepc 1436 drivers/platform/x86/eeepc-laptop.c eeepc_backlight_exit(eeepc); eeepc 1438 drivers/platform/x86/eeepc-laptop.c eeepc_platform_exit(eeepc); eeepc 1440 drivers/platform/x86/eeepc-laptop.c kfree(eeepc); eeepc 1447 drivers/platform/x86/eeepc-laptop.c struct eeepc_laptop *eeepc = acpi_driver_data(device); eeepc 1449 drivers/platform/x86/eeepc-laptop.c eeepc_backlight_exit(eeepc); eeepc 1450 drivers/platform/x86/eeepc-laptop.c eeepc_rfkill_exit(eeepc); eeepc 1451 drivers/platform/x86/eeepc-laptop.c eeepc_input_exit(eeepc); eeepc 1452 drivers/platform/x86/eeepc-laptop.c eeepc_led_exit(eeepc); eeepc 1453 drivers/platform/x86/eeepc-laptop.c eeepc_platform_exit(eeepc); eeepc 1455 drivers/platform/x86/eeepc-laptop.c kfree(eeepc);