Lines Matching refs:addr
50 static int of_get_mac_addr(struct device_node *np, const char *name, u8 *addr) in of_get_mac_addr() argument
55 memcpy(addr, pp->value, ETH_ALEN); in of_get_mac_addr()
61 int of_get_mac_address_nvmem(struct device_node *np, u8 *addr) in of_get_mac_address_nvmem() argument
73 ret = nvmem_get_mac_address(&pdev->dev, addr); in of_get_mac_address_nvmem()
93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem()
126 int of_get_mac_address(struct device_node *np, u8 *addr) in of_get_mac_address() argument
133 ret = of_get_mac_addr(np, "mac-address", addr); in of_get_mac_address()
137 ret = of_get_mac_addr(np, "local-mac-address", addr); in of_get_mac_address()
141 ret = of_get_mac_addr(np, "address", addr); in of_get_mac_address()
145 return of_get_mac_address_nvmem(np, addr); in of_get_mac_address()
164 u8 addr[ETH_ALEN]; in of_get_ethdev_address() local
167 ret = of_get_mac_address(np, addr); in of_get_ethdev_address()
169 eth_hw_addr_set(dev, addr); in of_get_ethdev_address()