Lines Matching refs:enetaddr
364 static int smsc95xx_init_mac_address(unsigned char *enetaddr, in smsc95xx_init_mac_address() argument
370 ret = smsc95xx_read_eeprom(udev, EEPROM_MAC_OFFSET, ETH_ALEN, enetaddr); in smsc95xx_init_mac_address()
374 if (is_valid_ethaddr(enetaddr)) { in smsc95xx_init_mac_address()
391 unsigned char *enetaddr) in smsc95xx_write_hwaddr_common() argument
393 u32 addr_lo = get_unaligned_le32(&enetaddr[0]); in smsc95xx_write_hwaddr_common()
394 u32 addr_hi = get_unaligned_le16(&enetaddr[4]); in smsc95xx_write_hwaddr_common()
407 debug("MAC %pM\n", enetaddr); in smsc95xx_write_hwaddr_common()
472 unsigned char *enetaddr) in smsc95xx_init_common() argument
522 if (!priv->have_hwaddr && smsc95xx_init_mac_address(enetaddr, udev) == in smsc95xx_init_common()
530 ret = smsc95xx_write_hwaddr_common(udev, priv, enetaddr); in smsc95xx_init_common()
723 return smsc95xx_init_common(udev, dev, priv, eth->enetaddr); in smsc95xx_init()
812 return smsc95xx_write_hwaddr_common(udev, priv, eth->enetaddr); in smsc95xx_write_hwaddr()
942 return smsc95xx_init_common(udev, &priv->ueth, priv, pdata->enetaddr); in smsc95xx_eth_start()
1023 return smsc95xx_write_hwaddr_common(udev, priv, pdata->enetaddr); in smsc95xx_write_hwaddr()
1032 ret = smsc95xx_init_mac_address(pdata->enetaddr, udev); in smsc95xx_read_rom_hwaddr()
1034 memset(pdata->enetaddr, 0, 6); in smsc95xx_read_rom_hwaddr()