Lines Matching refs:num
23 size_t num; member
127 for (i = 0; i < match->num; i++) { in find_components()
227 static size_t component_match_size(size_t num) in component_match_size() argument
229 return offsetof(struct component_match, compare[num]); in component_match_size()
233 struct component_match *match, size_t num) in component_match_realloc() argument
237 if (match && match->alloc == num) in component_match_realloc()
240 new = devm_kmalloc(dev, component_match_size(num), GFP_KERNEL); in component_match_realloc()
245 memcpy(new, match, component_match_size(min(match->num, num))); in component_match_realloc()
248 new->num = 0; in component_match_realloc()
251 new->alloc = num; in component_match_realloc()
269 if (!match || match->num == match->alloc) { in component_match_add()
280 match->compare[match->num].fn = compare; in component_match_add()
281 match->compare[match->num].data = compare_data; in component_match_add()
282 match->num++; in component_match_add()
298 match = component_match_realloc(dev, match, match->num); in component_master_add_with_match()