Lines Matching refs:usage
535 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
539 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() argument
541 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping()
545 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping()
571 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument
574 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping()
577 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
633 struct hid_field *field, struct hid_usage *usage, in lg_input_mapping() argument
649 unsigned int hid = usage->hid; in lg_input_mapping()
652 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping()
655 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
672 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
682 struct hid_field *field, struct hid_usage *usage, in lg_input_mapped() argument
687 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
691 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
692 usage->type == EV_REL || usage->type == EV_ABS)) in lg_input_mapped()
693 clear_bit(usage->code, *bit); in lg_input_mapped()
696 if (usage->type == EV_ABS && (usage->code == ABS_X || in lg_input_mapped()
697 usage->code == ABS_Y || usage->code == ABS_Z || in lg_input_mapped()
698 usage->code == ABS_RZ)) { in lg_input_mapped()
723 struct hid_usage *usage, __s32 value) in lg_event() argument
727 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event()
728 input_event(field->hidinput->input, usage->type, usage->code, in lg_event()
733 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data); in lg_event()