Lines Matching refs:mac
47 u8 mac[MAX_NUM_PORTS][6]; /* 0x42 - x MAC addresses */ member
106 u8 *p = e.mac[i]; in show_eeprom()
301 e.mac[index][i] = simple_strtoul(p, &p, 16); in set_mac_address()
385 unsigned char mac[6]; in mac_read_from_generic_eeprom() local
391 ret = i2c_read(chip, address, 1, mac, 6); in mac_read_from_generic_eeprom()
397 mac[0], in mac_read_from_generic_eeprom()
398 mac[1], in mac_read_from_generic_eeprom()
399 mac[2], in mac_read_from_generic_eeprom()
400 mac[3], in mac_read_from_generic_eeprom()
401 mac[4], in mac_read_from_generic_eeprom()
402 mac[5]); in mac_read_from_generic_eeprom()
471 memset(e.mac[8], 0xff, 6); in mac_read_from_eeprom_common()
474 if (memcmp(&e.mac[i], "\0\0\0\0\0\0", 6) && in mac_read_from_eeprom_common()
475 memcmp(&e.mac[i], "\xFF\xFF\xFF\xFF\xFF\xFF", 6)) { in mac_read_from_eeprom_common()
480 e.mac[i][0], in mac_read_from_eeprom_common()
481 e.mac[i][1], in mac_read_from_eeprom_common()
482 e.mac[i][2], in mac_read_from_eeprom_common()
483 e.mac[i][3], in mac_read_from_eeprom_common()
484 e.mac[i][4], in mac_read_from_eeprom_common()
485 e.mac[i][5]); in mac_read_from_eeprom_common()