Lines Matching refs:compare

43 	int (*compare)(struct device *, void *);
53 struct component_match_array *compare;
98 struct component *component = match->compare[i].component;
162 if (mc->compare && mc->compare(c->dev, mc->data))
184 struct component_match_array *mc = &match->compare[i];
189 if (match->compare[i].component)
202 match->compare[i].duplicate = !!c->adev;
203 match->compare[i].component = c;
216 if (adev->match->compare[i].component == c)
217 adev->match->compare[i].component = NULL;
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];
356 kfree(match->compare);
370 if (match->compare) {
371 memcpy(new, match->compare, sizeof(*new) *
373 kfree(match->compare);
375 match->compare = new;
384 int (*compare)(struct device *, void *),
417 match->compare[match->num].compare = compare;
418 match->compare[match->num].compare_typed = compare_typed;
419 match->compare[match->num].release = release;
420 match->compare[match->num].data = compare_data;
421 match->compare[match->num].component = NULL;
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)
450 __component_match_add(parent, matchptr, release, compare, NULL,
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;
608 if (!adev->match->compare[i].duplicate) {
609 c = adev->match->compare[i].component;
692 if (!adev->match->compare[i].duplicate) {
693 c = adev->match->compare[i].component;
701 if (!adev->match->compare[i - 1].duplicate) {
702 c = adev->match->compare[i - 1].component;