Lines Matching refs:resp
141 struct hwbcc_resp resp = {0}; in handle_sign_data() local
148 args->aad_size, resp.payload, sizeof(resp.payload), in handle_sign_data()
154 resp.hdr.cmd = HWBCC_CMD_SIGN_DATA | HWBCC_CMD_RESP_BIT; in handle_sign_data()
155 resp.hdr.status = rc; in handle_sign_data()
156 resp.hdr.payload_size = payload_size; in handle_sign_data()
157 rc = tipc_send1(chan, &resp, sizeof(resp.hdr) + payload_size); in handle_sign_data()
162 if ((size_t)rc != sizeof(resp.hdr) + payload_size) { in handle_sign_data()
173 struct hwbcc_resp resp = {0}; in handle_get_bcc() local
178 rc = hwbcc_ops->get_bcc(s, test_mode, resp.payload, sizeof(resp.payload), in handle_get_bcc()
184 resp.hdr.cmd = HWBCC_CMD_GET_BCC | HWBCC_CMD_RESP_BIT; in handle_get_bcc()
185 resp.hdr.status = rc; in handle_get_bcc()
186 resp.hdr.payload_size = payload_size; in handle_get_bcc()
187 rc = tipc_send1(chan, &resp, sizeof(resp.hdr) + payload_size); in handle_get_bcc()
192 if ((size_t)rc != sizeof(resp.hdr) + payload_size) { in handle_get_bcc()
203 struct hwbcc_resp resp = {0}; in handle_get_dice_artifacts() local
208 rc = hwbcc_ops->get_dice_artifacts(s, context, resp.payload, in handle_get_dice_artifacts()
209 sizeof(resp.payload), &payload_size); in handle_get_dice_artifacts()
215 resp.hdr.cmd = HWBCC_CMD_GET_DICE_ARTIFACTS | HWBCC_CMD_RESP_BIT; in handle_get_dice_artifacts()
216 resp.hdr.status = rc; in handle_get_dice_artifacts()
217 resp.hdr.payload_size = payload_size; in handle_get_dice_artifacts()
219 rc = tipc_send1(chan, &resp, sizeof(resp.hdr) + payload_size); in handle_get_dice_artifacts()
224 if ((size_t)rc != sizeof(resp.hdr) + payload_size) { in handle_get_dice_artifacts()
233 struct hwbcc_resp resp = {0}; in handle_ns_deprivilege() local
243 resp.hdr.cmd = HWBCC_CMD_NS_DEPRIVILEGE | HWBCC_CMD_RESP_BIT; in handle_ns_deprivilege()
244 resp.hdr.status = rc; in handle_ns_deprivilege()
246 rc = tipc_send1(chan, &resp, sizeof(resp.hdr)); in handle_ns_deprivilege()
251 if ((size_t)rc != sizeof(resp.hdr)) { in handle_ns_deprivilege()