Lines Matching refs:drr

332 	dp_req_resp_t		*drr = &dps->req_resp;  in dp_tx_handle_ack()  local
339 if ((drr->flags & MSG_SENT) == 0) { in dp_tx_handle_ack()
352 drr->flags |= MSG_ACKED; in dp_tx_handle_ack()
353 if (drr->response.msg_type == DP_NULL_MSG) { in dp_tx_handle_ack()
366 dp_req_resp_t *drr = &dps->req_resp; in dp_tx_handle_nak() local
372 if ((drr->flags & MSG_SENT) == 0) { in dp_tx_handle_nak()
446 dp_req_resp_t *drr = &dps->req_resp; in dp_got_bp_msg() local
454 if ((drr->flags & MSG_SENT_BP) != 0) { in dp_got_bp_msg()
467 if (datalen <= drr->response.msg_bufsiz) { in dp_got_bp_msg()
468 bcopy(pkt->buf, drr->response.msg_buf, datalen); in dp_got_bp_msg()
469 drr->response.msg_msglen = datalen; in dp_got_bp_msg()
472 drr->response.msg_msglen = -1; in dp_got_bp_msg()
602 dp_req_resp_t *drr = &rcs->dp_state.req_resp; in dp_wake_up_waiter() local
607 (drr->flags & (MSG_SENT | MSG_SENT_BP)) != 0, flags)); in dp_wake_up_waiter()
609 if ((drr->flags & (MSG_SENT | MSG_SENT_BP)) != 0) { in dp_wake_up_waiter()
610 drr->flags |= flags; in dp_wake_up_waiter()
611 cv_signal(drr->cv_wait_reply); in dp_wake_up_waiter()
933 dp_req_resp_t *drr = &dps->req_resp; in rmc_comm_dp_mrecv() local
1136 } else if ((drr->flags & MSG_SENT) != 0 && in rmc_comm_dp_mrecv()
1137 drr->response.msg_type == dp_msgp->type) { in rmc_comm_dp_mrecv()
1141 datalen, drr->response.msg_bufsiz)); in rmc_comm_dp_mrecv()
1146 if (datalen <= drr->response.msg_bufsiz) { in rmc_comm_dp_mrecv()
1147 bcopy(datap, drr->response.msg_buf, datalen); in rmc_comm_dp_mrecv()
1148 drr->response.msg_msglen = datalen; in rmc_comm_dp_mrecv()
1151 drr->response.msg_msglen = -1; in rmc_comm_dp_mrecv()
1155 (drr->flags & MSG_SENT) != 0 && in rmc_comm_dp_mrecv()
1156 ((dp_invcmd_t *)datap)->inv_type == drr->request.msg_type) { in rmc_comm_dp_mrecv()
1157 drr->error_status = RCEINVCMD; in rmc_comm_dp_mrecv()
1203 dp_req_resp_t *drr = &dps->req_resp; in rmc_comm_dp_msend() local
1224 if ((drr->flags & MSG_ERROR) != 0) { in rmc_comm_dp_msend()
1227 "msg send error flag=%02x\n", drr->flags)); in rmc_comm_dp_msend()
1230 } else if ((drr->flags & MSG_ACKED) != 0) { in rmc_comm_dp_msend()
1233 "msg already ACKed flag=%02x\n", drr->flags)); in rmc_comm_dp_msend()
1236 } else if ((drr->flags & MSG_SENT) == 0) { in rmc_comm_dp_msend()
1271 drr->retries_left = TX_RETRIES; in rmc_comm_dp_msend()
1282 pkt = &drr->request; in rmc_comm_dp_msend()
1423 pkt = &drr->request; in rmc_comm_dp_msend()
1437 if (drr->retries_left-- <= 0) { in rmc_comm_dp_msend()
1439 drr->flags |= MSG_ERROR; /* set error flag */ in rmc_comm_dp_msend()
1467 drr->flags |= MSG_SENT; in rmc_comm_dp_msend()
1560 dp_req_resp_t *drr = &dps->req_resp; in rmc_comm_dp_mcleanup() local
1561 dp_message_t *req = &drr->request; in rmc_comm_dp_mcleanup()
1562 dp_message_t *resp = &drr->response; in rmc_comm_dp_mcleanup()
1575 drr->flags = 0; in rmc_comm_dp_mcleanup()
1576 drr->error_status = 0; in rmc_comm_dp_mcleanup()