Lines Matching refs:totallen

109 		be16_to_cpu(eeprom_hdr->totallen) - (ENT_SIZE + 4)]);  in is_checksum_valid()
115 HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen) - 4); in is_checksum_valid()
142 be16_to_cpu(eeprom_hdr->totallen), in read_eeprom()
150 eeprom_hdr->totallen = cpu_to_be16(0); in read_eeprom()
184 printf(" Total Length: %d\n", be16_to_cpu(eeprom_hdr->totallen)); in show_eeprom()
189 tlv_end = HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen); in show_eeprom()
364 unsigned int totallen = be16_to_cpu(eeprom_hdr->totallen); in update_crc() local
366 if ((totallen + ENT_SIZE + 4) > TLV_TOTAL_LEN_MAX) in update_crc()
368 eeprom_index = HDR_SIZE + totallen; in update_crc()
369 eeprom_hdr->totallen = cpu_to_be16(totallen + ENT_SIZE + 4); in update_crc()
377 HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen) - 4); in update_crc()
397 eeprom_len = HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen); in prog_eeprom()
468 eeprom_hdr->totallen = cpu_to_be16(0); in do_tlv_eeprom()
560 eeprom_end = HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen); in tlvinfo_find_tlv()
591 be16_to_cpu(eeprom_hdr->totallen) - eeprom_index - in tlvinfo_delete_tlv()
593 eeprom_hdr->totallen = in tlvinfo_delete_tlv()
594 cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) - in tlvinfo_delete_tlv()
676 if ((be16_to_cpu(eeprom_hdr->totallen) + ENT_SIZE + new_tlv_len) > in tlvinfo_add_tlv()
684 eeprom_hdr->totallen = in tlvinfo_add_tlv()
685 cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) - in tlvinfo_add_tlv()
688 eeprom_index = HDR_SIZE + be16_to_cpu(eeprom_hdr->totallen); in tlvinfo_add_tlv()
695 eeprom_hdr->totallen = cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) + in tlvinfo_add_tlv()
985 be16_to_cpu(tlv_hdr->totallen), dev_num); in read_tlvinfo_tlv_eeprom()
1069 be16_to_cpu(eeprom_hdr->totallen)); in mac_read_from_eeprom()