Lines Matching full:response

100                            std::vector<uint8_t>& response)  in send()  argument
105 response.clear(); in send()
112 // OCC is inactive; empty response in send()
126 int retries = 1; // Allow a retry if a command fails to get valid response in send()
146 // Now read the response. This would be the content of occ-sram in send()
154 response.emplace_back(data); in send()
174 readErrno, "LEN", response.size(), "RETRIES", retries); in send()
185 if (response.size() > 2) in send()
189 "OCC{INST}: Received {CMD} response (length={LEN} w/checksum)", in send()
191 response.size()); in send()
192 dump_hex(response, 64); in send()
195 // Validate checksum (last 2 bytes of response) in send()
196 const unsigned int csumIndex = response.size() - 2; in send()
198 (response[csumIndex] << 8) + response[csumIndex + 1]; in send()
203 calcChecksum += response[index]; in send()
207 lg2::error("OCC{INST}: Checksum Mismatch: response " in send()
211 dump_hex(response); in send()
216 // Validate response was for the specified command in send()
217 if (command[0] == response[1]) in send()
219 // Valid response received in send()
222 response.pop_back(); in send()
223 response.pop_back(); in send()
228 lg2::error("OccCommand::send: Response command mismatch " in send()
232 response[1], "SEQ", lg2::hex, response[0]); in send()
233 dump_hex(response, 64); in send()
240 "OccCommand::send: Invalid OCC{INST} response length: {LEN}", in send()
241 "INST", occInstance, "LEN", response.size()); in send()
243 dump_hex(response); in send()
249 response.clear(); in send()