Lines Matching refs:keyval
252 static int handle_rawcode(unsigned int keyval) in handle_rawcode() argument
259 if (keyval == HRST && kbd_state != KBD_INITRST && kbd_state != KBD_ID) { in handle_rawcode()
265 if (keyval == HRST) { in handle_rawcode()
268 } else if (keyval == RAK1) { in handle_rawcode()
280 if (keyval == RAK1) { in handle_rawcode()
288 if (keyval == RAK2) { in handle_rawcode()
302 if (keyval == HRST) { in handle_rawcode()
308 } else if ((keyval & 0xc0) == 0x80) { in handle_rawcode()
309 kbd_id = keyval & 0x3f; in handle_rawcode()
317 switch (keyval & 0xf0) { in handle_rawcode()
319 kbd_mousedx = keyval & 0x40 ? keyval|0x80 : keyval; in handle_rawcode()
329 kbd_id = keyval & 0x3f; in handle_rawcode()
333 kbd_keyhigh = keyval; in handle_rawcode()
339 kbd_keyhigh = keyval; in handle_rawcode()
351 if ((keyval & 0xf0) != 0xc0) in handle_rawcode()
356 if (((kbd_keyhigh ^ keyval) & 0xf0) == 0) in handle_rawcode()
357 a5kkbd_key ((keyval & 0x0f) | ((kbd_keyhigh << 4) & 0xf0), 0); in handle_rawcode()
362 if ((keyval & 0xf0) != 0xd0) in handle_rawcode()
367 if (((kbd_keyhigh ^ keyval) & 0xf0) == 0) in handle_rawcode()
368 a5kkbd_key ((keyval & 0x0f) | ((kbd_keyhigh << 4) & 0xf0), UP_FLAG); in handle_rawcode()
373 if (keyval & 0x80) in handle_rawcode()
378 kbd_mousedy = (char)(keyval & 0x40 ? keyval | 0x80 : keyval); in handle_rawcode()
390 kbd_state, keyval); in handle_rawcode()