Lines Matching refs:phynode
103 phandle_t ports, phynode, child; in mii_fdt_lookup_phy() local
107 phynode = mii_fdt_get_phynode(node); in mii_fdt_lookup_phy()
108 if (phynode != -1) in mii_fdt_lookup_phy()
109 return (phynode); in mii_fdt_lookup_phy()
127 phynode = mii_fdt_get_phynode(child); in mii_fdt_lookup_phy()
128 if (phynode <= 0) in mii_fdt_lookup_phy()
131 if (OF_getencprop(phynode, "reg", ®, sizeof(reg)) <= 0) in mii_fdt_lookup_phy()
135 return (phynode); in mii_fdt_lookup_phy()
210 cfg->phynode = mii_fdt_lookup_phy(cfg->macnode, ma->mii_phyno); in mii_fdt_get_config()
211 if (cfg->phynode == -1) in mii_fdt_get_config()
214 if (OF_getencprop(cfg->phynode, "max-speed", &val, sizeof(val)) > 0) in mii_fdt_get_config()
217 if (ofw_bus_node_is_compatible(cfg->phynode, in mii_fdt_get_config()
221 if (OF_hasprop(cfg->phynode, "broken-turn-around")) in mii_fdt_get_config()
223 if (OF_hasprop(cfg->phynode, "enet-phy-lane-swap")) in mii_fdt_get_config()
225 if (OF_hasprop(cfg->phynode, "enet-phy-lane-no-swap")) in mii_fdt_get_config()
227 if (OF_hasprop(cfg->phynode, "eee-broken-100tx")) in mii_fdt_get_config()
229 if (OF_hasprop(cfg->phynode, "eee-broken-1000t")) in mii_fdt_get_config()
231 if (OF_hasprop(cfg->phynode, "eee-broken-10gt")) in mii_fdt_get_config()
233 if (OF_hasprop(cfg->phynode, "eee-broken-1000kx")) in mii_fdt_get_config()
235 if (OF_hasprop(cfg->phynode, "eee-broken-10gkx4")) in mii_fdt_get_config()
237 if (OF_hasprop(cfg->phynode, "eee-broken-10gkr")) in mii_fdt_get_config()