Lines Matching full: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()
288 * component_compare_of - A common component compare function for of_node
292 * A common compare function when compare_data is device of_node. e.g.
316 * component_compare_dev - A common component compare function for dev
320 * A common compare function when compare_data is struce device. e.g.
330 * component_compare_dev_name - A common component compare function for device name
334 * A common compare function when compare_data is device name string. e.g.
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()
430 * @compare: compare function to match against all components
431 * @compare_data: opaque pointer passed to the @compare function
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()
459 * @compare_typed: compare function to match against all typed components
460 * @compare_data: opaque pointer passed to the @compare function
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()