Lines Matching refs:handle
143 unsigned int handle);
145 unsigned int handle);
148 unsigned int handle);
155 unsigned int handle);
159 unsigned int handle);
182 unsigned int handle);
197 unsigned int handle);
739 static union acpi_object *__call_snc_method(acpi_handle handle, char *method, in __call_snc_method() argument
753 status = acpi_evaluate_object(handle, method, ¶ms, &output); in __call_snc_method()
758 status = acpi_evaluate_object(handle, method, NULL, &output); in __call_snc_method()
774 static int sony_nc_int_call(acpi_handle handle, char *name, int *value, in sony_nc_int_call() argument
780 object = __call_snc_method(handle, name, &v); in sony_nc_int_call()
782 object = __call_snc_method(handle, name, NULL); in sony_nc_int_call()
802 static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value, in sony_nc_buffer_call() argument
807 union acpi_object *object = __call_snc_method(handle, name, value); in sony_nc_buffer_call()
899 static int sony_find_snc_handle(int handle) in sony_find_snc_handle() argument
904 if (!handles || !handle) in sony_find_snc_handle()
908 if (handles->cap[i] == handle) { in sony_find_snc_handle()
910 handle, i); in sony_find_snc_handle()
914 dprintk("handle 0x%.4x not found\n", handle); in sony_find_snc_handle()
918 static int sony_call_snc_handle(int handle, int argument, int *result) in sony_call_snc_handle() argument
921 int offset = sony_find_snc_handle(handle); in sony_call_snc_handle()
1031 int handle; member
1060 sony_call_snc_handle(sdev->handle, sdev->cmd_base + 0x100, &result); in sony_nc_get_brightness_ng()
1072 if (sony_call_snc_handle(sdev->handle, sdev->cmd_base | (value << 0x10), in sony_nc_update_status_ng()
1162 static int sony_nc_hotkeys_decode(u32 event, unsigned int handle) in sony_nc_hotkeys_decode() argument
1168 if (sony_call_snc_handle(handle, 0x200, &result)) { in sony_nc_hotkeys_decode()
1169 dprintk("Unable to decode event 0x%.2x 0x%.2x\n", handle, in sony_nc_hotkeys_decode()
1176 if (handle == 0x0100) in sony_nc_hotkeys_decode()
1190 event, result, handle); in sony_nc_hotkeys_decode()
1214 unsigned int handle = 0; in sony_nc_notify() local
1222 handle = handles->cap[offset]; in sony_nc_notify()
1225 switch (handle) { in sony_nc_notify()
1230 ret = sony_nc_hotkeys_decode(event, handle); in sony_nc_notify()
1249 sony_call_snc_handle(handle, 0x0100, &result); in sony_nc_notify()
1261 sony_call_snc_handle(handle, 0x0000, &result); in sony_nc_notify()
1279 event, handle); in sony_nc_notify()
1296 static acpi_status sony_walk_callback(acpi_handle handle, u32 level, in sony_walk_callback() argument
1301 if (ACPI_SUCCESS(acpi_get_object_info(handle, &info))) { in sony_walk_callback()
1324 unsigned int handle = handles->cap[i]; in sony_nc_function_setup() local
1326 if (!handle) in sony_nc_function_setup()
1329 dprintk("setting up handle 0x%.4x\n", handle); in sony_nc_function_setup()
1331 switch (handle) { in sony_nc_function_setup()
1336 sony_call_snc_handle(handle, 0, &result); in sony_nc_function_setup()
1340 sony_call_snc_handle(handle, 0x100, &result); in sony_nc_function_setup()
1345 result = sony_nc_touchpad_setup(pf_device, handle); in sony_nc_function_setup()
1353 result = sony_nc_battery_care_setup(pf_device, handle); in sony_nc_function_setup()
1360 result = sony_nc_lid_resume_setup(pf_device, handle); in sony_nc_function_setup()
1374 result = sony_nc_gfx_switch_setup(pf_device, handle); in sony_nc_function_setup()
1387 result = sony_nc_rfkill_setup(device, handle); in sony_nc_function_setup()
1397 result = sony_nc_kbd_backlight_setup(pf_device, handle); in sony_nc_function_setup()
1446 unsigned int i, result, bitmask, handle; in sony_nc_function_cleanup() local
1455 handle = handles->cap[i]; in sony_nc_function_cleanup()
1457 if (!handle) in sony_nc_function_cleanup()
1460 switch (handle) { in sony_nc_function_cleanup()
1494 sony_nc_kbd_backlight_cleanup(pd, handle); in sony_nc_function_cleanup()
1528 unsigned int handle = handles->cap[i]; in sony_nc_function_resume() local
1530 if (!handle) in sony_nc_function_resume()
1533 switch (handle) { in sony_nc_function_resume()
1538 sony_call_snc_handle(handle, 0, &result); in sony_nc_function_resume()
1542 sony_call_snc_handle(handle, 0x100, &result); in sony_nc_function_resume()
1713 unsigned int handle) in sony_nc_rfkill_setup() argument
1719 offset = sony_find_snc_handle(handle); in sony_nc_rfkill_setup()
1720 sony_rfkill_handle = handle; in sony_nc_rfkill_setup()
1772 unsigned int handle; member
1789 if (sony_call_snc_handle(kbdbl_ctl->handle, in __sony_nc_kbd_backlight_mode_set()
1795 sony_call_snc_handle(kbdbl_ctl->handle, in __sony_nc_kbd_backlight_mode_set()
1839 if (sony_call_snc_handle(kbdbl_ctl->handle, (value << 0x10) | in __sony_nc_kbd_backlight_timeout_set()
1877 unsigned int handle) in sony_nc_kbd_backlight_setup() argument
1884 handle, kbdbl_ctl->handle); in sony_nc_kbd_backlight_setup()
1891 ret = sony_call_snc_handle(handle, handle == 0x0137 ? 0x0B00 : 0x0100, in sony_nc_kbd_backlight_setup()
1896 if ((handle == 0x0137 && !(result & 0x02)) || in sony_nc_kbd_backlight_setup()
1908 kbdbl_ctl->handle = handle; in sony_nc_kbd_backlight_setup()
1909 if (handle == 0x0137) in sony_nc_kbd_backlight_setup()
1948 unsigned int handle) in sony_nc_kbd_backlight_cleanup() argument
1950 if (kbdbl_ctl && handle == kbdbl_ctl->handle) { in sony_nc_kbd_backlight_cleanup()
1960 unsigned int handle; member
2009 if (bcare_ctl->handle != 0x013f) in sony_nc_battery_care_limit_store()
2015 if (sony_call_snc_handle(bcare_ctl->handle, cmd | 0x0100, &result)) in sony_nc_battery_care_limit_store()
2026 if (sony_call_snc_handle(bcare_ctl->handle, 0x0000, &result)) in sony_nc_battery_care_limit_show()
2054 if (sony_call_snc_handle(bcare_ctl->handle, 0x0200, &health)) in sony_nc_battery_care_health_show()
2063 unsigned int handle) in sony_nc_battery_care_setup() argument
2071 bcare_ctl->handle = handle; in sony_nc_battery_care_setup()
2084 if (handle == 0x0115) in sony_nc_battery_care_setup()
2112 if (bcare_ctl->handle != 0x0115) in sony_nc_battery_care_cleanup()
2297 int handle; member
2333 if (sony_call_snc_handle(lid_ctl->handle, value << 0x10 | 0x0100, in sony_nc_lid_resume_store()
2358 unsigned int handle) in sony_nc_lid_resume_setup() argument
2363 if (sony_call_snc_handle(handle, 0x0000, &result)) in sony_nc_lid_resume_setup()
2371 lid_ctl->handle = handle; in sony_nc_lid_resume_setup()
2379 if (handle == 0x0119) { in sony_nc_lid_resume_setup()
2436 unsigned int handle; member
2445 if (sony_call_snc_handle(gfxs_ctl->handle, in __sony_nc_gfx_switch_status_get()
2446 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100, in __sony_nc_gfx_switch_status_get()
2450 switch (gfxs_ctl->handle) { in __sony_nc_gfx_switch_status_get()
2492 unsigned int handle) in sony_nc_gfx_switch_setup() argument
2500 gfxs_ctl->handle = handle; in sony_nc_gfx_switch_setup()
2956 int handle; member
2975 if (sony_call_snc_handle(tp_ctl->handle, in sony_nc_touchpad_store()
2987 if (sony_call_snc_handle(tp_ctl->handle, 0x000, &result)) in sony_nc_touchpad_show()
2994 unsigned int handle) in sony_nc_touchpad_setup() argument
3002 tp_ctl->handle = handle; in sony_nc_touchpad_setup()
3028 static void sony_nc_backlight_ng_read_limits(int handle, in sony_nc_backlight_ng_read_limits() argument
3037 props->handle = handle; in sony_nc_backlight_ng_read_limits()
3041 offset = sony_find_snc_handle(handle); in sony_nc_backlight_ng_read_limits()
3051 switch (handle) { in sony_nc_backlight_ng_read_limits()
3157 sony_nc_acpi_handle = device->handle; in sony_nc_add()
4433 status = acpi_walk_resources(device->handle, METHOD_NAME__PRS, in sony_pic_possible_resources()
4448 acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL, in sony_pic_disable()
4546 status = acpi_set_current_resources(device->handle, &buffer); in sony_pic_enable()