Lines Matching refs:prev_scancode
245 static int prev_scancode; in q40kbd_translate() local
249 prev_scancode = scancode; in q40kbd_translate()
255 prev_scancode = 0; in q40kbd_translate()
261 if (prev_scancode) { in q40kbd_translate()
266 if (prev_scancode != 0xe0) { in q40kbd_translate()
267 if (prev_scancode == 0xe1 && scancode == 0x1d) { in q40kbd_translate()
268 prev_scancode = 0x100; in q40kbd_translate()
270 } else if (prev_scancode == 0x100 && scancode == 0x45) { in q40kbd_translate()
272 prev_scancode = 0; in q40kbd_translate()
278 prev_scancode = 0; in q40kbd_translate()
282 prev_scancode = 0; in q40kbd_translate()