Lines Matching defs:mac
283 * eth_prepare_mac_addr_change - prepare for mac change
300 * eth_commit_mac_addr_change - commit mac change
540 * 'mac-address' associated with given device.
542 * @dev: Device with which the mac-address cell is associated.
550 const void *mac;
553 cell = nvmem_cell_get(dev, "mac-address");
557 mac = nvmem_cell_read(cell, &len);
560 if (IS_ERR(mac))
561 return PTR_ERR(mac);
563 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) {
564 kfree(mac);
568 ether_addr_copy(addrbuf, mac);
569 kfree(mac);
593 * Search the firmware node for the best MAC address to use. 'mac-address' is
595 * address. If that isn't set, then 'local-mac-address' is checked next,
605 * example, the DTS could define 'mac-address' and 'local-mac-address', with
606 * zero MAC addresses. Some older U-Boots only initialized 'local-mac-address'.
607 * In this case, the real MAC is in 'local-mac-address', and 'mac-address'
612 if (!fwnode_get_mac_addr(fwnode, "mac-address", addr) ||
613 !fwnode_get_mac_addr(fwnode, "local-mac-address", addr) ||