Lines Matching refs:phy_provider

39 	struct phy_provider *phy_provider = *(struct phy_provider **)res;
41 of_phy_provider_unregister(phy_provider);
133 static struct phy_provider *of_phy_provider_lookup(struct device_node *node)
135 struct phy_provider *phy_provider;
138 list_for_each_entry(phy_provider, &phy_provider_list, list) {
139 if (phy_provider->dev->of_node == node)
140 return phy_provider;
142 for_each_child_of_node(phy_provider->children, child)
144 return phy_provider;
612 * while registering the phy_provider to find the phy instance.
617 struct phy_provider *phy_provider;
631 phy_provider = of_phy_provider_lookup(args.np);
632 if (IS_ERR(phy_provider) || !try_module_get(phy_provider->owner)) {
638 dev_warn(phy_provider->dev, "Requested PHY is disabled\n");
643 phy = phy_provider->of_xlate(phy_provider->dev, &args);
646 module_put(phy_provider->owner);
1131 * Creates struct phy_provider from dev and of_xlate function pointer.
1142 struct phy_provider *__of_phy_provider_register(struct device *dev,
1147 struct phy_provider *phy_provider;
1174 phy_provider = kzalloc(sizeof(*phy_provider), GFP_KERNEL);
1175 if (!phy_provider)
1178 phy_provider->dev = dev;
1179 phy_provider->children = of_node_get(children);
1180 phy_provider->owner = owner;
1181 phy_provider->of_xlate = of_xlate;
1184 list_add_tail(&phy_provider->list, &phy_provider_list);
1187 return phy_provider;
1199 * Creates struct phy_provider from dev and of_xlate function pointer.
1205 struct phy_provider *__devm_of_phy_provider_register(struct device *dev,
1210 struct phy_provider **ptr, *phy_provider;
1216 phy_provider = __of_phy_provider_register(dev, children, owner,
1218 if (!IS_ERR(phy_provider)) {
1219 *ptr = phy_provider;
1225 return phy_provider;
1231 * @phy_provider: phy provider returned by of_phy_provider_register()
1233 * Removes the phy_provider created using of_phy_provider_register().
1235 void of_phy_provider_unregister(struct phy_provider *phy_provider)
1237 if (IS_ERR(phy_provider))
1241 list_del(&phy_provider->list);
1242 of_node_put(phy_provider->children);
1243 kfree(phy_provider);
1251 * @phy_provider: phy provider returned by of_phy_provider_register()
1257 struct phy_provider *phy_provider)
1262 phy_provider);