Lines Matching refs:resp
34 struct hwbcc_resp_hdr resp; in recv_resp() local
45 rc = tipc_recv2(chan, sizeof(resp), &resp, sizeof(resp), buf, buf_size); in recv_resp()
51 if (resp.cmd != (hdr->cmd | HWBCC_CMD_RESP_BIT)) { in recv_resp()
52 TLOGE("Unknown response cmd: %x\n", resp.cmd); in recv_resp()
56 if (resp.status != NO_ERROR) { in recv_resp()
57 TLOGE("Status is not SUCCESS. Actual: %d\n", resp.status); in recv_resp()
58 rc = resp.status; in recv_resp()
62 if (resp.payload_size != (size_t)rc - sizeof(resp)) { in recv_resp()
66 if (resp.payload_size > HWBCC_MAX_RESP_PAYLOAD_SIZE || in recv_resp()
67 resp.payload_size > buf_size) { in recv_resp()
68 TLOGE("Response payload size: %d\n", resp.payload_size); in recv_resp()
72 *out_size = resp.payload_size; in recv_resp()
328 struct hwbcc_resp_hdr resp; in hwbcc_ns_deprivilege() local
336 rc = tipc_recv1(chan, sizeof(resp), &resp, sizeof(resp)); in hwbcc_ns_deprivilege()
342 if (resp.cmd != (hdr.cmd | HWBCC_CMD_RESP_BIT)) { in hwbcc_ns_deprivilege()
343 TLOGE("Unknown response cmd: %x\n", resp.cmd); in hwbcc_ns_deprivilege()
348 if (resp.status != NO_ERROR) { in hwbcc_ns_deprivilege()
349 TLOGE("Status is not SUCCESS. Actual: %d\n", resp.status); in hwbcc_ns_deprivilege()
350 rc = resp.status; in hwbcc_ns_deprivilege()