Lines Matching refs:match
243 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local
246 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
251 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local
253 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
273 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local
276 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias()
279 if (!match) in devm_regulator_register_supply_alias()
282 match->dev = dev; in devm_regulator_register_supply_alias()
283 match->id = id; in devm_regulator_register_supply_alias()
287 devres_free(match); in devm_regulator_register_supply_alias()
291 devres_add(dev, match); in devm_regulator_register_supply_alias()
311 struct regulator_supply_alias_match match; in devm_regulator_unregister_supply_alias() local
314 match.dev = dev; in devm_regulator_unregister_supply_alias()
315 match.id = id; in devm_regulator_unregister_supply_alias()
318 devm_regulator_match_supply_alias, &match); in devm_regulator_unregister_supply_alias()
406 struct regulator_notifier_match *match = res; in devm_regulator_match_notifier() local
409 return match->regulator == target->regulator && match->nb == target->nb; in devm_regulator_match_notifier()
414 struct regulator_notifier_match *match = res; in devm_regulator_destroy_notifier() local
416 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
432 struct regulator_notifier_match *match; in devm_regulator_register_notifier() local
435 match = devres_alloc(devm_regulator_destroy_notifier, in devm_regulator_register_notifier()
438 if (!match) in devm_regulator_register_notifier()
441 match->regulator = regulator; in devm_regulator_register_notifier()
442 match->nb = nb; in devm_regulator_register_notifier()
446 devres_free(match); in devm_regulator_register_notifier()
450 devres_add(regulator->dev, match); in devm_regulator_register_notifier()
470 struct regulator_notifier_match match; in devm_regulator_unregister_notifier() local
473 match.regulator = regulator; in devm_regulator_unregister_notifier()
474 match.nb = nb; in devm_regulator_unregister_notifier()
477 devm_regulator_match_notifier, &match); in devm_regulator_unregister_notifier()