Lines Matching refs:pwp

3359 	struct watched_page *pwp;  in as_setwatch()  local
3370 for (pwp = avl_first(&as->a_wpage); pwp != NULL; in as_setwatch()
3371 pwp = AVL_NEXT(&as->a_wpage, pwp)) { in as_setwatch()
3374 vaddr = pwp->wp_vaddr; in as_setwatch()
3375 if (pwp->wp_oprot != 0 || /* already set up */ in as_setwatch()
3380 pwp->wp_oprot = prot; in as_setwatch()
3381 if (pwp->wp_read) in as_setwatch()
3383 if (pwp->wp_write) in as_setwatch()
3385 if (pwp->wp_exec) in as_setwatch()
3387 if (!(pwp->wp_flags & WP_NOWATCH) && prot != pwp->wp_oprot) { in as_setwatch()
3390 pwp->wp_oprot = 0; in as_setwatch()
3396 pwp->wp_prot = prot; in as_setwatch()
3406 struct watched_page *pwp; in as_clearwatch() local
3417 for (pwp = avl_first(&as->a_wpage); pwp != NULL; in as_clearwatch()
3418 pwp = AVL_NEXT(&as->a_wpage, pwp)) { in as_clearwatch()
3421 vaddr = pwp->wp_vaddr; in as_clearwatch()
3422 if (pwp->wp_oprot == 0 || /* not set up */ in as_clearwatch()
3426 if ((prot = pwp->wp_oprot) != pwp->wp_prot) { in as_clearwatch()
3434 pwp->wp_oprot = 0; in as_clearwatch()
3435 pwp->wp_prot = 0; in as_clearwatch()
3445 struct watched_page *pwp; in as_setwatchprot() local
3460 if ((pwp = avl_find(&as->a_wpage, &tpw, &where)) == NULL) in as_setwatchprot()
3461 pwp = avl_nearest(&as->a_wpage, where, AVL_AFTER); in as_setwatchprot()
3463 while (pwp != NULL && pwp->wp_vaddr < eaddr) { in as_setwatchprot()
3465 vaddr = pwp->wp_vaddr; in as_setwatchprot()
3468 if (pwp->wp_read) in as_setwatchprot()
3470 if (pwp->wp_write) in as_setwatchprot()
3472 if (pwp->wp_exec) in as_setwatchprot()
3474 if (!(pwp->wp_flags & WP_NOWATCH) && wprot != pwp->wp_oprot) { in as_setwatchprot()
3488 pwp->wp_oprot = prot; in as_setwatchprot()
3489 pwp->wp_prot = wprot; in as_setwatchprot()
3491 pwp = AVL_NEXT(&as->a_wpage, pwp); in as_setwatchprot()
3502 struct watched_page *pwp; in as_clearwatchprot() local
3513 if ((pwp = avl_find(&as->a_wpage, &tpw, &where)) == NULL) in as_clearwatchprot()
3514 pwp = avl_nearest(&as->a_wpage, where, AVL_AFTER); in as_clearwatchprot()
3518 while (pwp != NULL && pwp->wp_vaddr < eaddr) { in as_clearwatchprot()
3520 if ((prot = pwp->wp_oprot) != 0) { in as_clearwatchprot()
3523 if (prot != pwp->wp_prot) { in as_clearwatchprot()
3525 seg = as_segat(as, pwp->wp_vaddr); in as_clearwatchprot()
3528 err = SEGOP_SETPROT(seg, pwp->wp_vaddr, in as_clearwatchprot()
3537 pwp->wp_oprot = 0; in as_clearwatchprot()
3538 pwp->wp_prot = 0; in as_clearwatchprot()
3541 pwp = AVL_NEXT(&as->a_wpage, pwp); in as_clearwatchprot()