Lines Matching refs:mac_addr
275 unsigned char mac_addr[6]; in ft_board_setup() local
283 mac_addr[0] = header.MAC1[0]; in ft_board_setup()
284 mac_addr[1] = header.MAC1[1]; in ft_board_setup()
285 mac_addr[2] = header.MAC1[2]; in ft_board_setup()
286 mac_addr[3] = header.MAC1[3]; in ft_board_setup()
287 mac_addr[4] = header.MAC1[4]; in ft_board_setup()
288 mac_addr[5] = header.MAC1[5]; in ft_board_setup()
297 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
304 mac_addr[0] = header.MAC2[0]; in ft_board_setup()
305 mac_addr[1] = header.MAC2[1]; in ft_board_setup()
306 mac_addr[2] = header.MAC2[2]; in ft_board_setup()
307 mac_addr[3] = header.MAC2[3]; in ft_board_setup()
308 mac_addr[4] = header.MAC2[4]; in ft_board_setup()
309 mac_addr[5] = header.MAC2[5]; in ft_board_setup()
317 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
428 uint8_t mac_addr[6]; in board_eth_init() local
441 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
442 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
443 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
444 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
445 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
446 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
453 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
454 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()