Lines Matching full:area

131         std::cerr << "FRU data field extends past end of FRU area data\n";  in decodeFRUData()
219 * falling under other field area
222 * currentArea: Index of current area offset to be compared against all area
224 * len: Length of current area space and it is a multiple of 8 bytes
242 std::cerr << "Error: Fru area is out of range\n"; in verifyOffset()
249 std::cerr << "Error: Fru area index is out of range\n"; in verifyOffset()
257 for (fruAreas area = fruAreas::fruAreaInternal; in verifyOffset() local
258 area <= fruAreas::fruAreaMultirecord; ++area) in verifyOffset()
261 if (area == currentArea) in verifyOffset()
266 unsigned int areaIndex = getHeaderAreaFieldOffset(area); in verifyOffset()
269 std::cerr << "Error: Fru area index is out of range\n"; in verifyOffset()
274 // if areaOffset is 0 means this area is not available so skip in verifyOffset()
284 << " offset is overlapping with " << getFruAreaName(area) in verifyOffset()
319 /* Verify area offset */ in parseMultirecordUUID()
388 for (fruAreas area = fruAreas::fruAreaChassis; in formatIPMIFRU() local
389 area <= fruAreas::fruAreaProduct; ++area) in formatIPMIFRU()
391 size_t offset = *(fruBytes.begin() + getHeaderAreaFieldOffset(area)); in formatIPMIFRU()
412 /* Verify other area offset for overlap with current area by passing in formatIPMIFRU()
413 * length of current area offset pointed by *fruBytesIter in formatIPMIFRU()
415 if (!verifyOffset(fruBytes, area, *fruBytesIter)) in formatIPMIFRU()
431 ss << "Checksum error in FRU area " << getFruAreaName(area) << "\n"; in formatIPMIFRU()
440 /* Set default language flag to true as Chassis Fru area are always in formatIPMIFRU()
445 switch (area) in formatIPMIFRU()
499 std::cerr << "Internal error: unexpected FRU area index: " in formatIPMIFRU()
500 << static_cast<int>(area) << " \n"; in formatIPMIFRU()
515 name = std::string(getFruAreaName(area)) + "_" + in formatIPMIFRU()
521 std::string(getFruAreaName(area)) + "_" + in formatIPMIFRU()
556 << "Mandatory fields absent in FRU area " in formatIPMIFRU()
557 << getFruAreaName(area) << " after " << name << "\n"; in formatIPMIFRU()
567 std::cerr << "Non-zero byte after EndOfFields in FRU area " in formatIPMIFRU()
568 << getFruAreaName(area) << "\n"; in formatIPMIFRU()
581 // Calculate new checksum for fru info area
595 // Update new fru area length &
597 // Return the offset of the area checksum byte
759 for (fruAreas area = fruAreas::fruAreaInternal; in readFRUContents() local
760 area <= fruAreas::fruAreaMultirecord; ++area) in readFRUContents()
763 unsigned int areaOffset = device[getHeaderAreaFieldOffset(area)]; in readFRUContents()
772 * 0 if that area is not present in readFRUContents()
776 std::cerr << "Fru area offsets are not in required order as per " in readFRUContents()
782 // MultiRecords are different. area is not tracking section, it's in readFRUContents()
784 if (area == fruAreas::fruAreaMultirecord) in readFRUContents()
807 // device[area count] is the index to the last area because the 0th in readFRUContents()
813 // the multi-area record header is 5 bytes long. in readFRUContents()
820 // In multi-area, the area offset points to the 0th record, each in readFRUContents()
871 unsigned int getHeaderAreaFieldOffset(fruAreas area) in getHeaderAreaFieldOffset() argument
873 return static_cast<unsigned int>(area) + 1; in getHeaderAreaFieldOffset()
893 // Iterate FruArea Names and find start and size of the fru area that contains
911 std::cerr << "Can't parse area name for property " << propertyName in findFruAreaLocationAndField()
930 // i.e. version, area length and language code in findFruAreaLocationAndField()
940 std::cerr << "FRU Area for " << propertyName << " not present \n"; in findFruAreaLocationAndField()
966 std::cerr << "PropertyName doesn't exist in FRU Area Vectors: " in findFruAreaLocationAndField()
1000 // Copy the FRU Area fields and properties into restFRUAreaFieldsData vector.