Lines Matching refs:usage_index
232 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()
297 if (!parser->local.usage_index) /* Ignore padding fields */ in hid_add_field()
300 usages = max_t(unsigned, parser->local.usage_index, in hid_add_field()
314 if (i >= parser->local.usage_index) in hid_add_field()
315 j = parser->local.usage_index - 1; in hid_add_field()
319 field->usage[i].usage_index = i; in hid_add_field()
533 if (count + parser->local.usage_index >= HID_MAX_USAGES) { in hid_parser_local()
541 data = HID_MAX_USAGES - parser->local.usage_index + in hid_parser_local()
578 if (!parser->local.usage_index) in hid_concatenate_last_usage_page()
587 for (i = parser->local.usage_index - 1; i >= 0; i--) { in hid_concatenate_last_usage_page()
811 for (i = 0; i < parser->local.usage_index; i++) in hid_scan_collection()
819 for (i = 0; i < parser->local.usage_index; i++) in hid_scan_collection()
845 for (i = 0; i < parser->local.usage_index; i++) in hid_scan_main()
851 for (i = 0; i < parser->local.usage_index; i++) in hid_scan_main()