Lines Matching +full:send +full:- +full:not +full:- +full:empty
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright 2019 IBM Corporation
6 #include <phosphor-logging/lg2.hpp>
17 _retryTimer(_hostIface->getEvent(), in HostNotifier()
20 _hostIface->getEvent(), in HostNotifier()
22 _hostUpTimer(_hostIface->getEvent(), in HostNotifier()
37 // Add any existing PELs to the queue to send them if necessary. in HostNotifier()
47 _hostIface->setResponseFunction( in HostNotifier()
52 if (!_pelQueue.empty() && _dataIface.isHostUp()) in HostNotifier()
55 _hostUpTimer.restartOnce(_hostIface->getHostUpDelay()); in HostNotifier()
130 // If already acked by the host, don't send again. in notifyRequired()
140 // also don't send it. (HMC management can come and in notifyRequired()
170 // Notify shouldn't happen if host is down, not up long enough, or full in newLogCallback()
179 auto inProgress = (_inProgressPEL != 0) || _hostIface->cmdInProgress() || in newLogCallback()
189 // Send a log, but from the event loop, not from here. in newLogCallback()
222 _hostIface->getEvent(), std::bind(std::mem_fn(&HostNotifier::dispatch), in scheduleDispatch()
256 _hostIface->cancelCmd(); in doNewLogNotify()
264 // Find the PEL to send in doNewLogNotify()
265 while (!doNotify && !_pelQueue.empty()) in doNewLogNotify()
288 auto rc = _hostIface->sendNewLogCmd(id, size); in doNewLogNotify()
297 lg2::error("PLDM send failed, PEL ID = {ID}", "ID", lg2::hex, in doNewLogNotify()
301 _retryTimer.restartOnce(_hostIface->getSendRetryDelay()); in doNewLogNotify()
307 "PEL ID is not in repository. Cannot notify host. PEL ID = {ID}", in doNewLogNotify()
318 if (hostUp && !_pelQueue.empty()) in hostStateChange()
321 _hostUpTimer.restartOnce(_hostIface->getHostUpDelay()); in hostStateChange()
329 // Reset the state on any PELs that were sent but not acked back in hostStateChange()
366 // If the host is full, don't send off the next PEL in commandResponse()
367 if (!_hostFull && !_pelQueue.empty()) in commandResponse()
378 _retryTimer.restartOnce(_hostIface->getReceiveRetryDelay()); in commandResponse()
395 lg2::debug("Host full timer expired, trying send again"); in hostFullTimerExpired()
415 _hostIface->cancelCmd(); in stopCommand()
439 lg2::debug("Host previously full, not anymore after this ack"); in ackPEL()
442 if (!_pelQueue.empty()) in ackPEL()
456 // This PEL needs to get re-sent in setHostFull()
475 _hostFullTimer.restartOnce(_hostIface->getHostFullRetryDelay()); in setHostFull()