Lines Matching refs:drv
566 int phy_register(struct phy_driver *drv) in phy_register() argument
568 INIT_LIST_HEAD(&drv->list); in phy_register()
569 list_add_tail(&drv->list, &phy_drivers); in phy_register()
572 if (drv->probe) in phy_register()
573 drv->probe += gd->reloc_off; in phy_register()
574 if (drv->config) in phy_register()
575 drv->config += gd->reloc_off; in phy_register()
576 if (drv->startup) in phy_register()
577 drv->startup += gd->reloc_off; in phy_register()
578 if (drv->shutdown) in phy_register()
579 drv->shutdown += gd->reloc_off; in phy_register()
580 if (drv->readext) in phy_register()
581 drv->readext += gd->reloc_off; in phy_register()
582 if (drv->writeext) in phy_register()
583 drv->writeext += gd->reloc_off; in phy_register()
584 if (drv->read_mmd) in phy_register()
585 drv->read_mmd += gd->reloc_off; in phy_register()
586 if (drv->write_mmd) in phy_register()
587 drv->write_mmd += gd->reloc_off; in phy_register()
620 phydev->advertising = phydev->drv->features; in phy_probe()
621 phydev->supported = phydev->drv->features; in phy_probe()
623 phydev->mmds = phydev->drv->mmds; in phy_probe()
625 if (phydev->drv->probe) in phy_probe()
626 err = phydev->drv->probe(phydev); in phy_probe()
646 struct phy_driver *drv = NULL; in get_phy_driver() local
649 drv = list_entry(entry, struct phy_driver, list); in get_phy_driver()
650 if ((drv->uid & drv->mask) == (phy_id & drv->mask)) in get_phy_driver()
651 return drv; in get_phy_driver()
692 dev->drv = get_phy_driver(dev, interface); in phy_device_create()
941 debug("%s connected to %s\n", dev->name, phydev->drv->name); in phy_connect_dev()
1082 if (phydev->drv->startup) in phy_startup()
1083 return phydev->drv->startup(phydev); in phy_startup()
1090 if (phydev->drv->config) in board_phy_config()
1091 return phydev->drv->config(phydev); in board_phy_config()
1103 if (phydev->drv->shutdown) in phy_shutdown()
1104 phydev->drv->shutdown(phydev); in phy_shutdown()