Lines Matching +full:lower +full:- +full:case

9 #include <phosphor-logging/lg2.hpp>
69 auto systemType = platformConfigHandler->getPlatformName(); in checkSystemTypeAvailability()
78 platformConfigHandler->registerSystemTypeCallback( in checkSystemTypeAvailability()
122 case PLDM_BIOS_STRING_TABLE: in getBIOSTable()
125 case PLDM_BIOS_ATTR_TABLE: in getBIOSTable()
128 case PLDM_BIOS_ATTR_VAL_TABLE: in getBIOSTable()
208 stringTable->data(), stringTable->size(), attrNameHandle); in checkAttributeTable()
219 case PLDM_BIOS_ENUMERATION: in checkAttributeTable()
220 case PLDM_BIOS_ENUMERATION_READ_ONLY: in checkAttributeTable()
238 stringTable->data(), stringTable->size(), pvHandls[i]); in checkAttributeTable()
248 stringTable->data(), stringTable->size(), in checkAttributeTable()
257 case PLDM_BIOS_INTEGER: in checkAttributeTable()
258 case PLDM_BIOS_INTEGER_READ_ONLY: in checkAttributeTable()
259 case PLDM_BIOS_STRING: in checkAttributeTable()
260 case PLDM_BIOS_STRING_READ_ONLY: in checkAttributeTable()
261 case PLDM_BIOS_PASSWORD: in checkAttributeTable()
262 case PLDM_BIOS_PASSWORD_READ_ONLY: in checkAttributeTable()
302 attrTable->data(), attrTable->size(), attrValueHandle); in checkAttributeValueTable()
313 stringTable->data(), stringTable->size(), attrNameHandle); in checkAttributeValueTable()
330 biosAttributes[attrHandle % biosAttributes.size()]->readOnly; in checkAttributeValueTable()
332 biosAttributes[attrHandle % biosAttributes.size()]->helpText; in checkAttributeValueTable()
334 biosAttributes[attrHandle % biosAttributes.size()]->displayName; in checkAttributeValueTable()
337 ->valueDisplayNamesMap; in checkAttributeValueTable()
342 case PLDM_BIOS_ENUMERATION: in checkAttributeValueTable()
343 case PLDM_BIOS_ENUMERATION_READ_ONLY: in checkAttributeValueTable()
353 [](uint16_t handle, const Table& table) -> std::string { in checkAttributeValueTable()
422 case PLDM_BIOS_INTEGER: in checkAttributeValueTable()
423 case PLDM_BIOS_INTEGER_READ_ONLY: in checkAttributeValueTable()
431 uint64_t lower, upper, def; in checkAttributeValueTable() local
434 attrEntry, &lower, &upper, &scalar, &def); in checkAttributeValueTable()
438 static_cast<int64_t>(lower), attributeName)); in checkAttributeValueTable()
450 case PLDM_BIOS_STRING: in checkAttributeValueTable()
451 case PLDM_BIOS_STRING_READ_ONLY: in checkAttributeValueTable()
483 case PLDM_BIOS_PASSWORD: in checkAttributeValueTable()
484 case PLDM_BIOS_PASSWORD_READ_ONLY: in checkAttributeValueTable()
519 auto& bus = dbusHandler->getBus(); in updateBaseBIOSTableProperty()
521 dbusHandler->getService(biosConfigPath, biosConfigInterface); in updateBaseBIOSTableProperty()
530 error("Failed to update BaseBIOSTable property, error - {ERROR}", in updateBaseBIOSTableProperty()
571 auto& bus = dbusHandler->getBus(); in buildAndStoreAttrTables()
572 auto service = dbusHandler->getService(biosObjPath, biosInterface); in buildAndStoreAttrTables()
584 // bios-settings-manager in sync in buildAndStoreAttrTables()
587 error("Failed to read BaseBIOSTable property, error - {ERROR}", "ERROR", in buildAndStoreAttrTables()
597 auto iter = biosTable.find(attr->name); in buildAndStoreAttrTables()
600 attr->constructEntry(biosStringTable, attrTable, attrValueTable, in buildAndStoreAttrTables()
605 attr->constructEntry( in buildAndStoreAttrTables()
608 iter->second)); in buildAndStoreAttrTables()
614 "Failed to construct table entry for attribute '{ATTRIBUTE}', error - {ERROR}", in buildAndStoreAttrTables()
615 "ATTRIBUTE", attr->name, "ERROR", e); in buildAndStoreAttrTables()
699 "Failed to parse JSON config file at path '{PATH}', error - {ERROR}", in load()
706 error("Failed to parse JSON config file '{PATH}', error - {ERROR}", in load()
729 attrTable->data(), attrTable->size(), handle); in displayStringHandle()
749 stringTable->data(), stringTable->size(), pvHandls[index]); in displayStringHandle()
772 case PLDM_BIOS_ENUMERATION: in traceBIOSUpdate()
773 case PLDM_BIOS_ENUMERATION_READ_ONLY: in traceBIOSUpdate()
792 case PLDM_BIOS_INTEGER: in traceBIOSUpdate()
793 case PLDM_BIOS_INTEGER_READ_ONLY: in traceBIOSUpdate()
803 case PLDM_BIOS_STRING: in traceBIOSUpdate()
804 case PLDM_BIOS_STRING_READ_ONLY: in traceBIOSUpdate()
829 case PLDM_BIOS_ENUMERATION: in checkAttrValueToUpdate()
830 case PLDM_BIOS_ENUMERATION_READ_ONLY: in checkAttrValueToUpdate()
849 case PLDM_BIOS_INTEGER: in checkAttrValueToUpdate()
850 case PLDM_BIOS_INTEGER_READ_ONLY: in checkAttrValueToUpdate()
854 auto [lower, upper, scalar, in checkAttrValueToUpdate()
857 if (value < lower || value > upper) in checkAttrValueToUpdate()
860 …RIBUTE_VALUE}' encountered for Integer type BIOS attribute for the lower bound '{LOWER}', the uppe… in checkAttrValueToUpdate()
861 "ATTRIBUTE_VALUE", value, "LOWER", lower, "UPPER", upper, in checkAttrValueToUpdate()
867 case PLDM_BIOS_STRING: in checkAttrValueToUpdate()
868 case PLDM_BIOS_STRING_READ_ONLY: in checkAttrValueToUpdate()
935 [&attrName](const auto& attr) { return attr->name == attrName; }); in setAttrValue()
943 (*iter)->setAttrValueOnDbus(attrValueEntry, attrEntry, in setAttrValue()
949 error("Set attribute value error - {ERROR}", "ERROR", e); in setAttrValue()
970 error("Remove the tables error - {ERROR}", "ERROR", e); in removeTables()
977 const auto& dBusMap = biosAttributes[biosAttrIndex]->getDBusMap(); in processBiosAttrChangeNotification()
978 const auto& propertyName = dBusMap->propertyName; in processBiosAttrChangeNotification()
979 const auto& attrName = biosAttributes[biosAttrIndex]->name; in processBiosAttrChangeNotification()
987 PropertyValue newPropVal = it->second; in processBiosAttrChangeNotification()
1003 "Missing handle for attribute '{ATTRIBUTE}' in BIOS String Table, error - '{ERROR}'", in processBiosAttrChangeNotification()
1036 auto rc = biosAttributes[biosAttrIndex]->updateAttrVal( in processBiosAttrChangeNotification()
1068 attrTable->data(), attrTable->size()); in findAttrHandle()
1072 attrTable->data(), attrTable->size())) in findAttrHandle()
1096 return attr->name == attributeName; in constructPendingAttribute()
1126 entry->attr_handle = htole16(handler); in constructPendingAttribute()
1134 (*iter)->generateAttributeEntry(attributevalue, attrValueEntry); in constructPendingAttribute()
1179 std::get<PendingAttributes>(valPropMap->second); in listenPendingAttributes()
1180 this->constructPendingAttribute(pendingAttributes); in listenPendingAttributes()