Searched refs:usage_index (Results 1 – 11 of 11) sorted by relevance
143 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 …]
220 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 …]
36 usage->usage_index, in jabra_input_mapping()
459 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()
368 return field->usage[i].usage_index; in hid_sensor_get_usage_index()
1309 usage->usage_index < field->maxusage && in hidinput_hid_event()1310 value == field->value[usage->usage_index]) in hidinput_hid_event()
243 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()
733 switch (usage->usage_index) { in navigation_mapping()779 switch (usage->usage_index) { in sixaxis_mapping()
2448 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()
125 __u32 usage_index; member
418 unsigned usage_index; member438 unsigned usage_index; /* index into usage array */ member