Home
last modified time | relevance | path

Searched refs:usage_index (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/hid/usbhid/
Dhiddev.c143 uref->usage_index = j; in hiddev_lookup_usage()
191 uref.usage_index = (usage - field->usage); in hiddev_hid_event()
477 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
479 uref->usage_index = array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
482 uref->usage_code = field->usage[uref->usage_index].hid; in hiddev_ioctl_usage()
513 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
515 } else if (uref->usage_index >= field->report_count) in hiddev_ioctl_usage()
521 uref->usage_index + uref_multi->num_values > field->report_count)) in hiddev_ioctl_usage()
526 uref->value = field->value[uref->usage_index]; in hiddev_ioctl_usage()
532 field->value[uref->usage_index] = uref->value; in hiddev_ioctl_usage()
[all …]
/Linux-v4.19/drivers/hid/
Dhid-core.c220 if (parser->local.usage_index >= HID_MAX_USAGES) { in hid_add_usage()
224 parser->local.usage[parser->local.usage_index] = usage; in hid_add_usage()
225 parser->local.collection_index[parser->local.usage_index] = in hid_add_usage()
228 parser->local.usage_index++; in hid_add_usage()
270 if (!parser->local.usage_index) /* Ignore padding fields */ in hid_add_field()
273 usages = max_t(unsigned, parser->local.usage_index, in hid_add_field()
287 if (i >= parser->local.usage_index) in hid_add_field()
288 j = parser->local.usage_index - 1; in hid_add_field()
292 field->usage[i].usage_index = i; in hid_add_field()
514 if (count + parser->local.usage_index >= HID_MAX_USAGES) { in hid_parser_local()
[all …]
Dhid-jabra.c36 usage->usage_index, in jabra_input_mapping()
Dhid-multitouch.c459 if (usage->usage_index >= field->report_count) { in mt_feature_mapping()
465 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping()
471 if (usage->usage_index == 0) in mt_feature_mapping()
656 &field->value[usage->usage_index], \
681 if (usage->usage_index) in mt_touch_input_mapping()
682 prev_usage = &field->usage[usage->usage_index - 1]; in mt_touch_input_mapping()
791 app->scantime = &field->value[usage->usage_index]; in mt_touch_input_mapping()
796 app->raw_cc = &field->value[usage->usage_index]; in mt_touch_input_mapping()
1384 unsigned int index = usage->usage_index; in mt_need_to_apply_feature()
Dhid-sensor-hub.c368 return field->usage[i].usage_index; in hid_sensor_get_usage_index()
Dhid-input.c1309 usage->usage_index < field->maxusage && in hidinput_hid_event()
1310 value == field->value[usage->usage_index]) in hidinput_hid_event()
Dwacom_sys.c243 int i = usage->usage_index; in wacom_hid_usage_quirk()
302 if (usage->usage_index >= field->report_count) { in wacom_feature_mapping()
308 hid_data->inputmode_index = usage->usage_index; in wacom_feature_mapping()
Dhid-sony.c733 switch (usage->usage_index) { in navigation_mapping()
779 switch (usage->usage_index) { in sixaxis_mapping()
Dwacom_wac.c2448 wacom_wac->hid_data.cc_value_index = usage->usage_index; in wacom_wac_finger_usage_mapping()
2537 if (usage->usage_index + 1 == field->report_count) { in wacom_wac_finger_event()
/Linux-v4.19/include/uapi/linux/
Dhiddev.h125 __u32 usage_index; member
/Linux-v4.19/include/linux/
Dhid.h418 unsigned usage_index; member
438 unsigned usage_index; /* index into usage array */ member