Lines Matching refs:node
149 phandle_t node, child, phy_handle; in mvneta_fdt_phy_acquire() local
155 node = ofw_bus_get_node(dev); in mvneta_fdt_phy_acquire()
158 if (OF_getprop(node, "phy-mode", phymode, sizeof(phymode)) <= 0) { in mvneta_fdt_phy_acquire()
175 if (OF_getprop(node, "managed", managed, sizeof(managed)) > 0) { in mvneta_fdt_phy_acquire()
183 if (OF_getencprop(node, "phy", (void *)&phy_handle, in mvneta_fdt_phy_acquire()
186 for (child = OF_child(node); child != 0; child = OF_peer(child)) { in mvneta_fdt_phy_acquire()
234 phandle_t node; in mvneta_fdt_mac_address() local
242 node = ofw_bus_get_node(sc->dev); in mvneta_fdt_mac_address()
243 if (node == 0) in mvneta_fdt_mac_address()
246 len = OF_getprop(node, "local-mac-address", (void *)lmac, sizeof(lmac)); in mvneta_fdt_mac_address()
260 mvneta_find_ethernet_prop_switch(phandle_t ethernet, phandle_t node) in mvneta_find_ethernet_prop_switch() argument
265 for (child = OF_child(node); child != 0; child = OF_peer(child)) { in mvneta_find_ethernet_prop_switch()
288 phandle_t node; in mvneta_has_switch_fdt() local
290 node = ofw_bus_get_node(self); in mvneta_has_switch_fdt()
292 return mvneta_find_ethernet_prop_switch(node, OF_finddevice("/")); in mvneta_has_switch_fdt()