| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | cpsw-common.c | 20 int slave, u8 *mac_addr) in davinci_emac_3517_get_macid() argument 49 mac_addr[0] = (macid_msb >> 16) & 0xff; in davinci_emac_3517_get_macid() 50 mac_addr[1] = (macid_msb >> 8) & 0xff; in davinci_emac_3517_get_macid() 51 mac_addr[2] = macid_msb & 0xff; in davinci_emac_3517_get_macid() 52 mac_addr[3] = (macid_lsb >> 16) & 0xff; in davinci_emac_3517_get_macid() 53 mac_addr[4] = (macid_lsb >> 8) & 0xff; in davinci_emac_3517_get_macid() 54 mac_addr[5] = macid_lsb & 0xff; in davinci_emac_3517_get_macid() 60 u8 *mac_addr) in cpsw_am33xx_cm_get_macid() argument 89 mac_addr[5] = (macid_lo >> 8) & 0xff; in cpsw_am33xx_cm_get_macid() 90 mac_addr[4] = macid_lo & 0xff; in cpsw_am33xx_cm_get_macid() [all …]
|
| /rk3399_rockchip-uboot/board/grinn/chiliboard/ |
| H A D | board.c | 116 uint8_t mac_addr[6]; in board_late_init() local 122 mac_addr[0] = mac_hi & 0xFF; in board_late_init() 123 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init() 124 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init() 125 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init() 126 mac_addr[4] = mac_lo & 0xFF; in board_late_init() 127 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init() 132 if (is_valid_ethaddr(mac_addr)) in board_late_init() 133 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init() 138 mac_addr[0] = mac_hi & 0xFF; in board_late_init() [all …]
|
| /rk3399_rockchip-uboot/board/tcl/sl50/ |
| H A D | board.c | 310 uint8_t mac_addr[6]; in board_eth_init() local 316 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 317 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 318 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 319 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 320 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 321 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 328 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 329 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init() 336 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/board/vscom/baltos/ |
| H A D | board.c | 281 unsigned char mac_addr[6]; in ft_board_setup() local 289 mac_addr[0] = header.MAC1[0]; in ft_board_setup() 290 mac_addr[1] = header.MAC1[1]; in ft_board_setup() 291 mac_addr[2] = header.MAC1[2]; in ft_board_setup() 292 mac_addr[3] = header.MAC1[3]; in ft_board_setup() 293 mac_addr[4] = header.MAC1[4]; in ft_board_setup() 294 mac_addr[5] = header.MAC1[5]; in ft_board_setup() 303 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup() 310 mac_addr[0] = header.MAC2[0]; in ft_board_setup() 311 mac_addr[1] = header.MAC2[1]; in ft_board_setup() [all …]
|
| /rk3399_rockchip-uboot/board/ti/ti814x/ |
| H A D | evm.c | 166 uint8_t mac_addr[6]; in board_eth_init() local 169 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 174 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 175 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 176 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 177 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 178 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 179 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 181 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 182 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/ti/ti816x/ |
| H A D | evm.c | 37 uint8_t mac_addr[6]; in board_eth_init() local 41 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 46 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 47 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 48 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 49 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 50 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 51 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 53 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 54 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/silica/pengwyn/ |
| H A D | board.c | 171 uint8_t mac_addr[6]; in board_eth_init() local 174 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 179 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 180 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 181 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 182 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 183 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 184 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 186 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 187 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/drivers/net/fm/ |
| H A D | tgec.c | 70 static void tgec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in tgec_set_mac_addr() argument 79 mac_addr0 = (mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in tgec_set_mac_addr() 80 (mac_addr[1] << 8) | (mac_addr[0]); in tgec_set_mac_addr() 83 mac_addr1 = ((mac_addr[5] << 8) | mac_addr[4]) & 0x0000ffff; in tgec_set_mac_addr()
|
| H A D | memac.c | 51 static void memac_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in memac_set_mac_addr() argument 60 mac_addr0 = (mac_addr[3] << 24) | (mac_addr[2] << 16) | \ in memac_set_mac_addr() 61 (mac_addr[1] << 8) | (mac_addr[0]); in memac_set_mac_addr() 64 mac_addr1 = ((mac_addr[5] << 8) | mac_addr[4]) & 0x0000ffff; in memac_set_mac_addr()
|
| H A D | dtsec.c | 93 static void dtsec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in dtsec_set_mac_addr() argument 102 mac_addr1 = (mac_addr[5] << 24) | (mac_addr[4] << 16) | \ in dtsec_set_mac_addr() 103 (mac_addr[3] << 8) | (mac_addr[2]); in dtsec_set_mac_addr() 106 mac_addr2 = ((mac_addr[1] << 24) | (mac_addr[0] << 16)) & 0xffff0000; in dtsec_set_mac_addr()
|
| /rk3399_rockchip-uboot/board/amlogic/odroid-c2/ |
| H A D | odroid-c2.c | 26 u8 mac_addr[EFUSE_MAC_SIZE]; in misc_init_r() local 47 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in misc_init_r() 49 mac_addr, EFUSE_MAC_SIZE); in misc_init_r() 50 if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr)) in misc_init_r() 51 eth_env_set_enetaddr("ethaddr", mac_addr); in misc_init_r()
|
| /rk3399_rockchip-uboot/board/phytec/pcm051/ |
| H A D | board.c | 216 uint8_t mac_addr[6]; in board_eth_init() local 219 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 224 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 225 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 226 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 227 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 228 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 229 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 231 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 232 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/gumstix/pepper/ |
| H A D | board.c | 238 uint8_t mac_addr[6]; in board_eth_init() local 242 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 246 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 247 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 248 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 249 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 250 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 251 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 252 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 253 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/isee/igep003x/ |
| H A D | board.c | 264 uint8_t mac_addr[6]; in board_eth_init() local 267 if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { in board_eth_init() 271 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 272 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 273 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 274 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 275 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 276 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 277 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 278 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()
|
| /rk3399_rockchip-uboot/board/birdland/bav335x/ |
| H A D | board.c | 371 uint8_t mac_addr[6]; in board_eth_init() local 377 mac_addr[0] = 0; in board_eth_init() 378 mac_addr[1] = 0x20; in board_eth_init() 379 mac_addr[2] = 0x18; in board_eth_init() 380 mac_addr[3] = 0x1C; in board_eth_init() 381 mac_addr[4] = 0x00; in board_eth_init() 382 mac_addr[5] = 0x01; in board_eth_init() 387 is_valid_ethaddr((const u8 *)&header.mac_addr[0][0])) { in board_eth_init() 388 memcpy(mac_addr, (const void *)&header.mac_addr[0][0], 6); in board_eth_init() 398 if (is_valid_ethaddr(mac_addr)) in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/board/ti/am335x/ |
| H A D | board.c | 703 uint8_t mac_addr[6]; in board_late_init() local 741 mac_addr[0] = mac_hi & 0xFF; in board_late_init() 742 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_late_init() 743 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_late_init() 744 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_late_init() 745 mac_addr[4] = mac_lo & 0xFF; in board_late_init() 746 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_late_init() 751 if (is_valid_ethaddr(mac_addr)) in board_late_init() 752 eth_env_set_enetaddr("ethaddr", mac_addr); in board_late_init() 757 mac_addr[0] = mac_hi & 0xFF; in board_late_init() [all …]
|
| /rk3399_rockchip-uboot/board/bosch/shc/ |
| H A D | board.c | 462 if (is_valid_ethaddr(header.mac_addr)) in board_late_init() 463 eth_env_set_enetaddr("ethaddr", header.mac_addr); in board_late_init() 533 uint8_t mac_addr[6]; in board_eth_init() local 539 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 540 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 541 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 542 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 543 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 544 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 551 if (is_valid_ethaddr(mac_addr)) in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/include/fsl-mc/ |
| H A D | fsl_dpni.h | 121 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, cfg->mac_addr[5]); \ 122 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, cfg->mac_addr[4]); \ 123 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, cfg->mac_addr[3]); \ 124 MC_CMD_OP(cmd, 0, 40, 8, uint8_t, cfg->mac_addr[2]); \ 125 MC_CMD_OP(cmd, 0, 48, 8, uint8_t, cfg->mac_addr[1]); \ 126 MC_CMD_OP(cmd, 0, 56, 8, uint8_t, cfg->mac_addr[0]); \ 318 #define DPNI_CMD_SET_PRIMARY_MAC_ADDR(cmd, mac_addr) \ argument 320 MC_CMD_OP(cmd, 0, 16, 8, uint8_t, mac_addr[5]); \ 321 MC_CMD_OP(cmd, 0, 24, 8, uint8_t, mac_addr[4]); \ 322 MC_CMD_OP(cmd, 0, 32, 8, uint8_t, mac_addr[3]); \ [all …]
|
| /rk3399_rockchip-uboot/board/siemens/common/ |
| H A D | factoryset.c | 271 uint8_t mac_addr[6]; in factoryset_mac_env_set() local 275 memcpy(mac_addr, factory_dat.mac, 6); in factoryset_mac_env_set() 283 mac_addr[0] = mac_hi & 0xFF; in factoryset_mac_env_set() 284 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in factoryset_mac_env_set() 285 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in factoryset_mac_env_set() 286 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in factoryset_mac_env_set() 287 mac_addr[4] = mac_lo & 0xFF; in factoryset_mac_env_set() 288 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in factoryset_mac_env_set() 289 if (!is_valid_ethaddr(mac_addr)) { in factoryset_mac_env_set() 295 eth_env_set_enetaddr("ethaddr", mac_addr); in factoryset_mac_env_set()
|
| /rk3399_rockchip-uboot/board/ti/am43xx/ |
| H A D | board.c | 781 uint8_t mac_addr[6]; in board_eth_init() local 787 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() 788 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 789 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 790 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init() 791 mac_addr[4] = mac_lo & 0xFF; in board_eth_init() 792 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 796 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 797 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init() 802 mac_addr[0] = mac_hi & 0xFF; in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/board/ti/am57xx/ |
| H A D | board.c | 918 uint8_t mac_addr[6]; in board_eth_init() local 929 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 930 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 931 mac_addr[2] = mac_hi & 0xFF; in board_eth_init() 932 mac_addr[3] = (mac_lo & 0xFF0000) >> 16; in board_eth_init() 933 mac_addr[4] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 934 mac_addr[5] = mac_lo & 0xFF; in board_eth_init() 939 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 940 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init() 945 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/board/rockchip/evb_rk3399/ |
| H A D | evb-rk3399.c | 84 u8 mac_addr[6]; in setup_macaddr() local 102 memcpy(mac_addr, hash, 6); in setup_macaddr() 105 mac_addr[0] &= 0xfe; /* clear multicast bit */ in setup_macaddr() 106 mac_addr[0] |= 0x02; /* set local assignment bit (IEEE802) */ in setup_macaddr() 107 eth_env_set_enetaddr("ethaddr", mac_addr); in setup_macaddr()
|
| /rk3399_rockchip-uboot/board/ti/common/ |
| H A D | board_detect.c | 240 memcpy(ep->mac_addr, am_ep.mac_addr, in ti_i2c_eeprom_am_get() 339 u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]) in board_ti_get_eth_mac_addr() 349 memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN); in board_ti_get_eth_mac_addr() 353 memset(mac_addr, 0, TI_EEPROM_HDR_ETH_ALEN); in board_ti_get_eth_mac_addr() 424 uint8_t mac_addr[6]; in board_ti_set_ethaddr() local 452 u64_to_mac(mac1 + i, mac_addr); in board_ti_set_ethaddr() 453 if (is_valid_ethaddr(mac_addr)) { in board_ti_set_ethaddr() 455 mac_addr); in board_ti_set_ethaddr()
|
| H A D | board_detect.h | 44 char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN]; member 95 char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN]; member 172 void board_ti_get_eth_mac_addr(int index, u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]);
|
| /rk3399_rockchip-uboot/board/ti/dra7xx/ |
| H A D | evm.c | 882 uint8_t mac_addr[6]; in board_eth_init() local 889 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() 890 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init() 891 mac_addr[2] = mac_hi & 0xFF; in board_eth_init() 892 mac_addr[3] = (mac_lo & 0xFF0000) >> 16; in board_eth_init() 893 mac_addr[4] = (mac_lo & 0xFF00) >> 8; in board_eth_init() 894 mac_addr[5] = mac_lo & 0xFF; in board_eth_init() 899 if (is_valid_ethaddr(mac_addr)) in board_eth_init() 900 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init() 905 mac_addr[0] = (mac_hi & 0xFF0000) >> 16; in board_eth_init() [all …]
|