Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/hid/usbhid/
Dhiddev.c143 uref->usage_index = j; in hiddev_lookup_usage()
191 uref.usage_index = (usage - field->usage); in hiddev_hid_event()
476 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
478 uref->usage_index = array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
481 uref->usage_code = field->usage[uref->usage_index].hid; in hiddev_ioctl_usage()
512 if (uref->usage_index >= field->maxusage) in hiddev_ioctl_usage()
514 uref->usage_index = in hiddev_ioctl_usage()
515 array_index_nospec(uref->usage_index, in hiddev_ioctl_usage()
517 } else if (uref->usage_index >= field->report_count) in hiddev_ioctl_usage()
523 uref->usage_index + uref_multi->num_values > in hiddev_ioctl_usage()
[all …]
/linux-4.19.296/drivers/hid/
Dhid-core.c232 if (parser->local.usage_index >= HID_MAX_USAGES) { in hid_add_usage()
236 parser->local.usage[parser->local.usage_index] = usage; in hid_add_usage()
243 complete_usage(parser, parser->local.usage_index); in hid_add_usage()
245 parser->local.usage_size[parser->local.usage_index] = size; in hid_add_usage()
246 parser->local.collection_index[parser->local.usage_index] = in hid_add_usage()
249 parser->local.usage_index++; in hid_add_usage()
301 if (!parser->local.usage_index) /* Ignore padding fields */ in hid_add_field()
304 usages = max_t(unsigned, parser->local.usage_index, in hid_add_field()
318 if (i >= parser->local.usage_index) in hid_add_field()
319 j = parser->local.usage_index - 1; in hid_add_field()
[all …]
Dhid-jabra.c36 usage->usage_index, in jabra_input_mapping()
Dhid-multitouch.c468 if (usage->usage_index >= field->report_count) { in mt_feature_mapping()
474 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping()
480 if (usage->usage_index == 0) in mt_feature_mapping()
682 &field->value[usage->usage_index], \
707 if (usage->usage_index) in mt_touch_input_mapping()
708 prev_usage = &field->usage[usage->usage_index - 1]; in mt_touch_input_mapping()
817 app->scantime = &field->value[usage->usage_index]; in mt_touch_input_mapping()
822 app->raw_cc = &field->value[usage->usage_index]; in mt_touch_input_mapping()
1419 unsigned int index = usage->usage_index; in mt_need_to_apply_feature()
Dhid-input.c1353 usage->usage_index < field->maxusage && in hidinput_hid_event()
1354 value == field->value[usage->usage_index]) in hidinput_hid_event()
Dwacom_sys.c247 int i = usage->usage_index; in wacom_hid_usage_quirk()
313 if (usage->usage_index >= field->report_count) { in wacom_feature_mapping()
319 hid_data->inputmode_index = usage->usage_index; in wacom_feature_mapping()
Dhid-sensor-hub.c380 return field->usage[i].usage_index; in hid_sensor_get_usage_index()
Dhid-sony.c737 switch (usage->usage_index) { in navigation_mapping()
783 switch (usage->usage_index) { in sixaxis_mapping()
Dwacom_wac.c2516 wacom_wac->hid_data.cc_value_index = usage->usage_index; in wacom_wac_finger_usage_mapping()
2635 if (usage->usage_index + 1 == field->report_count) { in wacom_wac_finger_event()
/linux-4.19.296/include/uapi/linux/
Dhiddev.h125 __u32 usage_index; member
/linux-4.19.296/include/linux/
Dhid.h423 unsigned usage_index; member
443 unsigned usage_index; /* index into usage array */ member