Lines Matching defs:php
157 physmem_add_hash(struct physmem_hash *php)
178 if ((php->ph_base_pa >= temp->ph_base_pa &&
179 php->ph_base_pa < temp->ph_base_pa +
181 (temp->ph_base_pa >= php->ph_base_pa &&
182 temp->ph_base_pa < php->ph_base_pa +
183 php->ph_seg_len)) {
189 php->ph_next = iterator->pph_hash;
190 iterator->pph_hash = php;
204 newp->pph_hash = php;
205 php->ph_next = NULL;
227 struct physmem_hash *php;
235 php = proc_hp->pph_hash;
236 while (php != NULL) {
237 if ((req_paddr >= php->ph_base_pa) &&
239 php->ph_base_pa + php->ph_seg_len)) {
240 return (php);
242 php = php->ph_next;
255 struct physmem_hash *php;
263 php = proc_hp->pph_hash;
264 while (php != NULL) {
265 if ((uint64_t)(uintptr_t)php == p_cookie) {
268 php = php->ph_next;
354 struct physmem_hash *php;
369 php = kmem_zalloc(sizeof (struct physmem_hash), KM_SLEEP);
380 php->ph_vnode = vp;
400 kmem_free(php, sizeof (*php));
418 php->ph_base_pa = base_pa;
419 php->ph_base_va = uvaddr;
420 php->ph_seg_len = len;
422 pspp->cookie = (uint64_t)(uintptr_t)php;
423 ret = physmem_add_hash(php);
429 kmem_free(php, sizeof (*php));
463 struct physmem_hash *php;
473 php = physmem_get_hash(req_paddr, PAGESIZE, curproc);
474 if (php == NULL) {
478 vp = php->ph_vnode;
479 uvaddr = php->ph_base_va + (req_paddr - php->ph_base_pa);
534 struct physmem_hash *php;
564 php = physmem_get_hash(paddr, PAGESIZE, procp);
565 if (php == NULL) {
575 vp = php->ph_vnode;