Lines Matching full:pdr

17 using namespace pldm::pdr;
28 pldm::pdr::EntityType entityType, EntityInstance entityInstance, in getOemStateSensorReadingsHandler()
189 pldm_state_effecter_pdr* pdr = in buildAllCodeUpdateEffecterPDR() local
191 if (!pdr) in buildAllCodeUpdateEffecterPDR()
193 error("Failed to get record by PDR type, error - {ERROR}", "ERROR", in buildAllCodeUpdateEffecterPDR()
198 pdr->hdr.record_handle = 0; in buildAllCodeUpdateEffecterPDR()
199 pdr->hdr.version = 1; in buildAllCodeUpdateEffecterPDR()
200 pdr->hdr.type = PLDM_STATE_EFFECTER_PDR; in buildAllCodeUpdateEffecterPDR()
201 pdr->hdr.record_change_num = 0; in buildAllCodeUpdateEffecterPDR()
202 pdr->hdr.length = sizeof(pldm_state_effecter_pdr) - sizeof(pldm_pdr_hdr); in buildAllCodeUpdateEffecterPDR()
203 pdr->terminus_handle = TERMINUS_HANDLE; in buildAllCodeUpdateEffecterPDR()
204 pdr->effecter_id = platformHandler->getNextEffecterId(); in buildAllCodeUpdateEffecterPDR()
205 pdr->entity_type = entityType; in buildAllCodeUpdateEffecterPDR()
206 pdr->entity_instance = entityInstance; in buildAllCodeUpdateEffecterPDR()
207 pdr->container_id = 1; in buildAllCodeUpdateEffecterPDR()
208 pdr->effecter_semantic_id = 0; in buildAllCodeUpdateEffecterPDR()
209 pdr->effecter_init = PLDM_NO_INIT; in buildAllCodeUpdateEffecterPDR()
210 pdr->has_description_pdr = false; in buildAllCodeUpdateEffecterPDR()
211 pdr->composite_effecter_count = 1; in buildAllCodeUpdateEffecterPDR()
213 auto* possibleStatesPtr = pdr->possible_states; in buildAllCodeUpdateEffecterPDR()
241 pldm_state_effecter_pdr* pdr = in buildAllSlotEnableEffecterPDR() local
243 if (!pdr) in buildAllSlotEnableEffecterPDR()
245 error("Failed to get record by PDR type, ERROR:{ERR}", "ERR", lg2::hex, in buildAllSlotEnableEffecterPDR()
253 pdr->hdr.record_handle = 0; in buildAllSlotEnableEffecterPDR()
254 pdr->hdr.version = 1; in buildAllSlotEnableEffecterPDR()
255 pdr->hdr.type = PLDM_STATE_EFFECTER_PDR; in buildAllSlotEnableEffecterPDR()
256 pdr->hdr.record_change_num = 0; in buildAllSlotEnableEffecterPDR()
257 pdr->hdr.length = in buildAllSlotEnableEffecterPDR()
259 pdr->terminus_handle = TERMINUS_HANDLE; in buildAllSlotEnableEffecterPDR()
260 pdr->effecter_id = platformHandler->getNextEffecterId(); in buildAllSlotEnableEffecterPDR()
264 pdr->entity_type = associatedEntityMap.at(entity_path).entity_type; in buildAllSlotEnableEffecterPDR()
265 pdr->entity_instance = in buildAllSlotEnableEffecterPDR()
267 pdr->container_id = in buildAllSlotEnableEffecterPDR()
269 platformHandler->effecterIdToDbusMap[pdr->effecter_id] = in buildAllSlotEnableEffecterPDR()
274 // the slots are not present, dont create the PDR in buildAllSlotEnableEffecterPDR()
277 pdr->effecter_semantic_id = 0; in buildAllSlotEnableEffecterPDR()
278 pdr->effecter_init = PLDM_NO_INIT; in buildAllSlotEnableEffecterPDR()
279 pdr->has_description_pdr = false; in buildAllSlotEnableEffecterPDR()
280 pdr->composite_effecter_count = 1; in buildAllSlotEnableEffecterPDR()
282 auto* possibleStatesPtr = pdr->possible_states; in buildAllSlotEnableEffecterPDR()
306 pldm_state_sensor_pdr* pdr = in buildAllCodeUpdateSensorPDR() local
308 if (!pdr) in buildAllCodeUpdateSensorPDR()
310 error("Failed to get record by PDR type, error - {ERROR}", "ERROR", in buildAllCodeUpdateSensorPDR()
314 pdr->hdr.record_handle = 0; in buildAllCodeUpdateSensorPDR()
315 pdr->hdr.version = 1; in buildAllCodeUpdateSensorPDR()
316 pdr->hdr.type = PLDM_STATE_SENSOR_PDR; in buildAllCodeUpdateSensorPDR()
317 pdr->hdr.record_change_num = 0; in buildAllCodeUpdateSensorPDR()
318 pdr->hdr.length = sizeof(pldm_state_sensor_pdr) - sizeof(pldm_pdr_hdr); in buildAllCodeUpdateSensorPDR()
319 pdr->terminus_handle = TERMINUS_HANDLE; in buildAllCodeUpdateSensorPDR()
320 pdr->sensor_id = platformHandler->getNextSensorId(); in buildAllCodeUpdateSensorPDR()
321 pdr->entity_type = entityType; in buildAllCodeUpdateSensorPDR()
322 pdr->entity_instance = entityInstance; in buildAllCodeUpdateSensorPDR()
323 pdr->container_id = 1; in buildAllCodeUpdateSensorPDR()
324 pdr->sensor_init = PLDM_NO_INIT; in buildAllCodeUpdateSensorPDR()
325 pdr->sensor_auxiliary_names_pdr = false; in buildAllCodeUpdateSensorPDR()
326 pdr->composite_sensor_count = 1; in buildAllCodeUpdateSensorPDR()
328 auto* possibleStatesPtr = pdr->possible_states; in buildAllCodeUpdateSensorPDR()
355 pldm_state_sensor_pdr* pdr = in buildAllSlotEnableSensorPDR() local
357 if (!pdr) in buildAllSlotEnableSensorPDR()
359 error("Failed to get record by PDR type, ERROR:{ERR}", "ERR", lg2::hex, in buildAllSlotEnableSensorPDR()
366 pdr->hdr.record_handle = 0; in buildAllSlotEnableSensorPDR()
367 pdr->hdr.version = 1; in buildAllSlotEnableSensorPDR()
368 pdr->hdr.type = PLDM_STATE_SENSOR_PDR; in buildAllSlotEnableSensorPDR()
369 pdr->hdr.record_change_num = 0; in buildAllSlotEnableSensorPDR()
370 pdr->hdr.length = sizeof(pldm_state_sensor_pdr) - sizeof(pldm_pdr_hdr); in buildAllSlotEnableSensorPDR()
371 pdr->terminus_handle = TERMINUS_HANDLE; in buildAllSlotEnableSensorPDR()
372 pdr->sensor_id = platformHandler->getNextSensorId(); in buildAllSlotEnableSensorPDR()
375 pdr->entity_type = associatedEntityMap.at(entity_path).entity_type; in buildAllSlotEnableSensorPDR()
376 pdr->entity_instance = in buildAllSlotEnableSensorPDR()
378 pdr->container_id = in buildAllSlotEnableSensorPDR()
383 // the slots are not present, dont create the PDR in buildAllSlotEnableSensorPDR()
387 pdr->sensor_init = PLDM_NO_INIT; in buildAllSlotEnableSensorPDR()
388 pdr->sensor_auxiliary_names_pdr = false; in buildAllSlotEnableSensorPDR()
389 pdr->composite_sensor_count = 1; in buildAllSlotEnableSensorPDR()
391 auto* possibleStatesPtr = pdr->possible_states; in buildAllSlotEnableSensorPDR()
779 error("GetPDR : PLDM stack is not ready for PDR exchange"); in checkBMCState()