Lines Matching refs:dps
163 rmc_comm_dp_state_t *dps = &rcs->dp_state;
170 mutex_enter(dps->dp_mutex);
171 if (dps->timer_link_setup != (timeout_id_t)0) {
178 dps->timer_link_setup = timeout(dp_link_setup_tohandler,
181 mutex_exit(dps->dp_mutex);
192 rmc_comm_dp_state_t *dps = &rcs->dp_state;
207 dps->timer_delay_ack = (timeout_id_t)0;
216 mutex_enter(dps->dp_mutex);
217 if (dps->timer_delay_ack != (timeout_id_t)0) {
222 dps->timer_delay_ack = (timeout_id_t)0;
224 mutex_exit(dps->dp_mutex);
236 rmc_comm_dp_state_t *dps = &rcs->dp_state;
239 ASSERT(MUTEX_HELD(dps->dp_mutex));
241 dps->data_link_ok = 1;
243 timer_id = dps->timer_link_setup;
244 dps->timer_link_setup = (timeout_id_t)0;
247 mutex_exit(dps->dp_mutex);
249 mutex_enter(dps->dp_mutex);
277 rmc_comm_dp_state_t *dps = &rcs->dp_state;
279 ASSERT(MUTEX_HELD(dps->dp_mutex));
287 dps->reset_cnt, dps->nak_cnt, dps->start_cnt, dps->stack_cnt,
288 dps->retries_cnt, dps->crcerr_cnt));
290 dps->last_rx_seqid = rx_seqid;
291 dps->reset_cnt++;
297 dps->last_tx_seqid = INITIAL_SEQID;
298 dps->last_rx_ack = rx_seqid;
311 if (restart_data_link && dps->timer_link_setup == (timeout_id_t)0) {
313 dps->data_link_ok = 0;
319 dps->timer_link_setup = timeout(dp_link_setup_tohandler,
331 rmc_comm_dp_state_t *dps = &rcs->dp_state;
332 dp_req_resp_t *drr = &dps->req_resp;
334 ASSERT(MUTEX_HELD(dps->dp_mutex));
338 dps->last_rx_ack = rxnum;
346 if (rxnum == dps->last_tx_seqid) {
365 rmc_comm_dp_state_t *dps = &rcs->dp_state;
366 dp_req_resp_t *drr = &dps->req_resp;
368 ASSERT(MUTEX_HELD(dps->dp_mutex));
383 dps->nak_cnt++;
445 rmc_comm_dp_state_t *dps = &rcs->dp_state;
446 dp_req_resp_t *drr = &dps->req_resp;
449 ASSERT(MUTEX_HELD(dps->dp_mutex));
621 rmc_comm_dp_state_t *dps = &rcs->dp_state;
622 dp_packet_t *pkt = &dps->dp_packet;
629 bzero((void *) dps, sizeof (rmc_comm_dp_state_t));
642 cv_init(dps->cv_ok_to_send, NULL, CV_DRIVER, NULL);
643 cv_init(dps->req_resp.cv_wait_reply, NULL, CV_DRIVER, NULL);
645 mutex_enter(dps->dp_mutex);
652 dps->last_tx_seqid = INITIAL_SEQID;
653 dps->last_rx_seqid = dps->last_rx_ack = INITIAL_SEQID;
658 dps->timer_link_setup = timeout(dp_link_setup_tohandler,
661 mutex_exit(dps->dp_mutex);
687 rmc_comm_dp_state_t *dps = &rcs->dp_state;
693 dps->reset_cnt, dps->nak_cnt, dps->start_cnt, dps->stack_cnt,
694 dps->retries_cnt, dps->crcerr_cnt));
699 mutex_enter(dps->dp_mutex);
700 tid_delay_ack = dps->timer_link_setup;
701 tid_link_setup = dps->timer_delay_ack;
702 dps->timer_link_setup = (timeout_id_t)0;
703 dps->timer_delay_ack = (timeout_id_t)0;
704 mutex_exit(dps->dp_mutex);
715 cv_destroy(dps->cv_ok_to_send);
716 cv_destroy(dps->req_resp.cv_wait_reply);
728 rmc_comm_dp_state_t *dps = &rcs->dp_state;
729 dp_packet_t *pkt = &dps->dp_packet;
734 ASSERT(MUTEX_HELD(dps->dp_mutex));
928 rmc_comm_dp_state_t *dps = &rcs->dp_state;
932 dp_msg_intr_t *dmi = &dps->msg_intr;
933 dp_req_resp_t *drr = &dps->req_resp;
935 ASSERT(MUTEX_HELD(dps->dp_mutex));
974 dps->start_cnt++;
992 dps->stack_cnt++;
1002 if (dps->data_link_ok) {
1036 if (!dps->data_link_ok) {
1052 if (dps->timer_delay_ack == (timeout_id_t)0) {
1053 dps->timer_delay_ack = timeout(dp_delay_ack_tohandler,
1056 dps->timer_delay_ack));
1060 if (dp_msgp->txnum != NEXT_SEQID(dps->last_rx_seqid)) {
1066 dps->last_rx_seqid = dp_msgp->txnum;
1202 rmc_comm_dp_state_t *dps = &rcs->dp_state;
1203 dp_req_resp_t *drr = &dps->req_resp;
1212 ASSERT(MUTEX_HELD(dps->dp_mutex));
1245 if (!dps->data_link_ok) {
1309 dps->last_tx_seqid = NEXT_SEQID(dps->last_tx_seqid);
1332 dps->last_rx_seqid--;
1366 dp_msgp->txnum = dps->last_tx_seqid;
1367 dp_msgp->rxnum = dps->last_rx_seqid;
1425 dps->retries_cnt++;
1449 if (dps->timer_delay_ack != (timeout_id_t)0) {
1455 timer_delay_ack = dps->timer_delay_ack;
1464 dps->timer_delay_ack = 0;
1475 if (dp_msgp->rxnum != dps->last_rx_seqid) {
1477 dp_msgp->rxnum = dps->last_rx_seqid;
1504 mutex_exit(dps->dp_mutex);
1506 mutex_enter(dps->dp_mutex);
1559 rmc_comm_dp_state_t *dps = &rcs->dp_state;
1560 dp_req_resp_t *drr = &dps->req_resp;
1564 ASSERT(MUTEX_HELD(dps->dp_mutex));