Lines Matching refs:mac
483 static void increment_mac(u8 *mac) in increment_mac() argument
488 mac[i] += 1; in increment_mac()
489 if (mac[i]) in increment_mac()
498 u8 mac0[4], mac1[4], mac[6]; in misc_init_r() local
519 mac[0] = mac0[1]; in misc_init_r()
520 mac[1] = mac0[2]; in misc_init_r()
521 mac[2] = mac0[3]; in misc_init_r()
522 mac[3] = mac1[1]; in misc_init_r()
523 mac[4] = mac1[2]; in misc_init_r()
524 mac[5] = mac1[3]; in misc_init_r()
526 if (is_valid_ethaddr(mac)) in misc_init_r()
527 eth_env_set_enetaddr("eth1addr", mac); in misc_init_r()
529 increment_mac(mac); in misc_init_r()
531 if (is_valid_ethaddr(mac)) in misc_init_r()
532 eth_env_set_enetaddr("eth2addr", mac); in misc_init_r()
534 increment_mac(mac); in misc_init_r()
536 if (is_valid_ethaddr(mac)) in misc_init_r()
537 eth_env_set_enetaddr("ethaddr", mac); in misc_init_r()