Lines Matching full:pdn
35 struct phy_device_node *pdn; in phy_link_topo_add_phy() local
46 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); in phy_link_topo_add_phy()
47 if (!pdn) in phy_link_topo_add_phy()
50 pdn->phy = phy; in phy_link_topo_add_phy()
53 pdn->upstream.netdev = (struct net_device *)upstream; in phy_link_topo_add_phy()
55 pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus; in phy_link_topo_add_phy()
58 pdn->upstream.phydev = (struct phy_device *)upstream; in phy_link_topo_add_phy()
60 pdn->parent_sfp_bus = pdn->upstream.phydev->sfp_bus; in phy_link_topo_add_phy()
66 pdn->upstream_type = upt; in phy_link_topo_add_phy()
70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy()
72 ret = xa_alloc_cyclic(&topo->phys, &phy->phyindex, pdn, in phy_link_topo_add_phy()
82 kfree(pdn); in phy_link_topo_add_phy()
91 struct phy_device_node *pdn; in phy_link_topo_del_phy() local
96 pdn = xa_erase(&topo->phys, phy->phyindex); in phy_link_topo_del_phy()
103 kfree(pdn); in phy_link_topo_del_phy()