Lines Matching refs:match
348 struct regulator_bulk_devres *match = res; in devm_regulator_bulk_match() local
357 return match->consumers == target; in devm_regulator_bulk_match()
497 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local
500 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
505 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local
507 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
527 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local
530 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias()
533 if (!match) in devm_regulator_register_supply_alias()
536 match->dev = dev; in devm_regulator_register_supply_alias()
537 match->id = id; in devm_regulator_register_supply_alias()
541 devres_free(match); in devm_regulator_register_supply_alias()
545 devres_add(dev, match); in devm_regulator_register_supply_alias()
554 struct regulator_supply_alias_match match; in devm_regulator_unregister_supply_alias() local
557 match.dev = dev; in devm_regulator_unregister_supply_alias()
558 match.id = id; in devm_regulator_unregister_supply_alias()
561 devm_regulator_match_supply_alias, &match); in devm_regulator_unregister_supply_alias()
624 struct regulator_notifier_match *match = res; in devm_regulator_match_notifier() local
627 return match->regulator == target->regulator && match->nb == target->nb; in devm_regulator_match_notifier()
632 struct regulator_notifier_match *match = res; in devm_regulator_destroy_notifier() local
634 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
650 struct regulator_notifier_match *match; in devm_regulator_register_notifier() local
653 match = devres_alloc(devm_regulator_destroy_notifier, in devm_regulator_register_notifier()
656 if (!match) in devm_regulator_register_notifier()
659 match->regulator = regulator; in devm_regulator_register_notifier()
660 match->nb = nb; in devm_regulator_register_notifier()
664 devres_free(match); in devm_regulator_register_notifier()
668 devres_add(regulator->dev, match); in devm_regulator_register_notifier()
688 struct regulator_notifier_match match; in devm_regulator_unregister_notifier() local
691 match.regulator = regulator; in devm_regulator_unregister_notifier()
692 match.nb = nb; in devm_regulator_unregister_notifier()
695 devm_regulator_match_notifier, &match); in devm_regulator_unregister_notifier()