Lines Matching refs:code
1248 static int asus_wmi_backlight_notify(struct asus_wmi *asus, int code) in asus_wmi_backlight_notify() argument
1254 if (code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNUP_MAX) in asus_wmi_backlight_notify()
1255 new = code - NOTIFY_BRNUP_MIN + 1; in asus_wmi_backlight_notify()
1256 else if (code >= NOTIFY_BRNDOWN_MIN && code <= NOTIFY_BRNDOWN_MAX) in asus_wmi_backlight_notify()
1257 new = code - NOTIFY_BRNDOWN_MIN; in asus_wmi_backlight_notify()
1316 static int is_display_toggle(int code) in is_display_toggle() argument
1319 if ((code >= 0x61 && code <= 0x67) || in is_display_toggle()
1320 (code >= 0x8c && code <= 0x93) || in is_display_toggle()
1321 (code >= 0xa0 && code <= 0xa7) || in is_display_toggle()
1322 (code >= 0xd0 && code <= 0xd5)) in is_display_toggle()
1334 int code; in asus_wmi_notify() local
1350 code = obj->integer.value; in asus_wmi_notify()
1351 orig_code = code; in asus_wmi_notify()
1354 asus->driver->key_filter(asus->driver, &code, &key_value, in asus_wmi_notify()
1356 if (code == ASUS_WMI_KEY_IGNORE) in asus_wmi_notify()
1360 if (code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNUP_MAX) in asus_wmi_notify()
1361 code = ASUS_WMI_BRN_UP; in asus_wmi_notify()
1362 else if (code >= NOTIFY_BRNDOWN_MIN && in asus_wmi_notify()
1363 code <= NOTIFY_BRNDOWN_MAX) in asus_wmi_notify()
1364 code = ASUS_WMI_BRN_DOWN; in asus_wmi_notify()
1366 if (code == ASUS_WMI_BRN_DOWN || code == ASUS_WMI_BRN_UP) { in asus_wmi_notify()
1373 if (is_display_toggle(code) && in asus_wmi_notify()
1377 if (!sparse_keymap_report_event(asus->inputdev, code, in asus_wmi_notify()
1379 pr_info("Unknown key %x pressed\n", code); in asus_wmi_notify()