• Home
  • Raw
  • Download

Lines Matching refs:usage

152 #define lg_map_key_clear(c)	hid_map_usage_clear(hi, usage, bit, max, \
156 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() argument
158 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping()
162 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping()
188 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_dinovo_mapping() argument
191 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_dinovo_mapping()
194 switch (usage->hid & HID_USAGE) { in lg_dinovo_mapping()
204 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument
207 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping()
210 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
266 struct hid_field *field, struct hid_usage *usage, in lg_input_mapping() argument
282 unsigned int hid = usage->hid; in lg_input_mapping()
285 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping()
289 lg_dinovo_mapping(hi, usage, bit, max)) in lg_input_mapping()
292 if ((quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
309 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
319 struct hid_field *field, struct hid_usage *usage, in lg_input_mapped() argument
324 if ((quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
328 if ((quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
329 usage->type == EV_REL || usage->type == EV_ABS)) in lg_input_mapped()
330 clear_bit(usage->code, *bit); in lg_input_mapped()
336 struct hid_usage *usage, __s32 value) in lg_event() argument
340 if ((quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event()
341 input_event(field->hidinput->input, usage->type, usage->code, in lg_event()