/openbmc/u-boot/board/rockchip/tinker_rk3288/ |
H A D | tinker-rk3288.c | 26 u8 ethaddr[6]; in rk_board_late_init() local 28 if (get_ethaddr_from_eeprom(ethaddr)) in rk_board_late_init() 31 if (is_valid_ethaddr(ethaddr)) in rk_board_late_init() 32 eth_env_set_enetaddr("ethaddr", ethaddr); in rk_board_late_init()
|
/openbmc/u-boot/board/toradex/common/ |
H A D | tdx-common.c | 68 unsigned char ethaddr[6]; in show_board_info() local 89 if (!eth_env_get_enetaddr("ethaddr", ethaddr)) in show_board_info() 93 if (!eth_env_get_enetaddr("eth1addr", ethaddr)) { in show_board_info() 98 memcpy(ethaddr, &tdx_eth_addr, 6); in show_board_info() 99 ethaddr[3] += 0x10; in show_board_info() 100 eth_env_set_enetaddr("eth1addr", ethaddr); in show_board_info()
|
/openbmc/u-boot/board/atmel/common/ |
H A D | mac_eeprom.c | 16 unsigned char ethaddr[ETH_ADDR_LEN]; in at91_set_ethaddr() local 28 ret = i2c_eeprom_read(dev, offset, ethaddr, 6); in at91_set_ethaddr() 32 if (is_valid_ethaddr(ethaddr)) in at91_set_ethaddr() 33 eth_env_set_enetaddr(ETHADDR_NAME, ethaddr); in at91_set_ethaddr()
|
/openbmc/u-boot/board/Synology/ds414/ |
H A D | cmd_syno.c | 58 char ethaddr[ETH_ALEN]; in do_syno_populate() local 65 ethaddr[i] = bufp[i]; in do_syno_populate() 79 ethaddr[0], ethaddr[1], ethaddr[2], in do_syno_populate() 80 ethaddr[3], ethaddr[4], ethaddr[5]); in do_syno_populate()
|
/openbmc/u-boot/test/dm/ |
H A D | eth.c | 107 char ethaddr[DM_TEST_ETH_NUM][18]; in dm_test_eth_act() local 110 memset(ethaddr, '\0', sizeof(ethaddr)); in dm_test_eth_act() 120 strncpy(ethaddr[i], env_get(addrname[i]), 17); in dm_test_eth_act() 135 env_set(addrname[i], ethaddr[i]); in dm_test_eth_act() 181 char ethaddr[18]; in dm_test_eth_rotate() local 188 memset(ethaddr, '\0', sizeof(ethaddr)); in dm_test_eth_rotate() 189 strncpy(ethaddr, env_get("eth1addr"), 17); in dm_test_eth_rotate() 197 env_set("eth1addr", ethaddr); in dm_test_eth_rotate() 202 strncpy(ethaddr, env_get("ethaddr"), 17); in dm_test_eth_rotate() 210 env_set("ethaddr", ethaddr); in dm_test_eth_rotate()
|
/openbmc/u-boot/tools/ |
H A D | gen_ethaddr_crc.c | 26 uint8_t ethaddr[ARP_HLEN + 1] = { 0x00 }; in process_mac() local 36 ethaddr[i >> 1] |= nibble_to_hex(nibble, (i % 2) != 0); in process_mac() 42 printf("%.2x", ethaddr[i]); in process_mac() 43 printf("%.2x\n", crc8(0, ethaddr, ARP_HLEN)); in process_mac()
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | smc_eeprom.c | 350 unchar ethaddr[6], i; in do_eeprom_save_mac() local 356 ethaddr[i] = tmp ? simple_strtoul(tmp, &end, 16) : 0; in do_eeprom_save_mac() 361 hi16 = (ethaddr[5] << 8) | (ethaddr[4]); in do_eeprom_save_mac() 362 lo32 = (ethaddr[3] << 24) | (ethaddr[2] << 16) | in do_eeprom_save_mac() 363 (ethaddr[1] << 8) | (ethaddr[0]); in do_eeprom_save_mac()
|
/openbmc/u-boot/board/xilinx/common/ |
H A D | board.c | 11 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) in zynq_board_read_rom_ethaddr() argument 30 ret = dm_i2c_read(dev, CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET, ethaddr, 6); in zynq_board_read_rom_ethaddr() 34 debug("%s: I2C EEPROM MAC %pM\n", __func__, ethaddr); in zynq_board_read_rom_ethaddr()
|
/openbmc/u-boot/board/varisys/common/ |
H A D | sys_eeprom.c | 384 char ethaddr[18]; in mac_read_from_generic_eeprom() local 394 sprintf(ethaddr, "%02X:%02X:%02X:%02X:%02X:%02X", in mac_read_from_generic_eeprom() 402 printf("MAC: %s\n", ethaddr); in mac_read_from_generic_eeprom() 403 env_set(envvar, ethaddr); in mac_read_from_generic_eeprom() 474 char ethaddr[18]; in mac_read_from_eeprom_common() local 477 sprintf(ethaddr, "%02X:%02X:%02X:%02X:%02X:%02X", in mac_read_from_eeprom_common() 489 env_set(enetvar, ethaddr); in mac_read_from_eeprom_common()
|
/openbmc/u-boot/board/technologic/ts4800/ |
H A D | ts4800.c | 171 unsigned char ethaddr[6]; in fec_get_mac_from_register() local 179 ethaddr[i] = (reg_mac[i / 4] >> ((i % 4) * 8)) & 0xFF; in fec_get_mac_from_register() 181 if (is_valid_ethaddr(ethaddr)) { in fec_get_mac_from_register() 182 eth_env_set_enetaddr("ethaddr", ethaddr); in fec_get_mac_from_register()
|
/openbmc/u-boot/doc/ |
H A D | README.enetaddr | 18 - environment ("ethaddr", "eth1addr", ...) 95 if (!eth_env_get_enetaddr("ethaddr", enetaddr)) { 96 /* "ethaddr" is not set in the environment */ 97 ... try and setup "ethaddr" in the env ... 99 /* enetaddr is now set to the value stored in the ethaddr env var */ 106 eth_env_set_enetaddr("ethaddr", enetaddr); 107 /* the "ethaddr" env var should now be set to "00:11:22:33:44:55" */
|
H A D | README.fec_mxc | 5 ethaddr from the SoC eFuses (see below). 36 Reading the ethaddr from the SoC eFuses: 38 ethaddr variable, then its value gets read from the corresponding eFuses in
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_ether.h | 93 u8 ethaddr[ETH_ALEN], unsigned qmult, const char *netname); 110 u8 ethaddr[ETH_ALEN], unsigned qmult) in gether_setup() 112 return gether_setup_name(g, dev_addr, host_addr, ethaddr, qmult, "usb"); in gether_setup()
|
H A D | f_subset.c | 52 char ethaddr[14]; member 479 status = gether_get_host_addr_cdc(opts->net, geth->ethaddr, in geth_alloc() 480 sizeof(geth->ethaddr)); in geth_alloc() 486 geth_string_defs[1].s = geth->ethaddr; in geth_alloc()
|
/openbmc/u-boot/net/ |
H A D | Kconfig | 12 bool "Random ethaddr if unset" 15 even when the ethaddr variable for that interface is unset.
|
/openbmc/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | u-boot,env.yaml | 51 ethaddr: 78 mac: ethaddr { 97 ethaddr {
|
/openbmc/linux/arch/mips/alchemy/common/ |
H A D | platform.c | 405 unsigned char ethaddr[6]; in alchemy_setup_macs() local 420 i = prom_get_ethernet_addr(ethaddr); in alchemy_setup_macs() 422 memcpy(au1xxx_eth0_platform_data.mac, ethaddr, 6); in alchemy_setup_macs() 441 ethaddr[5] += 1; /* next addr for 2nd MAC */ in alchemy_setup_macs() 443 memcpy(au1xxx_eth1_platform_data.mac, ethaddr, 6); in alchemy_setup_macs()
|
/openbmc/u-boot/board/sunxi/ |
H A D | board.c | 778 char ethaddr[16]; in setup_environment() local 805 sprintf(ethaddr, "ethernet%d", i); in setup_environment() 806 if (!fdt_get_alias(fdt, ethaddr)) in setup_environment() 810 strcpy(ethaddr, "ethaddr"); in setup_environment() 812 sprintf(ethaddr, "eth%daddr", i); in setup_environment() 814 if (env_get(ethaddr)) in setup_environment() 825 eth_env_set_enetaddr(ethaddr, mac_addr); in setup_environment()
|
/openbmc/u-boot/cmd/ |
H A D | ethsw.c | 859 !is_broadcast_ethaddr(parsed_cmd->ethaddr)) in keyword_match_mac_addr() 867 eth_parse_enetaddr(argv[*argc_nr + 1], parsed_cmd->ethaddr); in keyword_match_mac_addr() 869 if (is_broadcast_ethaddr(parsed_cmd->ethaddr)) { in keyword_match_mac_addr() 870 memset(parsed_cmd->ethaddr, 0xFF, sizeof(parsed_cmd->ethaddr)); in keyword_match_mac_addr() 1063 memset(parsed_cmd->ethaddr, 0xff, sizeof(parsed_cmd->ethaddr)); in command_def_init()
|
H A D | pxe.c | 64 uchar ethaddr[6]; in format_mac_pxe() local 72 if (!eth_env_get_enetaddr_by_index("eth", eth_get_dev_index(), ethaddr)) in format_mac_pxe() 76 ethaddr[0], ethaddr[1], ethaddr[2], in format_mac_pxe() 77 ethaddr[3], ethaddr[4], ethaddr[5]); in format_mac_pxe()
|
/openbmc/u-boot/arch/arm/mach-zynq/include/mach/ |
H A D | sys_proto.h | 20 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
|
/openbmc/u-boot/include/ |
H A D | lynxkdi.h | 15 uint8_t ethaddr[6]; /* Ethernet address */ member
|
/openbmc/u-boot/board/freescale/common/ |
H A D | sys_eeprom.c | 466 char ethaddr[18]; in mac_read_from_eeprom() local 469 sprintf(ethaddr, "%02X:%02X:%02X:%02X:%02X:%02X", in mac_read_from_eeprom() 481 env_set(enetvar, ethaddr); in mac_read_from_eeprom()
|
/openbmc/u-boot/doc/imx/common/ |
H A D | imx6.txt | 68 ,which matches the ethaddr value: 69 => echo ${ethaddr}
|
/openbmc/u-boot/board/timll/devkit8000/ |
H A D | README | 11 If ethaddr is not set, 5 Bytes of the OMAP Die ID will be used.
|