Lines Matching defs:saddr

1381 		caddr_t saddr, naddr;
1384 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1386 &saddr, &naddr, eaddr);
1387 if (saddr != naddr)
1636 caddr_t saddr, naddr;
1639 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1641 &saddr, &naddr, eaddr);
1642 if (saddr == naddr)
1647 mp->pr_vaddr = (uintptr_t)saddr;
1648 mp->pr_size = naddr - saddr;
1649 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
1657 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
1659 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
1663 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL)))
1689 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
1747 caddr_t saddr, naddr;
1750 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1752 &saddr, &naddr, eaddr);
1753 if (saddr == naddr)
1758 mp->pr_vaddr = (caddr32_t)(uintptr_t)saddr;
1759 mp->pr_size = (size32_t)(naddr - saddr);
1760 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
1768 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
1770 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
1774 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL)))
1801 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
1849 caddr_t saddr, naddr;
1853 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1854 (void) pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr);
1855 if ((npage = (naddr - saddr) / PAGESIZE) != 0)
1879 caddr_t saddr, naddr;
1883 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1884 (void) pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr);
1885 if ((npage = (naddr - saddr) / PAGESIZE) != 0)
1931 caddr_t saddr, naddr;
1934 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
1942 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr);
1943 if ((len = (size_t)(naddr - saddr)) == 0)
1978 pmp->pr_vaddr = (uintptr_t)saddr;
1980 pmp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
1988 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
1990 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
1994 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL)))
2004 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
2028 hat_getstat(as, saddr, len, hatid,
2078 caddr_t saddr, naddr;
2081 for (saddr = seg->s_base; saddr < eaddr; saddr = naddr) {
2089 prot = pr_getprot(seg, 0, &tmp, &saddr, &naddr, eaddr);
2090 if ((len = (size_t)(naddr - saddr)) == 0)
2125 pmp->pr_vaddr = (caddr32_t)(uintptr_t)saddr;
2127 pmp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
2135 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
2137 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
2141 (SEGOP_GETVP(seg, saddr, &vp) != 0 || vp == NULL)))
2151 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
2175 hat_getstat(as, saddr, len, hatid,
3617 caddr_t saddr;
3629 saddr = addr;
3669 SEGOP_GETPROT(seg, saddr, len - 1, pagev->pg_protv);
3842 caddr_t saddr = *saddrp;
3857 ASSERT(saddr >= seg->s_base && saddr < eaddr);
3877 if (!check_noreserve && saddr == seg->s_base &&
3880 getwatchprot(as, saddr, &prot);
3883 } else if (saddr == seg->s_base && seg->s_ops == &segdev_ops &&
3886 getwatchprot(as, saddr, &prot);
3899 if (saddr == seg->s_base) {
3901 saddr = pr_pagev_fill(pagev, seg, saddr, eaddr);
3906 ASSERT(saddr <= eaddr);
3907 *saddrp = saddr;
3909 if (saddr == eaddr) {
3910 naddr = saddr;
3966 pr_getpagesize(struct seg *seg, caddr_t saddr, caddr_t *naddrp, caddr_t eaddr)
3971 ASSERT(IS_P2ALIGNED(saddr, PAGESIZE));
3973 ASSERT(saddr < eaddr);
3975 pagesize = hatsize = hat_getpagesize(seg->s_as->a_hat, saddr);
3982 saddr += P2NPHASE((uintptr_t)saddr, pagesize);
3984 while (saddr < eaddr) {
3985 if (hatsize != hat_getpagesize(seg->s_as->a_hat, saddr))
3987 ASSERT(IS_P2ALIGNED(saddr, pagesize));
3988 saddr += pagesize;
3991 *naddrp = ((saddr < eaddr) ? saddr : eaddr);
4026 caddr_t saddr, naddr, baddr;
4038 for (saddr = seg->s_base; saddr < eaddr; saddr = baddr) {
4039 prot = pr_getprot(seg, 0, &tmp, &saddr, &baddr, eaddr);
4040 ASSERT(baddr >= saddr && baddr <= eaddr);
4048 for (; saddr < baddr; saddr = naddr) {
4049 psz = pr_getpagesize(seg, saddr, &naddr, baddr);
4050 ASSERT(naddr >= saddr && naddr <= baddr);
4054 mp->pr_vaddr = (uintptr_t)saddr;
4055 mp->pr_size = naddr - saddr;
4056 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
4064 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
4066 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
4070 (SEGOP_GETVP(seg, saddr, &vp) != 0 ||
4093 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
4121 npages = ((uintptr_t)(naddr - saddr)) >>
4125 SEGOP_INCORE(seg, saddr, naddr - saddr, parr);
4210 caddr_t saddr, naddr, baddr;
4222 for (saddr = seg->s_base; saddr < eaddr; saddr = baddr) {
4223 prot = pr_getprot(seg, 0, &tmp, &saddr, &baddr, eaddr);
4224 ASSERT(baddr >= saddr && baddr <= eaddr);
4232 for (; saddr < baddr; saddr = naddr) {
4233 psz = pr_getpagesize(seg, saddr, &naddr, baddr);
4234 ASSERT(naddr >= saddr && naddr <= baddr);
4238 mp->pr_vaddr = (caddr32_t)(uintptr_t)saddr;
4239 mp->pr_size = (size32_t)(naddr - saddr);
4240 mp->pr_offset = SEGOP_GETOFFSET(seg, saddr);
4248 if (SEGOP_GETTYPE(seg, saddr) & MAP_SHARED)
4250 if (SEGOP_GETTYPE(seg, saddr) & MAP_NORESERVE)
4254 (SEGOP_GETVP(seg, saddr, &vp) != 0 ||
4277 SEGOP_GETVP(seg, saddr, &vp) == 0 &&
4306 npages = ((uintptr_t)(naddr - saddr)) >>
4310 SEGOP_INCORE(seg, saddr, naddr - saddr, parr);