Lines Matching defs:rq
212 kdp_connect_req_t *rq = &pkt->connect_req;
216 if (plen < sizeof (*rq))
219 dprintf(("kdp_connect seq %x greeting %s\n", rq->hdr.seq, rq->greeting));
222 if (rq->hdr.seq == kdp.conn_seq) /* duplicate request */
228 kdp.reply_port = rq->req_reply_port;
229 kdp.exception_port = rq->exc_note_port;
231 kdp.conn_seq = rq->hdr.seq;
255 kdp_disconnect_req_t *rq = &pkt->disconnect_req;
259 if (plen < sizeof (*rq))
299 kdp_reattach_req_t *rq = &pkt->reattach_req;
303 *reply_port = rq->req_reply_port;
315 kdp_hostinfo_req_t *rq = &pkt->hostinfo_req;
319 if (plen < sizeof (*rq))
340 kdp_suspend_req_t *rq = &pkt->suspend_req;
344 if (plen < sizeof (*rq))
367 kdp_resumecpus_req_t *rq = &pkt->resumecpus_req;
371 if (plen < sizeof (*rq))
377 dprintf(("kdp_resumecpus %x\n", rq->cpu_mask));
394 kdp_writemem_req_t *rq = &pkt->writemem_req;
399 if (plen < sizeof (*rq))
402 if (rq->nbytes > MAX_KDP_DATA_SIZE)
405 dprintf(("kdp_writemem addr %x size %d\n", rq->address, rq->nbytes));
407 cnt = kdp_vm_write((caddr_t)rq->data, (caddr_t)rq->address, rq->nbytes);
427 kdp_readmem_req_t *rq = &pkt->readmem_req;
434 if (plen < sizeof (*rq))
440 if (rq->nbytes > MAX_KDP_DATA_SIZE)
443 unsigned int n = rq->nbytes;
445 dprintf(("kdp_readmem addr %x size %d\n", rq->address, n));
457 if (rq->address == (void *)0x501C)
458 rq->address = &pversion;
460 cnt = kdp_vm_read((caddr_t)rq->address, (caddr_t)rp->data, n);
479 kdp_maxbytes_req_t *rq = &pkt->maxbytes_req;
483 if (plen < sizeof (*rq))
506 kdp_version_req_t *rq = &pkt->version_req;
510 if (plen < sizeof (*rq))
541 kdp_regions_req_t *rq = &pkt->regions_req;
546 if (plen < sizeof (*rq))
577 kdp_writeregs_req_t *rq = &pkt->writeregs_req;
582 if (plen < sizeof (*rq))
585 size = rq->hdr.len - sizeof(kdp_hdr_t) - sizeof(unsigned int);
586 rp->error = kdp_machine_write_regs(rq->cpu, rq->flavor, rq->data, &size);
604 kdp_readregs_req_t *rq = &pkt->readregs_req;
609 if (plen < sizeof (*rq))
615 rp->error = kdp_machine_read_regs(rq->cpu, rq->flavor, rp->data, &size);
631 kdp_breakpoint_req_t *rq = &pkt->breakpoint_req;
643 if (plen < sizeof (*rq))
645 cnt = kdp_vm_read((caddr_t)rq->address, (caddr_t)(&old_instruction), sizeof(int));
673 breakpoint_list[i].address = rq->address;
676 cnt = kdp_vm_write((caddr_t)&breakinstr, (caddr_t)rq->address, sizeof(&breakinstr));
694 kdp_breakpoint_req_t *rq = &pkt->breakpoint_req;
699 if (plen < sizeof (*rq))
702 for(i=0;(i < MAX_BREAKPOINTS) && (breakpoint_list[i].address != rq->address); i++);
715 cnt = kdp_vm_write((caddr_t)&(breakpoint_list[i].old_instruction), (caddr_t)rq->address, sizeof(int));