Lines Matching refs:rq
228 kdp_connect_req_t *rq = &pkt->connect_req;
235 if (plen < sizeof (*rq))
238 dprintf(("kdp_connect seq %x greeting %s\n", rq->hdr.seq, rq->greeting));
240 rport = rq->req_reply_port;
241 eport = rq->exc_note_port;
242 key = rq->hdr.key;
243 seq = rq->hdr.seq;
282 kdp_disconnect_req_t *rq = &pkt->disconnect_req;
286 if (plen < sizeof (*rq))
327 kdp_reattach_req_t *rq = &pkt->reattach_req;
331 *reply_port = rq->req_reply_port;
343 kdp_hostinfo_req_t *rq = &pkt->hostinfo_req;
347 if (plen < sizeof (*rq))
370 kdp_kernelversion_req_t *rq = &pkt->kernelversion_req;
375 if (plen < sizeof (*rq))
399 kdp_suspend_req_t *rq = &pkt->suspend_req;
403 if (plen < sizeof (*rq))
426 kdp_resumecpus_req_t *rq = &pkt->resumecpus_req;
430 if (plen < sizeof (*rq))
436 dprintf(("kdp_resumecpus %x\n", rq->cpu_mask));
453 kdp_writemem_req_t *rq = &pkt->writemem_req;
458 if (plen < sizeof (*rq))
461 if (rq->nbytes > MAX_KDP_DATA_SIZE)
464 dprintf(("kdp_writemem addr %x size %d\n", rq->address, rq->nbytes));
466 cnt = kdp_machine_vm_write((caddr_t)rq->data, (mach_vm_address_t)rq->address, rq->nbytes);
486 kdp_writemem64_req_t *rq = &pkt->writemem64_req;
491 if (plen < sizeof (*rq))
494 if (rq->nbytes > MAX_KDP_DATA_SIZE)
497 dprintf(("kdp_writemem64 addr %llx size %d\n", rq->address, rq->nbytes));
499 cnt = kdp_machine_vm_write((caddr_t)rq->data, (mach_vm_address_t)rq->address, (mach_vm_size_t)rq->nbytes);
519 kdp_writephysmem64_req_t *rq = &pkt->writephysmem64_req;
523 if (plen < sizeof (*rq))
526 if (rq->nbytes > MAX_KDP_DATA_SIZE)
529 dprintf(("kdp_writephysmem64 addr %llx size %d\n", rq->address, rq->nbytes));
530 kdp_machine_phys_write(rq, rq->data, rq->lcpu);
550 kdp_readmem_req_t *rq = &pkt->readmem_req;
558 if (plen < sizeof (*rq))
564 if (rq->nbytes > MAX_KDP_DATA_SIZE)
567 unsigned int n = rq->nbytes;
569 dprintf(("kdp_readmem addr %x size %d\n", rq->address, n));
582 if (rq->address == 0x501C)
583 rq->address = (uintptr_t)&pversion;
585 cnt = kdp_machine_vm_read((mach_vm_address_t)rq->address, (caddr_t)rp->data, n);
604 kdp_readmem64_req_t *rq = &pkt->readmem64_req;
609 if (plen < sizeof (*rq))
615 if (rq->nbytes > MAX_KDP_DATA_SIZE)
619 dprintf(("kdp_readmem64 addr %llx size %d\n", rq->address, rq->nbytes));
621 cnt = kdp_machine_vm_read((mach_vm_address_t)rq->address, (caddr_t)rp->data, rq->nbytes);
640 kdp_readphysmem64_req_t *rq = &pkt->readphysmem64_req;
645 if (plen < sizeof (*rq))
651 if (rq->nbytes > MAX_KDP_DATA_SIZE)
655 dprintf(("kdp_readphysmem64 addr %llx size %d\n", rq->address, rq->nbytes));
657 cnt = (int)kdp_machine_phys_read(rq, rp->data, rq->lcpu);
676 kdp_maxbytes_req_t *rq = &pkt->maxbytes_req;
680 if (plen < sizeof (*rq))
703 kdp_version_req_t *rq = &pkt->version_req;
707 if (plen < sizeof (*rq))
734 kdp_regions_req_t *rq = &pkt->regions_req;
739 if (plen < sizeof (*rq))
770 kdp_writeregs_req_t *rq = &pkt->writeregs_req;
775 if (plen < sizeof (*rq))
778 size = rq->hdr.len - (unsigned)sizeof(kdp_hdr_t) - (unsigned)sizeof(unsigned int);
779 rp->error = kdp_machine_write_regs(rq->cpu, rq->flavor, rq->data, &size);
797 kdp_readregs_req_t *rq = &pkt->readregs_req;
802 if (plen < sizeof (*rq))
808 rp->error = kdp_machine_read_regs(rq->cpu, rq->flavor, rp->data, &size);
825 kdp_breakpoint_req_t *rq = &pkt->breakpoint_req;
830 if (plen < sizeof (*rq))
833 dprintf(("kdp_breakpoint_set %x\n", rq->address));
835 kerr = kdp_set_breakpoint_internal((mach_vm_address_t)rq->address);
854 kdp_breakpoint64_req_t *rq = &pkt->breakpoint64_req;
859 if (plen < sizeof (*rq))
862 dprintf(("kdp_breakpoint64_set %llx\n", rq->address));
864 kerr = kdp_set_breakpoint_internal((mach_vm_address_t)rq->address);
883 kdp_breakpoint_req_t *rq = &pkt->breakpoint_req;
887 if (plen < sizeof (*rq))
890 dprintf(("kdp_breakpoint_remove %x\n", rq->address));
892 kerr = kdp_remove_breakpoint_internal((mach_vm_address_t)rq->address);
911 kdp_breakpoint64_req_t *rq = &pkt->breakpoint64_req;
916 if (plen < sizeof (*rq))
919 dprintf(("kdp_breakpoint64_remove %llx\n", rq->address));
921 kerr = kdp_remove_breakpoint_internal((mach_vm_address_t)rq->address);
1362 kdp_readioport_req_t *rq = &pkt->readioport_req;
1366 if (plen < sizeof (*rq))
1372 if (rq->nbytes > MAX_KDP_DATA_SIZE)
1376 uint16_t addr = rq->address;
1378 uint16_t size = rq->nbytes;
1381 rp->error = kdp_machine_ioport_read(rq, rp->data, rq->lcpu);
1399 kdp_writeioport_req_t *rq = &pkt->writeioport_req;
1403 if (plen < sizeof (*rq))
1406 if (rq->nbytes > MAX_KDP_DATA_SIZE)
1409 dprintf(("kdp_writeioport addr %x size %d\n", rq->address,
1410 rq->nbytes));
1412 rp->error = kdp_machine_ioport_write(rq, rq->data, rq->lcpu);
1430 kdp_readmsr64_req_t *rq = &pkt->readmsr64_req;
1434 if (plen < sizeof (*rq))
1440 dprintf(("kdp_readmsr64 lcpu %x addr %x\n", rq->lcpu, rq->address));
1441 rp->error = kdp_machine_msr64_read(rq, rp->data, rq->lcpu);
1458 kdp_writemsr64_req_t *rq = &pkt->writemsr64_req;
1462 if (plen < sizeof (*rq))
1465 dprintf(("kdp_writemsr64 lcpu %x addr %x\n", rq->lcpu, rq->address));
1466 rp->error = kdp_machine_msr64_write(rq, rq->data, rq->lcpu);
1484 kdp_dumpinfo_req_t *rq = &pkt->dumpinfo_req;
1488 if (plen < sizeof (*rq))
1491 dprintf(("kdp_dumpinfo file=%s destip=%s routerip=%s\n", rq->name, rq->destip, rq->routerip));
1495 if ((rq->type & KDP_DUMPINFO_MASK) != KDP_DUMPINFO_GETINFO) {
1496 kdp_set_dump_info(rq->type, rq->name, rq->destip, rq->routerip,
1497 rq->port);