Lines Matching refs:usages
96 static struct hid_field *hid_register_field(struct hid_report *report, unsigned usages, unsigned va… in hid_register_field() argument
105 if (!(field = kmalloc(sizeof(struct hid_field) + usages * sizeof(struct hid_usage) in hid_register_field()
108 memset(field, 0, sizeof(struct hid_field) + usages * sizeof(struct hid_usage) in hid_register_field()
113 field->value = (unsigned *)(field->usage + usages); in hid_register_field()
227 int usages; in hid_add_field() local
241 usages = parser->local.usage_index; in hid_add_field()
246 if (usages < parser->global.report_count) in hid_add_field()
247 usages = parser->global.report_count; in hid_add_field()
249 if (usages == 0) in hid_add_field()
252 if ((field = hid_register_field(report, usages, parser->global.report_count)) == NULL) in hid_add_field()
259 for (i = 0; i < usages; i++) { in hid_add_field()
269 field->maxusage = usages; in hid_add_field()