Lines Matching refs:usage
48 static int corsair_usage_to_gkey(unsigned int usage) in corsair_usage_to_gkey() argument
51 if (usage >= 0xd0 && usage <= 0xdf) in corsair_usage_to_gkey()
52 return usage - 0xd0 + 1; in corsair_usage_to_gkey()
54 if (usage >= 0xe8 && usage <= 0xe9) in corsair_usage_to_gkey()
55 return usage - 0xe8 + 17; in corsair_usage_to_gkey()
606 struct hid_usage *usage, __s32 value) in corsair_event() argument
613 switch (usage->hid & HID_USAGE) { in corsair_event()
630 struct hid_usage *usage, unsigned long **bit, in corsair_input_mapping() argument
635 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_KEYBOARD) in corsair_input_mapping()
638 gkey = corsair_usage_to_gkey(usage->hid & HID_USAGE); in corsair_input_mapping()
640 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
644 if ((usage->hid & HID_USAGE) >= CORSAIR_USAGE_SPECIAL_MIN && in corsair_input_mapping()
645 (usage->hid & HID_USAGE) <= CORSAIR_USAGE_SPECIAL_MAX) { in corsair_input_mapping()
646 switch (usage->hid & HID_USAGE) { in corsair_input_mapping()
648 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
653 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
658 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
663 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
668 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()