Lines Matching +full:send +full:- +full:not +full:- +full:empty
10 #include <phosphor-logging/lg2.hpp>
46 if ((i % 16 == 15) || (i == (dump_length - 1))) in dump_hex()
56 devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)), in OccCommand()
64 "PATH", this->path, "DEVICE", devicePath); in OccCommand()
95 fd = -1; in closeDevice()
99 CmdStatus OccCommand::send(const std::vector<uint8_t>& command, in send() function in open_power::occ::OccCommand
107 lg2::debug("OccCommand::send: calling openDevice()"); in send()
112 // OCC is inactive; empty response in send()
123 lg2::debug("OccCommand::send: calling write()"); in send()
134 … "OccCommand::send: write(OCC{INST}, command:{CMD}) failed with errno={ERR} (retries={RETRIES})", in send()
143 lg2::debug("OccCommand::send: write succeeded"); in send()
146 // Now read the response. This would be the content of occ-sram in send()
159 // This driver does not need a sleep for a retry. in send()
164 lg2::debug("OccCommand::send: read completed"); in send()
172 …"OccCommand::send: read(OCC{INST}, command:{CMD) failed with errno={ERR} (rspSize={LEN}, retries={… in send()
196 const unsigned int csumIndex = response.size() - 2; in send()
228 lg2::error("OccCommand::send: Response command mismatch " in send()
240 "OccCommand::send: Invalid OCC{INST} response length: {LEN}", in send()
248 lg2::error("OccCommand::send: Command will be retried"); in send()
251 } while (retries-- > 0); in send()
269 if (std::get<bool>(propertyMap->second)) in activeStatusEvent()
277 this->closeDevice(); in activeStatusEvent()