Lines Matching refs:gpiod
139 struct gpio_desc *gpiod) in fixed_phy_add_gpiod() argument
160 fp->link_gpiod = gpiod; in fixed_phy_add_gpiod()
199 struct gpio_desc *gpiod; in fixed_phy_get_gpiod() local
213 gpiod = gpiod_get_from_of_node(fixed_link_node, "link-gpios", 0, in fixed_phy_get_gpiod()
216 if (IS_ERR(gpiod)) { in fixed_phy_get_gpiod()
217 if (PTR_ERR(gpiod) == -EPROBE_DEFER) in fixed_phy_get_gpiod()
218 return gpiod; in fixed_phy_get_gpiod()
220 if (PTR_ERR(gpiod) != -ENOENT) in fixed_phy_get_gpiod()
223 gpiod = NULL; in fixed_phy_get_gpiod()
226 return gpiod; in fixed_phy_get_gpiod()
238 struct gpio_desc *gpiod) in __fixed_phy_register() argument
249 if (!gpiod) { in __fixed_phy_register()
250 gpiod = fixed_phy_get_gpiod(np); in __fixed_phy_register()
251 if (IS_ERR(gpiod)) in __fixed_phy_register()
252 return ERR_CAST(gpiod); in __fixed_phy_register()
260 ret = fixed_phy_add_gpiod(irq, phy_addr, status, gpiod); in __fixed_phy_register()
330 struct gpio_desc *gpiod) in fixed_phy_register_with_gpiod() argument
332 return __fixed_phy_register(irq, status, NULL, gpiod); in fixed_phy_register_with_gpiod()