Lines Matching refs:pdev
505 rt_err_t rt_phy_device_register(struct rt_phy_device *pdev) in rt_phy_device_register() argument
508 RT_ASSERT(pdev != RT_NULL); in rt_phy_device_register()
509 err = rt_bus_add_device(&rt_phy_bus, &pdev->parent); in rt_phy_device_register()
514 if(!pdev->drv) in rt_phy_device_register()
515 pdev->drv = &genphy; in rt_phy_device_register()
536 struct rt_phy_device *pdev = rt_container_of(dev, struct rt_phy_device, parent); in phy_match() local
538 if ((pdrv->uid & pdrv->mask) == (pdev->phy_id & pdrv->mask)) in phy_match()
549 struct rt_phy_device *pdev = rt_container_of(dev, struct rt_phy_device, parent); in phy_probe() local
550 pdev->drv = pdrv; in phy_probe()
551 pdev->advertising = pdev->drv->features; in phy_probe()
552 pdev->supported = pdev->drv->features; in phy_probe()
554 pdev->mmds = pdev->drv->mmds; in phy_probe()
556 err = pdrv->probe(pdev); in phy_probe()