Lines Matching full:compare
48 int (*compare)(struct device *, void *); member
58 struct component_match_array *compare; member
104 struct component *component = match->compare[i].component; in component_devices_show()
170 if (mc->compare && mc->compare(c->dev, mc->data)) in find_component()
192 struct component_match_array *mc = &match->compare[i]; in find_components()
197 if (match->compare[i].component) in find_components()
209 match->compare[i].duplicate = !!c->master; in find_components()
210 match->compare[i].component = c; in find_components()
223 if (master->match->compare[i].component == c) in remove_component()
224 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()
385 * @compare: compare function to match against all components
386 * @compare_data: opaque pointer passed to the @compare function
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()
414 * @compare_typed: compare function to match against all typed components
415 * @compare_data: opaque pointer passed to the @compare function
446 struct component *c = match->compare[i].component; in free_master()
563 if (!master->match->compare[i].duplicate) { in component_unbind_all()
564 c = master->match->compare[i].component; in component_unbind_all()
647 if (!master->match->compare[i].duplicate) { in component_bind_all()
648 c = master->match->compare[i].component; in component_bind_all()
656 if (!master->match->compare[i - 1].duplicate) { in component_bind_all()
657 c = master->match->compare[i - 1].component; in component_bind_all()