Lines Matching defs:collection
106 * Open a collection. The type/usage is pushed on the stack.
111 struct hid_collection *collection;
117 dbg_hid("collection stack overflow\n");
122 collection = kmalloc(sizeof(struct hid_collection) *
124 if (collection == NULL) {
125 dbg_hid("failed to reallocate collection array\n");
128 memcpy(collection, parser->device->collection,
131 memset(collection + parser->device->collection_size, 0,
134 kfree(parser->device->collection);
135 parser->device->collection = collection;
142 collection = parser->device->collection +
144 collection->type = type;
145 collection->usage = usage;
146 collection->level = parser->collection_stack_ptr - 1;
155 * Close a collection.
161 dbg_hid("collection stack underflow\n");
169 * Climb up the stack, search for the specified collection type
177 if (parser->device->collection[parser->collection_stack[n]].type == type)
178 return parser->device->collection[parser->collection_stack[n]].usage;
556 kfree(device->collection);
687 dbg_hid("unbalanced collection at end of report description\n");
1199 struct hid_collection *col = &hdev->collection[i];
1833 hdev->collection = kcalloc(HID_DEFAULT_NUM_COLLECTIONS,
1835 if (hdev->collection == NULL)