Lines Matching defs:scancode
71 static inline int match_scancode(unsigned int code, unsigned int scancode)
73 if (scancode == 0)
76 return (code & (HID_USAGE_PAGE | HID_USAGE)) == scancode;
88 unsigned int scancode,
101 match_scancode(usage->hid, scancode) &&
112 unsigned int scancode, unsigned int *keycode)
117 usage = hidinput_find_key(hid, scancode, 0);
126 unsigned int scancode, unsigned int keycode)
132 usage = hidinput_find_key(hid, scancode, 0);
139 dbg_hid(KERN_DEBUG "Assigned keycode %d to HID usage code %x\n", keycode, scancode);
648 /* report the usage code as scancode if the key status has changed */