Lines Matching refs:mac
45 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - x MAC addresses */ member
104 u8 *p = e.mac[i]; in show_eeprom()
299 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address()
383 unsigned char mac[6]; in mac_read_from_generic_eeprom() local
389 ret = i2c_read(chip, address, 1, mac, 6); in mac_read_from_generic_eeprom()
395 mac[0], in mac_read_from_generic_eeprom()
396 mac[1], in mac_read_from_generic_eeprom()
397 mac[2], in mac_read_from_generic_eeprom()
398 mac[3], in mac_read_from_generic_eeprom()
399 mac[4], in mac_read_from_generic_eeprom()
400 mac[5]); in mac_read_from_generic_eeprom()
469 memset(e.mac[8], 0xff, 6); in mac_read_from_eeprom_common()
472 if (memcmp(&e.mac[i], "\0\0\0\0\0\0", 6) && in mac_read_from_eeprom_common()
473 memcmp(&e.mac[i], "\xFF\xFF\xFF\xFF\xFF\xFF", 6)) { in mac_read_from_eeprom_common()
478 e.mac[i][0], in mac_read_from_eeprom_common()
479 e.mac[i][1], in mac_read_from_eeprom_common()
480 e.mac[i][2], in mac_read_from_eeprom_common()
481 e.mac[i][3], in mac_read_from_eeprom_common()
482 e.mac[i][4], in mac_read_from_eeprom_common()
483 e.mac[i][5]); in mac_read_from_eeprom_common()