Lines Matching defs:rq
85 kdp_exception_t *rq = (kdp_exception_t *)&aligned_pkt;
87 bcopy((char *)pkt, (char *)rq, sizeof(*rq));
88 rq->hdr.request = KDP_EXCEPTION;
89 rq->hdr.is_reply = 0;
90 rq->hdr.seq = kdp.exception_seq;
91 rq->hdr.key = 0;
92 rq->hdr.len = sizeof (*rq) + sizeof(kdp_exc_info_t);
94 rq->n_exc_info = 1;
95 rq->exc_info[0].cpu = 0;
96 rq->exc_info[0].exception = exception;
97 rq->exc_info[0].code = code;
98 rq->exc_info[0].subcode = subcode;
100 rq->hdr.len += rq->n_exc_info * sizeof (kdp_exc_info_t);
102 bcopy((char *)rq, (char *)pkt, rq->hdr.len);
107 *len = rq->hdr.len;
117 kdp_exception_ack_t *rq = (kdp_exception_ack_t *)&aligned_pkt;
119 if ((size_t)len < sizeof (*rq))
122 bcopy((char *)pkt, (char *)rq, sizeof(*rq));
124 if (!rq->hdr.is_reply || rq->hdr.request != KDP_EXCEPTION)
127 dprintf(("kdp_exception_ack seq %x %x\n", rq->hdr.seq, kdp.exception_seq));
129 if (rq->hdr.seq == kdp.exception_seq) {