Lines Matching refs:usage
56 * a custom vendor usage page, providing only a combined value as
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)
541 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
545 switch (usage->hid & HID_USAGE) {
571 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage,
574 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
577 switch (usage->hid & HID_USAGE) {
587 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage,
590 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
593 switch (usage->hid & HID_USAGE) {
649 struct hid_field *field, struct hid_usage *usage,
665 unsigned int hid = usage->hid;
668 lg_ultrax_remote_mapping(hi, usage, bit, max))
672 lg_dinovo_mapping(hi, usage, bit, max))
675 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max))
692 hid_map_usage(hi, usage, bit, max, EV_KEY,
702 struct hid_field *field, struct hid_usage *usage,
707 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY &&
711 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY ||
712 usage->type == EV_REL || usage->type == EV_ABS))
713 clear_bit(usage->code, *bit);
716 if (usage->type == EV_ABS && (usage->code == ABS_X ||
717 usage->code == ABS_Y || usage->code == ABS_Z ||
718 usage->code == ABS_RZ)) {
743 struct hid_usage *usage, __s32 value)
747 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) {
748 input_event(field->hidinput->input, usage->type, usage->code,
753 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data);