Lines Matching refs:np
69 rt_err_t rt_ofw_get_interface(struct rt_ofw_node *np, rt_phy_interface *interface) in rt_ofw_get_interface() argument
73 if (rt_ofw_prop_read_string(np, "phy-mode", &phy_mode)) in rt_ofw_get_interface()
74 rt_ofw_prop_read_string(np, "phy-connection-type", &phy_mode); in rt_ofw_get_interface()
81 rt_err_t rt_ofw_get_mac_addr_by_name(struct rt_ofw_node *np, const char *name, rt_uint8_t *addr) in rt_ofw_get_mac_addr_by_name() argument
85 p = rt_ofw_prop_read_raw(np, name, &len); in rt_ofw_get_mac_addr_by_name()
95 rt_err_t rt_ofw_get_mac_addr(struct rt_ofw_node *np, rt_uint8_t *addr) in rt_ofw_get_mac_addr() argument
97 if (!rt_ofw_get_mac_addr_by_name(np, "mac-address", addr)) in rt_ofw_get_mac_addr()
100 if (!rt_ofw_get_mac_addr_by_name(np, "local-mac-address", addr)) in rt_ofw_get_mac_addr()
103 if (!rt_ofw_get_mac_addr_by_name(np, "address", addr)) in rt_ofw_get_mac_addr()
109 rt_err_t rt_ofw_get_phyid(struct rt_ofw_node *np,rt_uint32_t *id) in rt_ofw_get_phyid() argument
115 ret = rt_ofw_prop_read_string(np,"compatible",&phy_id); in rt_ofw_get_phyid()
127 struct rt_phy_device *rt_ofw_create_phy(struct mii_bus *bus,struct rt_ofw_node *np,int phyaddr) in rt_ofw_create_phy() argument
134 phy_node = rt_ofw_parse_phandle(np, "phy-handle", 0); in rt_ofw_create_phy()
141 ret = rt_ofw_get_phyid(np, &id); in rt_ofw_create_phy()