Lines Matching refs:resp_msg_hdr
153 static pcp_resp_msg_hdr_t *resp_msg_hdr = NULL; variable
311 if (resp_msg_hdr != NULL) { in pcp_close()
312 umem_free(resp_msg_hdr, resp_msg_hdr_sz); in pcp_close()
313 resp_msg_hdr = NULL; in pcp_close()
438 if (resp_msg_hdr == NULL) { in pcp_send_recv()
440 resp_msg_hdr = (pcp_resp_msg_hdr_t *)umem_alloc(resp_msg_hdr_sz, in pcp_send_recv()
442 if (resp_msg_hdr == NULL) in pcp_send_recv()
454 if ((ret = pcp_recv_resp_msg_hdr(resp_msg_hdr))) { in pcp_send_recv()
463 bkup_resp_hdr_cksum = resp_msg_hdr->hdr_cksum; in pcp_send_recv()
464 resp_msg_hdr->hdr_cksum = 0; in pcp_send_recv()
465 cksum = checksum((uint16_t *)resp_msg_hdr, resp_msg_hdr_sz); in pcp_send_recv()
474 if (resp_msg_hdr->xid != req_msg_hdr->xid) { in pcp_send_recv()
486 status = resp_msg_hdr->status; in pcp_send_recv()
491 if (resp_msg_hdr->msg_len != 0) { in pcp_send_recv()
494 if ((resp_msg_data = (uint8_t *)malloc(resp_msg_hdr->msg_len)) in pcp_send_recv()
497 bzero(resp_msg_data, resp_msg_hdr->msg_len); in pcp_send_recv()
501 if ((ret = pcp_io_op(resp_msg_data, resp_msg_hdr->msg_len, in pcp_send_recv()
510 resp_msg_hdr->msg_len); in pcp_send_recv()
511 if (cksum != resp_msg_hdr->msg_cksum) { in pcp_send_recv()
519 resp_msg->msg_len = resp_msg_hdr->msg_len; in pcp_send_recv()
520 resp_msg->msg_type = resp_msg_hdr->msg_type; in pcp_send_recv()
521 resp_msg->sub_type = resp_msg_hdr->sub_type; in pcp_send_recv()