Lines Matching defs:msgp
561 rscp_send(rscp_msg_t *msgp)
574 if (msgp == NULL)
581 if (rsc_check_unsupported_cmd(msgp->type) != 0)
588 if (!rsc_cmd_response_guaranteed(msgp->type))
597 req->msg_type = msgp->type;
598 req->msg_len = msgp->len;
599 req->msg_buf = msgp->data;
602 msgp->type)) != NULL) {
663 rscp_recv(rscp_msg_t *msgp, struct timespec *timeout)
673 if (msgp == NULL)
677 msgp->type = DP_NULL_MSG;
678 msgp->len = 0;
679 msgp->data = NULL;
684 msgp->type = rsc_rx_resp_type;
685 msgp->len = rsc_rx_resp_len;
686 msgp->data = rsc_rx_buffer;
690 printf("read reply. type=%x, err=%d\n", msgp->type, err);
705 rscp_free_msg(rscp_msg_t *msgp)