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()
323 /* Verify area offset */ in parseMultirecordUUID()
380 DecodeState& state, bool isLangEng, const fruAreas& area, in decodeField() argument
390 name = std::string(getFruAreaName(area)) + "_" + in decodeField()
396 name = std::string(getFruAreaName(area)) + "_" + fruCustomFieldName + in decodeField()
438 std::cerr << "Mandatory fields absent in FRU area " in decodeField()
439 << getFruAreaName(area) << " after " << name << "\n"; in decodeField()
462 for (fruAreas area = fruAreas::fruAreaChassis; in formatIPMIFRU() local
463 area <= fruAreas::fruAreaProduct; ++area) in formatIPMIFRU()
465 size_t offset = *(fruBytes.begin() + getHeaderAreaFieldOffset(area)); in formatIPMIFRU()
486 /* Verify other area offset for overlap with current area by passing in formatIPMIFRU()
487 * length of current area offset pointed by *fruBytesIter in formatIPMIFRU()
489 if (!verifyOffset(fruBytes, area, *fruBytesIter)) in formatIPMIFRU()
505 ss << "Checksum error in FRU area " << getFruAreaName(area) << "\n"; in formatIPMIFRU()
514 /* Set default language flag to true as Chassis Fru area are always in formatIPMIFRU()
519 switch (area) in formatIPMIFRU()
573 std::cerr << "Internal error: unexpected FRU area index: " in formatIPMIFRU()
574 << static_cast<int>(area) << " \n"; in formatIPMIFRU()
584 state, isLangEng, area, result); in formatIPMIFRU()
599 std::cerr << "Non-zero byte after EndOfFields in FRU area " in formatIPMIFRU()
600 << getFruAreaName(area) << "\n"; in formatIPMIFRU()
613 // Calculate new checksum for fru info area
627 // Update new fru area length &
629 // Return the offset of the area checksum byte
791 for (fruAreas area = fruAreas::fruAreaInternal; in readFRUContents() local
792 area <= fruAreas::fruAreaMultirecord; ++area) in readFRUContents()
795 unsigned int areaOffset = device[getHeaderAreaFieldOffset(area)]; in readFRUContents()
804 * 0 if that area is not present in readFRUContents()
808 std::cerr << "Fru area offsets are not in required order as per " in readFRUContents()
814 // MultiRecords are different. area is not tracking section, it's in readFRUContents()
816 if (area == fruAreas::fruAreaMultirecord) in readFRUContents()
839 // device[area count] is the index to the last area because the 0th in readFRUContents()
845 // the multi-area record header is 5 bytes long. in readFRUContents()
852 // In multi-area, the area offset points to the 0th record, each in readFRUContents()
903 unsigned int getHeaderAreaFieldOffset(fruAreas area) in getHeaderAreaFieldOffset() argument
905 return static_cast<unsigned int>(area) + 1; in getHeaderAreaFieldOffset()
925 // Iterate FruArea Names and find start and size of the fru area that contains
943 std::cerr << "Can't parse area name for property " << propertyName in findFruAreaLocationAndField()
962 // i.e. version, area length and language code in findFruAreaLocationAndField()
972 std::cerr << "FRU Area for " << propertyName << " not present \n"; in findFruAreaLocationAndField()
998 std::cerr << "PropertyName doesn't exist in FRU Area Vectors: " in findFruAreaLocationAndField()
1032 // Copy the FRU Area fields and properties into restFRUAreaFieldsData vector.