Searched refs:kb_state (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/arch/m68k/atari/ |
H A D | atakeyb.c | 115 KEYBOARD_STATE kb_state; variable 160 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 164 kb_state.state = RESYNC; atari_keyboard_interrupt() 165 kb_state.len = 1; /* skip max. 1 another byte */ atari_keyboard_interrupt() 174 switch (kb_state.state) { atari_keyboard_interrupt() 178 kb_state.state = AMOUSE; atari_keyboard_interrupt() 179 kb_state.len = 0; atari_keyboard_interrupt() 186 kb_state.state = RMOUSE; atari_keyboard_interrupt() 187 kb_state.len = 1; atari_keyboard_interrupt() 188 kb_state.buf[0] = scancode; atari_keyboard_interrupt() 192 kb_state.state = CLOCK; atari_keyboard_interrupt() 193 kb_state.len = 0; atari_keyboard_interrupt() 198 kb_state.state = JOYSTICK; atari_keyboard_interrupt() 199 kb_state.len = 1; atari_keyboard_interrupt() 200 kb_state.buf[0] = scancode; atari_keyboard_interrupt() 250 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 251 if (kb_state.len == 5) { atari_keyboard_interrupt() 252 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 259 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 260 if (kb_state.len == 3) { atari_keyboard_interrupt() 261 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 263 atari_input_mouse_interrupt_hook(kb_state.buf); atari_keyboard_interrupt() 268 kb_state.buf[1] = scancode; atari_keyboard_interrupt() 269 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 271 atari_joystick_interrupt(kb_state.buf); atari_keyboard_interrupt() 276 kb_state.buf[kb_state.len++] = scancode; atari_keyboard_interrupt() 277 if (kb_state.len == 6) { atari_keyboard_interrupt() 278 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 287 if (kb_state.len <= 0 || IS_SYNC_CODE(scancode)) { atari_keyboard_interrupt() 288 kb_state.state = KEYBOARD; atari_keyboard_interrupt() 291 kb_state.len--; atari_keyboard_interrupt() 474 kb_state.state = JOYSTICK_MONITOR; 504 kb_state.state = KEYBOARD; atari_keyb_init() 505 kb_state.len = 0; atari_keyb_init()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | cros_ec_keyb.c | 108 uint8_t *kb_state, int len) cros_ec_keyb_process() 118 if (ckdev->ghost_filter && cros_ec_keyb_has_ghosting(ckdev, kb_state)) { cros_ec_keyb_process() 133 new_state = kb_state[col] & (1 << row); cros_ec_keyb_process() 144 ckdev->old_kb_state[col] = kb_state[col]; cros_ec_keyb_process() 149 static int cros_ec_keyb_get_state(struct cros_ec_keyb *ckdev, uint8_t *kb_state) cros_ec_keyb_get_state() argument 161 memcpy(kb_state, msg.indata, ckdev->cols); cros_ec_keyb_get_state() 171 uint8_t kb_state[ckdev->cols]; cros_ec_keyb_irq() local 176 ret = cros_ec_keyb_get_state(ckdev, kb_state); cros_ec_keyb_irq() 178 cros_ec_keyb_process(ckdev, kb_state, ret); cros_ec_keyb_irq() 107 cros_ec_keyb_process(struct cros_ec_keyb *ckdev, uint8_t *kb_state, int len) cros_ec_keyb_process() argument
|
Completed in 174 milliseconds