Lines Matching full:pa
71 _kvm_pa2off(kvm_t *kd, uint64_t pa, off_t *ofs) in _kvm_pa2off() argument
78 *ofs = pa; in _kvm_pa2off()
79 return (I386_PAGE_SIZE - (pa & I386_PAGE_MASK)); in _kvm_pa2off()
84 while (n && (pa < p->p_paddr || pa >= p->p_paddr + p->p_memsz)) in _kvm_pa2off()
88 *ofs = (pa - p->p_paddr) + p->p_offset; in _kvm_pa2off()
89 return (I386_PAGE_SIZE - (pa & I386_PAGE_MASK)); in _kvm_pa2off()
116 i386_physaddr_t pa; in _i386_initvtop() local
153 if (kvm_read2(kd, (nl[0].n_value - kernbase), &pa, in _i386_initvtop()
154 sizeof(pa)) != sizeof(pa)) { in _i386_initvtop()
158 pa = le32toh(pa); in _i386_initvtop()
165 if (kvm_read2(kd, pa + (i * sizeof(pa64)), &pa64, in _i386_initvtop()
190 if (kvm_read2(kd, (nl[0].n_value - kernbase), &pa, in _i386_initvtop()
191 sizeof(pa)) != sizeof(pa)) { in _i386_initvtop()
195 pa = le32toh(pa); in _i386_initvtop()
201 if (kvm_read2(kd, pa, PTD, I386_PAGE_SIZE) != I386_PAGE_SIZE) { in _i386_initvtop()
212 _i386_vatop(kvm_t *kd, kvaddr_t va, off_t *pa) in _i386_vatop() argument
232 * not yet set) then return pa == va to avoid infinite recursion. in _i386_vatop()
235 s = _kvm_pa2off(kd, va, pa); in _i386_vatop()
259 s = _kvm_pa2off(kd, a, pa); in _i386_vatop()
289 s = _kvm_pa2off(kd, a, pa); in _i386_vatop()
302 _i386_vatop_pae(kvm_t *kd, kvaddr_t va, off_t *pa) in _i386_vatop_pae() argument
322 * not yet set) then return pa == va to avoid infinite recursion. in _i386_vatop_pae()
325 s = _kvm_pa2off(kd, va, pa); in _i386_vatop_pae()
349 s = _kvm_pa2off(kd, a, pa); in _i386_vatop_pae()
379 s = _kvm_pa2off(kd, a, pa); in _i386_vatop_pae()
393 _i386_kvatop(kvm_t *kd, kvaddr_t va, off_t *pa) in _i386_kvatop() argument
401 return (_i386_vatop_pae(kd, va, pa)); in _i386_kvatop()
403 return (_i386_vatop(kd, va, pa)); in _i386_kvatop()