Lines Matching refs:hdr
52 struct minidumphdr hdr; member
100 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _i386_minidump_initvtop()
101 sizeof(vmst->hdr)) { in _i386_minidump_initvtop()
105 if (strncmp(MINIDUMP_MAGIC, vmst->hdr.magic, sizeof(vmst->hdr.magic)) != 0) { in _i386_minidump_initvtop()
109 vmst->hdr.version = le32toh(vmst->hdr.version); in _i386_minidump_initvtop()
110 if (vmst->hdr.version != MINIDUMP_VERSION && vmst->hdr.version != 1) { in _i386_minidump_initvtop()
112 MINIDUMP_VERSION, vmst->hdr.version); in _i386_minidump_initvtop()
115 vmst->hdr.msgbufsize = le32toh(vmst->hdr.msgbufsize); in _i386_minidump_initvtop()
116 vmst->hdr.bitmapsize = le32toh(vmst->hdr.bitmapsize); in _i386_minidump_initvtop()
117 vmst->hdr.ptesize = le32toh(vmst->hdr.ptesize); in _i386_minidump_initvtop()
118 vmst->hdr.kernbase = le32toh(vmst->hdr.kernbase); in _i386_minidump_initvtop()
119 vmst->hdr.paemode = le32toh(vmst->hdr.paemode); in _i386_minidump_initvtop()
120 vmst->hdr.dumpavailsize = vmst->hdr.version == MINIDUMP_VERSION ? in _i386_minidump_initvtop()
121 le32toh(vmst->hdr.dumpavailsize) : 0; in _i386_minidump_initvtop()
124 dump_avail_off = I386_PAGE_SIZE + i386_round_page(vmst->hdr.msgbufsize); in _i386_minidump_initvtop()
127 off = dump_avail_off + i386_round_page(vmst->hdr.dumpavailsize); in _i386_minidump_initvtop()
129 sparse_off = off + i386_round_page(vmst->hdr.bitmapsize) + in _i386_minidump_initvtop()
130 i386_round_page(vmst->hdr.ptesize); in _i386_minidump_initvtop()
131 if (_kvm_pt_init(kd, vmst->hdr.dumpavailsize, dump_avail_off, in _i386_minidump_initvtop()
132 vmst->hdr.bitmapsize, off, sparse_off, I386_PAGE_SIZE) == -1) { in _i386_minidump_initvtop()
135 off += i386_round_page(vmst->hdr.bitmapsize); in _i386_minidump_initvtop()
137 if (_kvm_pmap_init(kd, vmst->hdr.ptesize, off) == -1) { in _i386_minidump_initvtop()
140 off += i386_round_page(vmst->hdr.ptesize); in _i386_minidump_initvtop()
158 if (va >= vm->hdr.kernbase) { in _i386_minidump_vatop_pae()
159 pteindex = (va - vm->hdr.kernbase) >> I386_PAGE_SHIFT; in _i386_minidump_vatop_pae()
160 if (pteindex >= vm->hdr.ptesize / sizeof(pte)) in _i386_minidump_vatop_pae()
203 if (va >= vm->hdr.kernbase) { in _i386_minidump_vatop()
204 pteindex = (va - vm->hdr.kernbase) >> I386_PAGE_SHIFT; in _i386_minidump_vatop()
205 if (pteindex >= vm->hdr.ptesize / sizeof(pte)) in _i386_minidump_vatop()
243 if (kd->vmst->hdr.paemode) in _i386_minidump_kvatop()
276 if (vm->hdr.paemode) { in _i386_iterator_init()
277 it->nptes = vm->hdr.ptesize / sizeof(i386_pte_pae_t); in _i386_iterator_init()
279 it->nptes = vm->hdr.ptesize / sizeof(i386_pte_t); in _i386_iterator_init()
299 if (vm->hdr.paemode) { in _i386_iterator_next()
312 *va = vm->hdr.kernbase + (it->pteindex << I386_PAGE_SHIFT); in _i386_iterator_next()