Lines Matching refs:rp
214 kdp_connect_reply_t *rp = &pkt->connect_reply;
223 rp->error = KDPERR_NO_ERROR;
225 rp->error = KDPERR_ALREADY_CONNECTED;
233 rp->error = KDPERR_NO_ERROR;
236 rp->hdr.is_reply = 1;
237 rp->hdr.len = sizeof (*rp);
240 *len = rp->hdr.len;
257 kdp_disconnect_reply_t *rp = &pkt->disconnect_reply;
281 rp->hdr.is_reply = 1;
282 rp->hdr.len = sizeof (*rp);
284 *len = rp->hdr.len;
317 kdp_hostinfo_reply_t *rp = &pkt->hostinfo_reply;
322 rp->hdr.is_reply = 1;
323 rp->hdr.len = sizeof (*rp);
325 kdp_machine_hostinfo(&rp->hostinfo);
328 *len = rp->hdr.len;
342 kdp_suspend_reply_t *rp = &pkt->suspend_reply;
347 rp->hdr.is_reply = 1;
348 rp->hdr.len = sizeof (*rp);
355 *len = rp->hdr.len;
369 kdp_resumecpus_reply_t *rp = &pkt->resumecpus_reply;
374 rp->hdr.is_reply = 1;
375 rp->hdr.len = sizeof (*rp);
382 *len = rp->hdr.len;
396 kdp_writemem_reply_t *rp = &pkt->writemem_reply;
403 rp->error = KDPERR_BAD_NBYTES;
408 rp->error = KDPERR_NO_ERROR;
411 rp->hdr.is_reply = 1;
412 rp->hdr.len = sizeof (*rp);
415 *len = rp->hdr.len;
429 kdp_readmem_reply_t *rp = &pkt->readmem_reply;
437 rp->hdr.is_reply = 1;
438 rp->hdr.len = sizeof (*rp);
441 rp->error = KDPERR_BAD_NBYTES;
460 cnt = kdp_vm_read((caddr_t)rq->address, (caddr_t)rp->data, n);
461 rp->error = KDPERR_NO_ERROR;
463 rp->hdr.len += cnt;
467 *len = rp->hdr.len;
481 kdp_maxbytes_reply_t *rp = &pkt->maxbytes_reply;
486 rp->hdr.is_reply = 1;
487 rp->hdr.len = sizeof (*rp);
491 rp->max_bytes = MAX_KDP_DATA_SIZE;
494 *len = rp->hdr.len;
508 kdp_version_reply_t *rp = &pkt->version_reply;
513 rp->hdr.is_reply = 1;
514 rp->hdr.len = sizeof (*rp);
518 rp->version = KDP_VERSION;
521 rp->feature = KDP_FEATURE_BP;
523 rp->feature = 0;
525 rp->feature = 0;
529 *len = rp->hdr.len;
543 kdp_regions_reply_t *rp = &pkt->regions_reply;
549 rp->hdr.is_reply = 1;
550 rp->hdr.len = sizeof (*rp);
554 r = rp->regions;
555 rp->nregions = 0;
560 r->protection = VM_PROT_ALL; r++; rp->nregions++;
562 rp->hdr.len += rp->nregions * sizeof (kdp_region_t);
565 *len = rp->hdr.len;
580 kdp_writeregs_reply_t *rp = &pkt->writeregs_reply;
586 rp->error = kdp_machine_write_regs(rq->cpu, rq->flavor, rq->data, &size);
588 rp->hdr.is_reply = 1;
589 rp->hdr.len = sizeof (*rp);
592 *len = rp->hdr.len;
606 kdp_readregs_reply_t *rp = &pkt->readregs_reply;
612 rp->hdr.is_reply = 1;
613 rp->hdr.len = sizeof (*rp);
615 rp->error = kdp_machine_read_regs(rq->cpu, rq->flavor, rp->data, &size);
616 rp->hdr.len += size;
619 *len = rp->hdr.len;
632 kdp_breakpoint_reply_t *rp = &pkt->breakpoint_reply;
650 rp->error = BREAKPOINT_ALREADY_SET;
652 rp->hdr.is_reply = 1;
653 rp->hdr.len = sizeof (*rp);
655 *len = rp->hdr.len;
664 rp->error = KDP_MAX_BREAKPOINTS;
666 rp->hdr.is_reply = 1;
667 rp->hdr.len = sizeof (*rp);
669 *len = rp->hdr.len;
678 rp->error = KDPERR_NO_ERROR;
679 rp->hdr.is_reply = 1;
680 rp->hdr.len = sizeof (*rp);
682 *len = rp->hdr.len;
695 kdp_breakpoint_reply_t *rp = &pkt->breakpoint_reply;
705 rp->error = BREAKPOINT_NOT_FOUND;
706 rp->hdr.is_reply = 1;
707 rp->hdr.len = sizeof (*rp);
709 *len = rp->hdr.len;
716 rp->error = KDPERR_NO_ERROR;
717 rp->hdr.is_reply = 1;
718 rp->hdr.len = sizeof (*rp);
720 *len = rp->hdr.len;