Lines Matching defs:collection
98 * Open a collection. The type/usage is pushed on the stack.
103 struct hid_collection *collection;
109 dbg("collection stack overflow");
114 collection = kmalloc(sizeof(struct hid_collection) *
116 if (collection == NULL) {
117 dbg("failed to reallocate collection array");
120 memcpy(collection, parser->device->collection,
123 memset(collection + parser->device->collection_size, 0,
126 kfree(parser->device->collection);
127 parser->device->collection = collection;
134 collection = parser->device->collection +
136 collection->type = type;
137 collection->usage = usage;
138 collection->level = parser->collection_stack_ptr - 1;
147 * Close a collection.
153 dbg("collection stack underflow");
161 * Climb up the stack, search for the specified collection type
169 if (parser->device->collection[parser->collection_stack[n]].type == type)
170 return parser->device->collection[parser->collection_stack[n]].usage;
543 kfree(device->collection);
639 if (!(device->collection = kzalloc(sizeof(struct hid_collection) *
650 kfree(device->collection);
659 kfree(device->collection);
686 dbg("unbalanced collection at end of report description");