Lines Matching refs:compare

47 	int (*compare)(struct device *, void *);  member
57 struct component_match_array *compare; member
102 struct component *component = match->compare[i].component; in component_devices_show()
166 if (mc->compare && mc->compare(c->dev, mc->data)) in find_component()
188 struct component_match_array *mc = &match->compare[i]; in find_components()
193 if (match->compare[i].component) in find_components()
205 match->compare[i].duplicate = !!c->master; in find_components()
206 match->compare[i].component = c; in find_components()
219 if (master->match->compare[i].component == c) in remove_component()
220 master->match->compare[i].component = NULL; in remove_component()
296 struct component_match_array *mc = &match->compare[i]; in devm_component_match_release()
302 kfree(match->compare); in devm_component_match_release()
316 if (match->compare) { in component_match_realloc()
317 memcpy(new, match->compare, sizeof(*new) * in component_match_realloc()
319 kfree(match->compare); in component_match_realloc()
321 match->compare = new; in component_match_realloc()
330 int (*compare)(struct device *, void *), in __component_match_add()
363 match->compare[match->num].compare = compare; in __component_match_add()
364 match->compare[match->num].compare_typed = compare_typed; in __component_match_add()
365 match->compare[match->num].release = release; in __component_match_add()
366 match->compare[match->num].data = compare_data; in __component_match_add()
367 match->compare[match->num].component = NULL; in __component_match_add()
394 int (*compare)(struct device *, void *), void *compare_data) in component_match_add_release()
396 __component_match_add(master, matchptr, release, compare, NULL, in component_match_add_release()
437 struct component *c = match->compare[i].component; in free_master()
554 if (!master->match->compare[i].duplicate) { in component_unbind_all()
555 c = master->match->compare[i].component; in component_unbind_all()
638 if (!master->match->compare[i].duplicate) { in component_bind_all()
639 c = master->match->compare[i].component; in component_bind_all()
647 if (!master->match->compare[i - 1].duplicate) { in component_bind_all()
648 c = master->match->compare[i - 1].component; in component_bind_all()