Lines Matching refs:usages
89 static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages) in hid_register_field() argument
99 usages * sizeof(struct hid_usage) + in hid_register_field()
100 3 * usages * sizeof(unsigned int)), GFP_KERNEL); in hid_register_field()
107 field->value = (s32 *)(field->usage + usages); in hid_register_field()
108 field->new_value = (s32 *)(field->value + usages); in hid_register_field()
109 field->usages_priorities = (s32 *)(field->new_value + usages); in hid_register_field()
260 unsigned int usages; in hid_add_field() local
302 usages = max_t(unsigned, parser->local.usage_index, in hid_add_field()
305 field = hid_register_field(report, usages); in hid_add_field()
313 for (i = 0; i < usages; i++) { in hid_add_field()
325 field->maxusage = usages; in hid_add_field()
1760 unsigned int a, u, usages; in hid_report_process_ordering() local
1787 usages = 0; in hid_report_process_ordering()
1794 &entries[usages], in hid_report_process_ordering()
1796 usages++; in hid_report_process_ordering()
1799 __hid_insert_field_entry(hid, report, &entries[usages], in hid_report_process_ordering()
1801 usages++; in hid_report_process_ordering()