Lines Matching full:id

73     if (enqueueRequired(pel.id()))  in addPELToQueue()
75 _pelQueue.push_back(pel.id()); in addPELToQueue()
82 bool HostNotifier::enqueueRequired(uint32_t id) const in enqueueRequired()
85 Repository::LogID i{Repository::LogID::Pel{id}}; in enqueueRequired()
115 lg2::error("Host Enqueue: Unable to find PEL ID {ID} in repository", in enqueueRequired()
116 "ID", lg2::hex, id); in enqueueRequired()
123 bool HostNotifier::notifyRequired(uint32_t id) const in notifyRequired()
126 Repository::LogID i{Repository::LogID::Pel{id}}; in notifyRequired()
160 if (!enqueueRequired(pel.id())) in newLogCallback()
165 lg2::debug("New PEL added to queue, PEL ID = {ID}", "ID", lg2::hex, in newLogCallback()
166 pel.id()); in newLogCallback()
168 _pelQueue.push_back(pel.id()); in newLogCallback()
194 void HostNotifier::deleteLogCallback(uint32_t id) in deleteLogCallback() argument
196 auto queueIt = std::find(_pelQueue.begin(), _pelQueue.end(), id); in deleteLogCallback()
203 auto sentIt = std::find(_sentPELs.begin(), _sentPELs.end(), id); in deleteLogCallback()
211 if (id == _inProgressPEL) in deleteLogCallback()
214 "A PEL was deleted while its host notification was in progress, PEL ID = {ID}", in deleteLogCallback()
215 "ID", lg2::hex, id); in deleteLogCallback()
251 "PEL Host notifier hit max retry attempts. Giving up for now. PEL ID = {ID}", in doNewLogNotify()
252 "ID", lg2::hex, _pelQueue.front()); in doNewLogNotify()
255 // release the PLDM instance ID it's been using. in doNewLogNotify()
262 uint32_t id = 0; in doNewLogNotify() local
267 id = _pelQueue.front(); in doNewLogNotify()
270 if (notifyRequired(id)) in doNewLogNotify()
279 Repository::LogID i{Repository::LogID::Pel{id}}; in doNewLogNotify()
285 lg2::debug("sendNewLogCmd: ID {ID} size {SIZE}", "ID", lg2::hex, id, in doNewLogNotify()
288 auto rc = _hostIface->sendNewLogCmd(id, size); in doNewLogNotify()
292 _inProgressPEL = id; in doNewLogNotify()
297 lg2::error("PLDM send failed, PEL ID = {ID}", "ID", lg2::hex, in doNewLogNotify()
298 id); in doNewLogNotify()
299 _pelQueue.push_front(id); in doNewLogNotify()
307 "PEL ID is not in repository. Cannot notify host. PEL ID = {ID}", in doNewLogNotify()
308 "ID", lg2::hex, id); in doNewLogNotify()
331 for (auto id : _sentPELs) in hostStateChange() local
333 _pelQueue.push_back(id); in hostStateChange()
334 _repo.setPELHostTransState(id, TransmissionState::newPEL); in hostStateChange()
353 auto id = _inProgressPEL; in commandResponse() local
358 lg2::debug("HostNotifier command response success, PEL ID = {ID}", "ID", in commandResponse()
359 lg2::hex, id); in commandResponse()
362 _sentPELs.push_back(id); in commandResponse()
364 _repo.setPELHostTransState(id, TransmissionState::sent); in commandResponse()
374 lg2::error("PLDM command response failure, PEL ID = {ID}", "ID", in commandResponse()
375 lg2::hex, id); in commandResponse()
377 _pelQueue.push_front(id); in commandResponse()
386 lg2::info("Attempting command retry, PEL ID = {ID}", "ID", lg2::hex, in retryTimerExpired()
414 // Ensure the PLDM instance ID is released in stopCommand()
418 void HostNotifier::ackPEL(uint32_t id) in ackPEL() argument
420 _repo.setPELHostTransState(id, TransmissionState::acked); in ackPEL()
423 auto sent = std::find(_sentPELs.begin(), _sentPELs.end(), id); in ackPEL()
449 void HostNotifier::setHostFull(uint32_t id) in setHostFull() argument
451 lg2::debug("Received Host full indication, PEL ID = {ID}", "ID", lg2::hex, in setHostFull()
452 id); in setHostFull()
457 auto sent = std::find(_sentPELs.begin(), _sentPELs.end(), id); in setHostFull()
461 _repo.setPELHostTransState(id, TransmissionState::newPEL); in setHostFull()
463 if (std::find(_pelQueue.begin(), _pelQueue.end(), id) == in setHostFull()
466 _pelQueue.push_front(id); in setHostFull()
479 void HostNotifier::setBadPEL(uint32_t id) in setBadPEL() argument
481 lg2::error("PEL rejected by the host, PEL ID = {ID}", "ID", lg2::hex, id); in setBadPEL()
483 auto sent = std::find(_sentPELs.begin(), _sentPELs.end(), id); in setBadPEL()
489 _repo.setPELHostTransState(id, TransmissionState::badPEL); in setBadPEL()