Lines Matching refs:compare
23 int (*compare)(struct device *, void *); member
32 struct component_match_array *compare; member
77 struct device *d = (struct device *)match->compare[i].data; in component_devices_show()
80 match->compare[i].component ? in component_devices_show()
145 int (*compare)(struct device *, void *), void *compare_data) in find_component()
153 if (compare(c->dev, compare_data)) in find_component()
171 struct component_match_array *mc = &match->compare[i]; in find_components()
176 if (match->compare[i].component) in find_components()
179 c = find_component(master, mc->compare, mc->data); in find_components()
188 match->compare[i].duplicate = !!c->master; in find_components()
189 match->compare[i].component = c; in find_components()
202 if (master->match->compare[i].component == c) in remove_component()
203 master->match->compare[i].component = NULL; in remove_component()
277 struct component_match_array *mc = &match->compare[i]; in component_match_release()
283 kfree(match->compare); in component_match_release()
303 if (match->compare) { in component_match_realloc()
304 memcpy(new, match->compare, sizeof(*new) * in component_match_realloc()
306 kfree(match->compare); in component_match_realloc()
308 match->compare = new; in component_match_realloc()
322 int (*compare)(struct device *, void *), void *compare_data) in component_match_add_release()
353 match->compare[match->num].compare = compare; in component_match_add_release()
354 match->compare[match->num].release = release; in component_match_add_release()
355 match->compare[match->num].data = compare_data; in component_match_add_release()
356 match->compare[match->num].component = NULL; in component_match_add_release()
371 struct component *c = match->compare[i].component; in free_master()
457 if (!master->match->compare[i].duplicate) { in component_unbind_all()
458 c = master->match->compare[i].component; in component_unbind_all()
531 if (!master->match->compare[i].duplicate) { in component_bind_all()
532 c = master->match->compare[i].component; in component_bind_all()
540 if (!master->match->compare[i].duplicate) { in component_bind_all()
541 c = master->match->compare[i].component; in component_bind_all()