Lines Matching refs:usages
94 static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages) in hid_register_field() argument
104 usages * sizeof(struct hid_usage) + in hid_register_field()
105 3 * usages * sizeof(unsigned int)), GFP_KERNEL); in hid_register_field()
112 field->value = (s32 *)(field->usage + usages); in hid_register_field()
113 field->new_value = (s32 *)(field->value + usages); in hid_register_field()
114 field->usages_priorities = (s32 *)(field->new_value + usages); in hid_register_field()
264 unsigned int usages; in hid_add_field() local
303 usages = max_t(unsigned, parser->local.usage_index, in hid_add_field()
306 field = hid_register_field(report, usages); in hid_add_field()
314 for (i = 0; i < usages; i++) { in hid_add_field()
326 field->maxusage = usages; in hid_add_field()
1750 unsigned int a, u, usages; in hid_report_process_ordering() local
1777 usages = 0; in hid_report_process_ordering()
1784 &entries[usages], in hid_report_process_ordering()
1786 usages++; in hid_report_process_ordering()
1789 __hid_insert_field_entry(hid, report, &entries[usages], in hid_report_process_ordering()
1791 usages++; in hid_report_process_ordering()