Lines Matching refs:mac_addr
280 unsigned char mac_addr[6]; in ft_board_setup() local
288 mac_addr[0] = header.MAC1[0]; in ft_board_setup()
289 mac_addr[1] = header.MAC1[1]; in ft_board_setup()
290 mac_addr[2] = header.MAC1[2]; in ft_board_setup()
291 mac_addr[3] = header.MAC1[3]; in ft_board_setup()
292 mac_addr[4] = header.MAC1[4]; in ft_board_setup()
293 mac_addr[5] = header.MAC1[5]; in ft_board_setup()
302 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
309 mac_addr[0] = header.MAC2[0]; in ft_board_setup()
310 mac_addr[1] = header.MAC2[1]; in ft_board_setup()
311 mac_addr[2] = header.MAC2[2]; in ft_board_setup()
312 mac_addr[3] = header.MAC2[3]; in ft_board_setup()
313 mac_addr[4] = header.MAC2[4]; in ft_board_setup()
314 mac_addr[5] = header.MAC2[5]; in ft_board_setup()
322 ret = fdt_setprop(blob, node, "mac-address", &mac_addr, 6); in ft_board_setup()
433 uint8_t mac_addr[6]; in board_eth_init() local
446 mac_addr[0] = mac_hi & 0xFF; in board_eth_init()
447 mac_addr[1] = (mac_hi & 0xFF00) >> 8; in board_eth_init()
448 mac_addr[2] = (mac_hi & 0xFF0000) >> 16; in board_eth_init()
449 mac_addr[3] = (mac_hi & 0xFF000000) >> 24; in board_eth_init()
450 mac_addr[4] = mac_lo & 0xFF; in board_eth_init()
451 mac_addr[5] = (mac_lo & 0xFF00) >> 8; in board_eth_init()
458 if (is_valid_ethaddr(mac_addr)) in board_eth_init()
459 eth_env_set_enetaddr("ethaddr", mac_addr); in board_eth_init()