Home
last modified time | relevance | path

Searched refs:ethaddr (Results 1 – 25 of 54) sorted by relevance

123

/external/u-boot/test/dm/
Deth.c107 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()
/external/u-boot/board/toradex/common/
Dtdx-common.c68 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()
/external/u-boot/board/Synology/ds414/
Dcmd_syno.c59 char ethaddr[ETH_ALEN]; in do_syno_populate() local
66 ethaddr[i] = bufp[i]; in do_syno_populate()
80 ethaddr[0], ethaddr[1], ethaddr[2], in do_syno_populate()
81 ethaddr[3], ethaddr[4], ethaddr[5]); in do_syno_populate()
/external/u-boot/board/rockchip/tinker_rk3288/
Dtinker-rk3288.c26 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()
/external/u-boot/board/atmel/common/
Dmac_eeprom.c16 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()
/external/u-boot/board/micronas/vct/
Dsmc_eeprom.c350 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()
/external/u-boot/tools/
Dgen_ethaddr_crc.c26 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()
/external/u-boot/board/varisys/common/
Dsys_eeprom.c384 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()
/external/u-boot/doc/
DREADME.enetaddr18 - 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" */
DREADME.fec_mxc5 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
DREADME.imx668 ,which matches the ethaddr value:
69 => echo ${ethaddr}
/external/u-boot/board/technologic/ts4800/
Dts4800.c171 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()
/external/u-boot/board/xilinx/zynq/
Dboard.c76 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) in zynq_board_read_rom_ethaddr() argument
82 ethaddr, 6)) in zynq_board_read_rom_ethaddr()
/external/u-boot/board/sunxi/
Dboard.c694 char ethaddr[16]; in setup_environment() local
721 sprintf(ethaddr, "ethernet%d", i); in setup_environment()
722 if (!fdt_get_alias(fdt, ethaddr)) in setup_environment()
726 strcpy(ethaddr, "ethaddr"); in setup_environment()
728 sprintf(ethaddr, "eth%daddr", i); in setup_environment()
730 if (env_get(ethaddr)) in setup_environment()
741 eth_env_set_enetaddr(ethaddr, mac_addr); in setup_environment()
/external/u-boot/net/
DKconfig12 bool "Random ethaddr if unset"
15 even when the ethaddr variable for that interface is unset.
/external/u-boot/cmd/
Dethsw.c859 !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()
Dpxe.c64 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()
/external/u-boot/board/freescale/common/
Dsys_eeprom.c466 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()
/external/u-boot/arch/arm/mach-zynq/include/mach/
Dsys_proto.h20 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
/external/u-boot/include/
Dlynxkdi.h15 uint8_t ethaddr[6]; /* Ethernet address */ member
/external/u-boot/arch/arm/include/asm/arch-zynqmp/
Dsys_proto.h42 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
/external/u-boot/board/timll/devkit8000/
DREADME11 If ethaddr is not set, 5 Bytes of the OMAP Die ID will be used.
/external/u-boot/tools/kermit/
Dflash_param34 out setenv ethaddr \%2\13
/external/u-boot/board/buffalo/lsxl/
DREADME21 'ethaddr' and a DHCP request is sent. After a successful DHCP response is
54 setenv ethaddr 00:00:00:00:00:00
67 No ethaddr set. Use the `Rescue Mode` to set one.
/external/u-boot/board/xilinx/zynqmp/
Dzynqmp.c373 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) in zynq_board_read_rom_ethaddr() argument
382 ethaddr, 6)) in zynq_board_read_rom_ethaddr()

123