Lines Matching refs:compare

49 	int (*compare)(struct device *, void *);  member
59 struct component_match_array *compare; member
105 struct device *d = (struct device *)match->compare[i].data; in component_devices_show()
108 match->compare[i].component ? in component_devices_show()
171 if (mc->compare && mc->compare(c->dev, mc->data)) in find_component()
193 struct component_match_array *mc = &match->compare[i]; in find_components()
198 if (match->compare[i].component) in find_components()
210 match->compare[i].duplicate = !!c->master; in find_components()
211 match->compare[i].component = c; in find_components()
224 if (master->match->compare[i].component == c) in remove_component()
225 master->match->compare[i].component = NULL; in remove_component()
299 struct component_match_array *mc = &match->compare[i]; in component_match_release()
305 kfree(match->compare); in component_match_release()
325 if (match->compare) { in component_match_realloc()
326 memcpy(new, match->compare, sizeof(*new) * in component_match_realloc()
328 kfree(match->compare); in component_match_realloc()
330 match->compare = new; in component_match_realloc()
339 int (*compare)(struct device *, void *), in __component_match_add()
372 match->compare[match->num].compare = compare; in __component_match_add()
373 match->compare[match->num].compare_typed = compare_typed; in __component_match_add()
374 match->compare[match->num].release = release; in __component_match_add()
375 match->compare[match->num].data = compare_data; in __component_match_add()
376 match->compare[match->num].component = NULL; in __component_match_add()
403 int (*compare)(struct device *, void *), void *compare_data) in component_match_add_release()
405 __component_match_add(master, matchptr, release, compare, NULL, in component_match_add_release()
446 struct component *c = match->compare[i].component; in free_master()
562 if (!master->match->compare[i].duplicate) { in component_unbind_all()
563 c = master->match->compare[i].component; in component_unbind_all()
645 if (!master->match->compare[i].duplicate) { in component_bind_all()
646 c = master->match->compare[i].component; in component_bind_all()
654 if (!master->match->compare[i - 1].duplicate) { in component_bind_all()
655 c = master->match->compare[i - 1].component; in component_bind_all()