Lines Matching refs:kvm_dump
47 struct dumphdr kvm_dump;
134 if (pread64(kd->kvm_corefd, &kd->kvm_dump,
135 sizeof (kd->kvm_dump), 0) != sizeof (kd->kvm_dump))
137 if (kd->kvm_dump.dump_magic != DUMP_MAGIC)
140 kd->kvm_dump.dump_magic));
141 if (kd->kvm_dump.dump_version != DUMP_VERSION)
144 DUMP_VERSION, kd->kvm_dump.dump_version));
145 if (kd->kvm_dump.dump_wordsize != DUMP_WORDSIZE)
148 kd->kvm_dump.dump_wordsize, DUMP_WORDSIZE));
158 kd->kvm_coremapsize = kd->kvm_dump.dump_data;
164 kd->kvm_map = (void *)(kd->kvm_core + kd->kvm_dump.dump_map);
165 kd->kvm_pfn = (void *)(kd->kvm_core + kd->kvm_dump.dump_pfn);
228 dumphdr_t *dump = &kd->kvm_dump;
283 uintptr_t pageoff = addr & (kd->kvm_dump.dump_pagesize - 1);
292 long last = kd->kvm_dump.dump_npages - 1;
293 pfn_t target = (pfn_t)(page >> kd->kvm_dump.dump_pageshift);
300 off = kd->kvm_dump.dump_data + pageoff +
302 kd->kvm_dump.dump_pageshift);
311 long hash = DUMP_HASH(&kd->kvm_dump, as, page);
318 dmp > kd->kvm_map + kd->kvm_dump.dump_hashmask ||
320 DUMP_HASH(&kd->kvm_dump, dmp->dm_as, dmp->dm_va) !=
370 uintptr_t pageoff = addr & (kd->kvm_dump.dump_pagesize - 1);
371 ssize_t len = MIN(resid, kd->kvm_dump.dump_pagesize - pageoff);
463 (u_offset_t)(off - kd->kvm_dump.dump_data) >>
464 kd->kvm_dump.dump_pageshift;
466 kd->kvm_dump.dump_pageshift) +
467 (addr & (kd->kvm_dump.dump_pagesize - 1)));