Lines Matching refs:saddr

1425 		caddr_t saddr, naddr;  in prnsegs()  local
1432 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prnsegs()
1434 &saddr, &naddr, eaddr); in prnsegs()
1435 if (saddr != naddr) { in prnsegs()
1866 caddr_t saddr, naddr; in prgetmap() local
1873 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prgetmap()
1875 &saddr, &naddr, eaddr); in prgetmap()
1876 if (saddr == naddr) in prgetmap()
1881 mp->pr_vaddr = (uintptr_t)saddr; in prgetmap()
1882 mp->pr_size = naddr - saddr; in prgetmap()
1883 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prgetmap()
1891 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prgetmap()
1893 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prgetmap()
1897 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL))) in prgetmap()
1923 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prgetmap()
1981 caddr_t saddr, naddr; in prgetmap32() local
1988 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prgetmap32()
1990 &saddr, &naddr, eaddr); in prgetmap32()
1991 if (saddr == naddr) in prgetmap32()
1996 mp->pr_vaddr = (caddr32_t)(uintptr_t)saddr; in prgetmap32()
1997 mp->pr_size = (size32_t)(naddr - saddr); in prgetmap32()
1998 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prgetmap32()
2006 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prgetmap32()
2008 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prgetmap32()
2012 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL))) in prgetmap32()
2039 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prgetmap32()
2087 caddr_t saddr, naddr; in prpdsize() local
2095 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prpdsize()
2096 (void) pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in prpdsize()
2097 if ((npage = (naddr - saddr) / PAGESIZE) != 0) in prpdsize()
2121 caddr_t saddr, naddr; in prpdsize32() local
2129 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prpdsize32()
2130 (void) pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in prpdsize32()
2131 if ((npage = (naddr - saddr) / PAGESIZE) != 0) in prpdsize32()
2177 caddr_t saddr, naddr; in prpdread() local
2184 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prpdread()
2192 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in prpdread()
2193 if ((len = (size_t)(naddr - saddr)) == 0) in prpdread()
2228 pmp->pr_vaddr = (uintptr_t)saddr; in prpdread()
2230 pmp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prpdread()
2238 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prpdread()
2240 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prpdread()
2244 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL))) in prpdread()
2254 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prpdread()
2278 hat_getstat(as, saddr, len, hatid, in prpdread()
2328 caddr_t saddr, naddr; in prpdread32() local
2335 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) { in prpdread32()
2343 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr); in prpdread32()
2344 if ((len = (size_t)(naddr - saddr)) == 0) in prpdread32()
2379 pmp->pr_vaddr = (caddr32_t)(uintptr_t)saddr; in prpdread32()
2381 pmp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prpdread32()
2389 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prpdread32()
2391 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prpdread32()
2395 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL))) in prpdread32()
2405 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prpdread32()
2429 hat_getstat(as, saddr, len, hatid, in prpdread32()
4401 caddr_t saddr; in pr_pagev_fill() local
4413 saddr = addr; in pr_pagev_fill()
4453 SEGOP_GETPROT(seg, saddr, len - 1, pagev->pg_protv); in pr_pagev_fill()
4626 caddr_t saddr = *saddrp; in pr_getprot() local
4641 ASSERT(saddr >= seg->s_base && saddr < eaddr); in pr_getprot()
4661 if (!check_noreserve && saddr == seg->s_base && in pr_getprot()
4664 getwatchprot(as, saddr, &prot); in pr_getprot()
4667 } else if (saddr == seg->s_base && seg->s_ops == &segdev_ops && in pr_getprot()
4670 getwatchprot(as, saddr, &prot); in pr_getprot()
4683 if (saddr == seg->s_base) { in pr_getprot()
4685 saddr = pr_pagev_fill(pagev, seg, saddr, eaddr); in pr_getprot()
4690 ASSERT(saddr <= eaddr); in pr_getprot()
4691 *saddrp = saddr; in pr_getprot()
4693 if (saddr == eaddr) { in pr_getprot()
4694 naddr = saddr; in pr_getprot()
4750 pr_getpagesize(struct seg *seg, caddr_t saddr, caddr_t *naddrp, caddr_t eaddr) in pr_getpagesize() argument
4755 ASSERT(IS_P2ALIGNED(saddr, PAGESIZE)); in pr_getpagesize()
4757 ASSERT(saddr < eaddr); in pr_getpagesize()
4759 pagesize = hatsize = hat_getpagesize(seg->s_as->a_hat, saddr); in pr_getpagesize()
4766 saddr += P2NPHASE((uintptr_t)saddr, pagesize); in pr_getpagesize()
4768 while (saddr < eaddr) { in pr_getpagesize()
4769 if (hatsize != hat_getpagesize(seg->s_as->a_hat, saddr)) in pr_getpagesize()
4771 ASSERT(IS_P2ALIGNED(saddr, pagesize)); in pr_getpagesize()
4772 saddr += pagesize; in pr_getpagesize()
4775 *naddrp = ((saddr < eaddr) ? saddr : eaddr); in pr_getpagesize()
4810 caddr_t saddr, naddr, baddr; in prgetxmap() local
4825 for (saddr = seg->s_base; saddr < eaddr; saddr = baddr) { in prgetxmap()
4826 prot = pr_getprot(seg, 0, &tmp, &saddr, &baddr, eaddr); in prgetxmap()
4827 ASSERT(baddr >= saddr && baddr <= eaddr); in prgetxmap()
4835 for (; saddr < baddr; saddr = naddr) { in prgetxmap()
4836 psz = pr_getpagesize(seg, saddr, &naddr, baddr); in prgetxmap()
4837 ASSERT(naddr >= saddr && naddr <= baddr); in prgetxmap()
4841 mp->pr_vaddr = (uintptr_t)saddr; in prgetxmap()
4842 mp->pr_size = naddr - saddr; in prgetxmap()
4843 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prgetxmap()
4851 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prgetxmap()
4853 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prgetxmap()
4857 (SEGOP_GETVP(seg, saddr, &vp) != 0 || in prgetxmap()
4880 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prgetxmap()
4908 npages = ((uintptr_t)(naddr - saddr)) >> in prgetxmap()
4912 SEGOP_INCORE(seg, saddr, naddr - saddr, parr); in prgetxmap()
5010 caddr_t saddr, naddr, baddr; in prgetxmap32() local
5026 for (saddr = seg->s_base; saddr < eaddr; saddr = baddr) { in prgetxmap32()
5027 prot = pr_getprot(seg, 0, &tmp, &saddr, &baddr, eaddr); in prgetxmap32()
5028 ASSERT(baddr >= saddr && baddr <= eaddr); in prgetxmap32()
5036 for (; saddr < baddr; saddr = naddr) { in prgetxmap32()
5037 psz = pr_getpagesize(seg, saddr, &naddr, baddr); in prgetxmap32()
5038 ASSERT(naddr >= saddr && naddr <= baddr); in prgetxmap32()
5042 mp->pr_vaddr = (caddr32_t)(uintptr_t)saddr; in prgetxmap32()
5043 mp->pr_size = (size32_t)(naddr - saddr); in prgetxmap32()
5044 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr); in prgetxmap32()
5052 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED) in prgetxmap32()
5054 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE) in prgetxmap32()
5058 (SEGOP_GETVP(seg, saddr, &vp) != 0 || in prgetxmap32()
5081 SEGOP_GETVP(seg, saddr, &vp) == 0 && in prgetxmap32()
5110 npages = ((uintptr_t)(naddr - saddr)) >> in prgetxmap32()
5114 SEGOP_INCORE(seg, saddr, naddr - saddr, parr); in prgetxmap32()