Lines Matching refs:handle

142 		unsigned int handle);
144 unsigned int handle);
147 unsigned int handle);
154 unsigned int handle);
158 unsigned int handle);
181 unsigned int handle);
196 unsigned int handle);
738 static union acpi_object *__call_snc_method(acpi_handle handle, char *method, in __call_snc_method() argument
752 status = acpi_evaluate_object(handle, method, &params, &output); in __call_snc_method()
757 status = acpi_evaluate_object(handle, method, NULL, &output); in __call_snc_method()
773 static int sony_nc_int_call(acpi_handle handle, char *name, int *value, in sony_nc_int_call() argument
779 object = __call_snc_method(handle, name, &v); in sony_nc_int_call()
781 object = __call_snc_method(handle, name, NULL); in sony_nc_int_call()
801 static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value, in sony_nc_buffer_call() argument
806 union acpi_object *object = __call_snc_method(handle, name, value); in sony_nc_buffer_call()
898 static int sony_find_snc_handle(int handle) in sony_find_snc_handle() argument
903 if (!handles || !handle) in sony_find_snc_handle()
907 if (handles->cap[i] == handle) { in sony_find_snc_handle()
909 handle, i); in sony_find_snc_handle()
913 dprintk("handle 0x%.4x not found\n", handle); in sony_find_snc_handle()
917 static int sony_call_snc_handle(int handle, int argument, int *result) in sony_call_snc_handle() argument
920 int offset = sony_find_snc_handle(handle); in sony_call_snc_handle()
1030 int handle; member
1059 sony_call_snc_handle(sdev->handle, sdev->cmd_base + 0x100, &result); in sony_nc_get_brightness_ng()
1071 if (sony_call_snc_handle(sdev->handle, sdev->cmd_base | (value << 0x10), in sony_nc_update_status_ng()
1161 static int sony_nc_hotkeys_decode(u32 event, unsigned int handle) in sony_nc_hotkeys_decode() argument
1167 if (sony_call_snc_handle(handle, 0x200, &result)) { in sony_nc_hotkeys_decode()
1168 dprintk("Unable to decode event 0x%.2x 0x%.2x\n", handle, in sony_nc_hotkeys_decode()
1175 if (handle == 0x0100) in sony_nc_hotkeys_decode()
1189 event, result, handle); in sony_nc_hotkeys_decode()
1211 unsigned int handle = 0; in sony_nc_notify() local
1219 handle = handles->cap[offset]; in sony_nc_notify()
1222 switch (handle) { in sony_nc_notify()
1227 real_ev = sony_nc_hotkeys_decode(event, handle); in sony_nc_notify()
1247 sony_call_snc_handle(handle, 0x0100, &result); in sony_nc_notify()
1259 sony_call_snc_handle(handle, 0x0000, &result); in sony_nc_notify()
1277 event, handle); in sony_nc_notify()
1294 static acpi_status sony_walk_callback(acpi_handle handle, u32 level, in sony_walk_callback() argument
1299 if (ACPI_SUCCESS(acpi_get_object_info(handle, &info))) { in sony_walk_callback()
1322 unsigned int handle = handles->cap[i]; in sony_nc_function_setup() local
1324 if (!handle) in sony_nc_function_setup()
1327 dprintk("setting up handle 0x%.4x\n", handle); in sony_nc_function_setup()
1329 switch (handle) { in sony_nc_function_setup()
1334 sony_call_snc_handle(handle, 0, &result); in sony_nc_function_setup()
1338 sony_call_snc_handle(handle, 0x100, &result); in sony_nc_function_setup()
1343 result = sony_nc_touchpad_setup(pf_device, handle); in sony_nc_function_setup()
1351 result = sony_nc_battery_care_setup(pf_device, handle); in sony_nc_function_setup()
1358 result = sony_nc_lid_resume_setup(pf_device, handle); in sony_nc_function_setup()
1372 result = sony_nc_gfx_switch_setup(pf_device, handle); in sony_nc_function_setup()
1385 result = sony_nc_rfkill_setup(device, handle); in sony_nc_function_setup()
1395 result = sony_nc_kbd_backlight_setup(pf_device, handle); in sony_nc_function_setup()
1444 unsigned int i, result, bitmask, handle; in sony_nc_function_cleanup() local
1453 handle = handles->cap[i]; in sony_nc_function_cleanup()
1455 if (!handle) in sony_nc_function_cleanup()
1458 switch (handle) { in sony_nc_function_cleanup()
1492 sony_nc_kbd_backlight_cleanup(pd, handle); in sony_nc_function_cleanup()
1526 unsigned int handle = handles->cap[i]; in sony_nc_function_resume() local
1528 if (!handle) in sony_nc_function_resume()
1531 switch (handle) { in sony_nc_function_resume()
1536 sony_call_snc_handle(handle, 0, &result); in sony_nc_function_resume()
1540 sony_call_snc_handle(handle, 0x100, &result); in sony_nc_function_resume()
1711 unsigned int handle) in sony_nc_rfkill_setup() argument
1717 offset = sony_find_snc_handle(handle); in sony_nc_rfkill_setup()
1718 sony_rfkill_handle = handle; in sony_nc_rfkill_setup()
1770 unsigned int handle; member
1787 if (sony_call_snc_handle(kbdbl_ctl->handle, in __sony_nc_kbd_backlight_mode_set()
1793 sony_call_snc_handle(kbdbl_ctl->handle, in __sony_nc_kbd_backlight_mode_set()
1837 if (sony_call_snc_handle(kbdbl_ctl->handle, (value << 0x10) | in __sony_nc_kbd_backlight_timeout_set()
1875 unsigned int handle) in sony_nc_kbd_backlight_setup() argument
1882 handle, kbdbl_ctl->handle); in sony_nc_kbd_backlight_setup()
1889 ret = sony_call_snc_handle(handle, handle == 0x0137 ? 0x0B00 : 0x0100, in sony_nc_kbd_backlight_setup()
1894 if ((handle == 0x0137 && !(result & 0x02)) || in sony_nc_kbd_backlight_setup()
1906 kbdbl_ctl->handle = handle; in sony_nc_kbd_backlight_setup()
1907 if (handle == 0x0137) in sony_nc_kbd_backlight_setup()
1946 unsigned int handle) in sony_nc_kbd_backlight_cleanup() argument
1948 if (kbdbl_ctl && handle == kbdbl_ctl->handle) { in sony_nc_kbd_backlight_cleanup()
1958 unsigned int handle; member
2007 if (bcare_ctl->handle != 0x013f) in sony_nc_battery_care_limit_store()
2013 if (sony_call_snc_handle(bcare_ctl->handle, cmd | 0x0100, &result)) in sony_nc_battery_care_limit_store()
2024 if (sony_call_snc_handle(bcare_ctl->handle, 0x0000, &result)) in sony_nc_battery_care_limit_show()
2052 if (sony_call_snc_handle(bcare_ctl->handle, 0x0200, &health)) in sony_nc_battery_care_health_show()
2061 unsigned int handle) in sony_nc_battery_care_setup() argument
2069 bcare_ctl->handle = handle; in sony_nc_battery_care_setup()
2082 if (handle == 0x0115) in sony_nc_battery_care_setup()
2110 if (bcare_ctl->handle != 0x0115) in sony_nc_battery_care_cleanup()
2295 int handle; member
2331 if (sony_call_snc_handle(lid_ctl->handle, value << 0x10 | 0x0100, in sony_nc_lid_resume_store()
2356 unsigned int handle) in sony_nc_lid_resume_setup() argument
2361 if (sony_call_snc_handle(handle, 0x0000, &result)) in sony_nc_lid_resume_setup()
2369 lid_ctl->handle = handle; in sony_nc_lid_resume_setup()
2377 if (handle == 0x0119) { in sony_nc_lid_resume_setup()
2434 unsigned int handle; member
2443 if (sony_call_snc_handle(gfxs_ctl->handle, in __sony_nc_gfx_switch_status_get()
2444 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100, in __sony_nc_gfx_switch_status_get()
2448 switch (gfxs_ctl->handle) { in __sony_nc_gfx_switch_status_get()
2490 unsigned int handle) in sony_nc_gfx_switch_setup() argument
2498 gfxs_ctl->handle = handle; in sony_nc_gfx_switch_setup()
2954 int handle; member
2973 if (sony_call_snc_handle(tp_ctl->handle, in sony_nc_touchpad_store()
2985 if (sony_call_snc_handle(tp_ctl->handle, 0x000, &result)) in sony_nc_touchpad_show()
2992 unsigned int handle) in sony_nc_touchpad_setup() argument
3000 tp_ctl->handle = handle; in sony_nc_touchpad_setup()
3026 static void sony_nc_backlight_ng_read_limits(int handle, in sony_nc_backlight_ng_read_limits() argument
3035 props->handle = handle; in sony_nc_backlight_ng_read_limits()
3039 offset = sony_find_snc_handle(handle); in sony_nc_backlight_ng_read_limits()
3049 switch (handle) { in sony_nc_backlight_ng_read_limits()
3155 sony_nc_acpi_handle = device->handle; in sony_nc_add()
4435 status = acpi_walk_resources(device->handle, METHOD_NAME__PRS, in sony_pic_possible_resources()
4450 acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL, in sony_pic_disable()
4548 status = acpi_set_current_resources(device->handle, &buffer); in sony_pic_enable()