Lines Matching refs:match
289 struct regulator_bulk_devres *match = res; in devm_regulator_bulk_match() local
298 return match->consumers == target; in devm_regulator_bulk_match()
438 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local
441 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
446 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local
448 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
468 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local
471 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias()
474 if (!match) in devm_regulator_register_supply_alias()
477 match->dev = dev; in devm_regulator_register_supply_alias()
478 match->id = id; in devm_regulator_register_supply_alias()
482 devres_free(match); in devm_regulator_register_supply_alias()
486 devres_add(dev, match); in devm_regulator_register_supply_alias()
495 struct regulator_supply_alias_match match; in devm_regulator_unregister_supply_alias() local
498 match.dev = dev; in devm_regulator_unregister_supply_alias()
499 match.id = id; in devm_regulator_unregister_supply_alias()
502 devm_regulator_match_supply_alias, &match); in devm_regulator_unregister_supply_alias()
565 struct regulator_notifier_match *match = res; in devm_regulator_match_notifier() local
568 return match->regulator == target->regulator && match->nb == target->nb; in devm_regulator_match_notifier()
573 struct regulator_notifier_match *match = res; in devm_regulator_destroy_notifier() local
575 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
591 struct regulator_notifier_match *match; in devm_regulator_register_notifier() local
594 match = devres_alloc(devm_regulator_destroy_notifier, in devm_regulator_register_notifier()
597 if (!match) in devm_regulator_register_notifier()
600 match->regulator = regulator; in devm_regulator_register_notifier()
601 match->nb = nb; in devm_regulator_register_notifier()
605 devres_free(match); in devm_regulator_register_notifier()
609 devres_add(regulator->dev, match); in devm_regulator_register_notifier()
629 struct regulator_notifier_match match; in devm_regulator_unregister_notifier() local
632 match.regulator = regulator; in devm_regulator_unregister_notifier()
633 match.nb = nb; in devm_regulator_unregister_notifier()
636 devm_regulator_match_notifier, &match); in devm_regulator_unregister_notifier()