Lines Matching defs:mac
287 * eth_prepare_mac_addr_change - prepare for mac change
304 * eth_commit_mac_addr_change - commit mac change
526 * Obtain the MAC address from an nvmem cell named 'mac-address' associated
529 * @dev: Device with which the mac-address cell is associated.
537 const void *mac;
540 cell = nvmem_cell_get(dev, "mac-address");
544 mac = nvmem_cell_read(cell, &len);
547 if (IS_ERR(mac))
548 return PTR_ERR(mac);
550 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) {
551 kfree(mac);
555 ether_addr_copy(addrbuf, mac);
556 kfree(mac);