Lines Matching refs:match
245 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local
248 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
253 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local
255 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
275 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local
278 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias()
281 if (!match) in devm_regulator_register_supply_alias()
284 match->dev = dev; in devm_regulator_register_supply_alias()
285 match->id = id; in devm_regulator_register_supply_alias()
289 devres_free(match); in devm_regulator_register_supply_alias()
293 devres_add(dev, match); in devm_regulator_register_supply_alias()
313 struct regulator_supply_alias_match match; in devm_regulator_unregister_supply_alias() local
316 match.dev = dev; in devm_regulator_unregister_supply_alias()
317 match.id = id; in devm_regulator_unregister_supply_alias()
320 devm_regulator_match_supply_alias, &match); in devm_regulator_unregister_supply_alias()
408 struct regulator_notifier_match *match = res; in devm_regulator_match_notifier() local
411 return match->regulator == target->regulator && match->nb == target->nb; in devm_regulator_match_notifier()
416 struct regulator_notifier_match *match = res; in devm_regulator_destroy_notifier() local
418 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
434 struct regulator_notifier_match *match; in devm_regulator_register_notifier() local
437 match = devres_alloc(devm_regulator_destroy_notifier, in devm_regulator_register_notifier()
440 if (!match) in devm_regulator_register_notifier()
443 match->regulator = regulator; in devm_regulator_register_notifier()
444 match->nb = nb; in devm_regulator_register_notifier()
448 devres_free(match); in devm_regulator_register_notifier()
452 devres_add(regulator->dev, match); in devm_regulator_register_notifier()
472 struct regulator_notifier_match match; in devm_regulator_unregister_notifier() local
475 match.regulator = regulator; in devm_regulator_unregister_notifier()
476 match.nb = nb; in devm_regulator_unregister_notifier()
479 devm_regulator_match_notifier, &match); in devm_regulator_unregister_notifier()