Lines Matching refs:compare
43 int (*compare)(struct device *, void *); member
53 struct component_match_array *compare; member
98 struct component *component = match->compare[i].component; in component_devices_show()
162 if (mc->compare && mc->compare(c->dev, mc->data)) in find_component()
184 struct component_match_array *mc = &match->compare[i]; in find_components()
189 if (match->compare[i].component) in find_components()
202 match->compare[i].duplicate = !!c->adev; in find_components()
203 match->compare[i].component = c; in find_components()
216 if (adev->match->compare[i].component == c) in remove_component()
217 adev->match->compare[i].component = NULL; in remove_component()
350 struct component_match_array *mc = &match->compare[i]; in devm_component_match_release()
356 kfree(match->compare); in devm_component_match_release()
370 if (match->compare) { in component_match_realloc()
371 memcpy(new, match->compare, sizeof(*new) * in component_match_realloc()
373 kfree(match->compare); in component_match_realloc()
375 match->compare = new; in component_match_realloc()
384 int (*compare)(struct device *, void *), in __component_match_add()
417 match->compare[match->num].compare = compare; in __component_match_add()
418 match->compare[match->num].compare_typed = compare_typed; in __component_match_add()
419 match->compare[match->num].release = release; in __component_match_add()
420 match->compare[match->num].data = compare_data; in __component_match_add()
421 match->compare[match->num].component = NULL; in __component_match_add()
448 int (*compare)(struct device *, void *), void *compare_data) in component_match_add_release()
450 __component_match_add(parent, matchptr, release, compare, NULL, in component_match_add_release()
491 struct component *c = match->compare[i].component; in free_aggregate_device()
608 if (!adev->match->compare[i].duplicate) { in component_unbind_all()
609 c = adev->match->compare[i].component; in component_unbind_all()
692 if (!adev->match->compare[i].duplicate) { in component_bind_all()
693 c = adev->match->compare[i].component; in component_bind_all()
701 if (!adev->match->compare[i - 1].duplicate) { in component_bind_all()
702 c = adev->match->compare[i - 1].component; in component_bind_all()