• Home
  • Raw
  • Download

Lines Matching refs:collection

123 	struct hid_collection *collection;  in open_collection()  local
145 collection = kmalloc( in open_collection()
150 if (collection == NULL) { in open_collection()
154 memcpy(collection, parser->device->collection, in open_collection()
157 memset(collection + parser->device->collection_size, 0, in open_collection()
160 kfree(parser->device->collection); in open_collection()
161 parser->device->collection = collection; in open_collection()
169 collection = parser->device->collection + collection_index; in open_collection()
170 collection->type = type; in open_collection()
171 collection->usage = usage; in open_collection()
172 collection->level = parser->collection_stack_ptr - 1; in open_collection()
173 collection->parent_idx = (collection->level == 0) ? -1 : in open_collection()
174 parser->collection_stack[collection->level - 1]; in open_collection()
203 struct hid_collection *collection = parser->device->collection; in hid_lookup_collection() local
208 if (collection[index].type == type) in hid_lookup_collection()
209 return collection[index].usage; in hid_lookup_collection()
688 kfree(device->collection); in hid_close_report()
689 device->collection = NULL; in hid_close_report()
1059 struct hid_collection *collection; in hid_apply_multiplier_to_field() local
1072 collection = &hid->collection[usage->collection_index]; in hid_apply_multiplier_to_field()
1073 while (collection->parent_idx != -1 && in hid_apply_multiplier_to_field()
1074 collection != multiplier_collection) in hid_apply_multiplier_to_field()
1075 collection = &hid->collection[collection->parent_idx]; in hid_apply_multiplier_to_field()
1077 if (collection->parent_idx != -1 || in hid_apply_multiplier_to_field()
1112 multiplier_collection = &hid->collection[multiplier->usage->collection_index]; in hid_apply_multiplier()
1115 multiplier_collection = &hid->collection[multiplier_collection->parent_idx]; in hid_apply_multiplier()
1243 device->collection = kcalloc(HID_DEFAULT_NUM_COLLECTIONS, in hid_open_report()
1245 if (!device->collection) { in hid_open_report()
1992 struct hid_collection *col = &hdev->collection[i]; in hid_connect()