Lines Matching refs:pa
66 _kvm_pa2off(kvm_t *kd, uint64_t pa, off_t *ofs) in _kvm_pa2off() argument
73 *ofs = pa; in _kvm_pa2off()
74 return (AMD64_PAGE_SIZE - (pa & AMD64_PAGE_MASK)); in _kvm_pa2off()
79 while (n && (pa < p->p_paddr || pa >= p->p_paddr + p->p_memsz)) in _kvm_pa2off()
83 *ofs = (pa - p->p_paddr) + p->p_offset; in _kvm_pa2off()
84 return (AMD64_PAGE_SIZE - (pa & AMD64_PAGE_MASK)); in _kvm_pa2off()
111 amd64_physaddr_t pa; in _amd64_initvtop() local
144 if (kvm_read2(kd, (nl[0].n_value - kernbase), &pa, sizeof(pa)) != in _amd64_initvtop()
145 sizeof(pa)) { in _amd64_initvtop()
149 pa = le64toh(pa); in _amd64_initvtop()
155 if (kvm_read2(kd, pa, PML4, AMD64_PAGE_SIZE) != AMD64_PAGE_SIZE) { in _amd64_initvtop()
165 _amd64_vatop(kvm_t *kd, kvaddr_t va, off_t *pa) in _amd64_vatop() argument
192 s = _kvm_pa2off(kd, va, pa); in _amd64_vatop()
231 s = _kvm_pa2off(kd, a, pa); in _amd64_vatop()
263 s = _kvm_pa2off(kd, a, pa); in _amd64_vatop()
290 s = _kvm_pa2off(kd, a, pa); in _amd64_vatop()
303 _amd64_kvatop(kvm_t *kd, kvaddr_t va, off_t *pa) in _amd64_kvatop() argument
310 return (_amd64_vatop(kd, va, pa)); in _amd64_kvatop()