Lines Matching defs:th
1559 struct corehdr *th = NULL;
1589 th = create_panic_header(request, corename, (unsigned)length, panic_block);
1597 memset(th->th_data + length, 'Y',
1601 if (!kdp_machine_vm_read((mach_vm_address_t)(uintptr_t)panic_data, (caddr_t) th->th_data, length)) {
1603 memset((caddr_t) th->th_data, 'X', (size_t)length);
1606 if (!kdp_machine_vm_read((mach_vm_address_t)(uintptr_t)next_page, (caddr_t) th->th_data + (length - resid), resid)) {
1607 memset((caddr_t) th->th_data + (length - resid), 'X', (size_t)resid);
1614 *(uint64_t *) th->th_data = OSSwapHostToBigInt64((*(uint64_t *) panic_data));
1616 *(unsigned int *) th->th_data = htonl(*(unsigned int *) panic_data);
1632 th = (struct corehdr *) &pkt.data[pkt.off];
1634 uint16_t opcode64 = ntohs(th->th_opcode);
1646 th->th_opcode = htons(KDP_ACK);
1649 if (ntohs(th->th_opcode) == KDP_ACK && ntohl(th->th_block) == panic_block) {
1652 if (ntohs(th->th_opcode) == KDP_ERROR) {
1653 printf("Panic server returned error %d, retrying\n", ntohl(th->th_code));
1658 if (ntohl(th->th_block) == (panic_block - 1)) {