Lines Matching refs:code
64 /* Sleep already handled via generic ACPI code */
205 static int eeepc_wmi_backlight_notify(struct eeepc_wmi *eeepc, int code)
211 if (code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNUP_MAX)
212 new = code - NOTIFY_BRNUP_MIN + 1;
213 else if (code >= NOTIFY_BRNDOWN_MIN && code <= NOTIFY_BRNDOWN_MAX)
214 new = code - NOTIFY_BRNDOWN_MIN;
261 int code;
273 code = obj->integer.value;
274 orig_code = code;
276 if (code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNUP_MAX)
277 code = NOTIFY_BRNUP_MIN;
278 else if (code >= NOTIFY_BRNDOWN_MIN &&
279 code <= NOTIFY_BRNDOWN_MAX)
280 code = NOTIFY_BRNDOWN_MIN;
282 if (code == NOTIFY_BRNUP_MIN || code == NOTIFY_BRNDOWN_MIN) {
288 code, 1, true))
289 pr_info("Unknown key %x pressed\n", code);