Lines Matching defs:lpgaddr

249 #define	CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr) {	    \
251 lpgaddr = (caddr_t)P2ALIGN((uintptr_t)(addr), pgsz); \
252 ASSERT(lpgaddr >= (seg)->s_base); \
255 ASSERT(lpgeaddr > lpgaddr); \
258 lpgeaddr = lpgaddr = (addr); \
3824 segvn_fault_vnodepages(struct hat *hat, struct seg *seg, caddr_t lpgaddr,
3837 caddr_t a = lpgaddr;
4548 * Size up case. Note lpgaddr may only be needed for
4552 ASSERT(a >= lpgaddr);
4560 * Size down case. Note lpgaddr may only be needed for
4576 ASSERT(a >= lpgaddr);
4591 if (type == F_SOFTLOCK && a > lpgaddr) {
4593 segvn_softunlock(seg, lpgaddr, a - lpgaddr, S_OTHER);
4633 segvn_fault_anonpages(struct hat *hat, struct seg *seg, caddr_t lpgaddr,
4645 caddr_t a = lpgaddr;
4717 ASSERT(a > lpgaddr);
4847 * Size up case. Note lpgaddr may only be needed for
4852 ASSERT(a >= lpgaddr);
4859 * Size down case. Note lpgaddr may only be needed for
4876 ASSERT(a >= lpgaddr);
4891 if (type == F_SOFTLOCK && a > lpgaddr) {
4893 segvn_softunlock(seg, lpgaddr, a - lpgaddr, S_OTHER);
4938 caddr_t lpgaddr, lpgeaddr;
4958 CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr);
4959 segvn_softunlock(seg, lpgaddr, lpgeaddr - lpgaddr, rw);
5090 CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr,
5092 if (lpgeaddr - lpgaddr > pgsz) {
5163 CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr);
5165 err = segvn_fault_anonpages(hat, seg, lpgaddr,
5168 err = segvn_fault_vnodepages(hat, seg, lpgaddr,
6727 caddr_t lpgaddr, lpgeaddr;
6747 CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr);
6748 ASSERT(flag == SDR_RANGE || eaddr < lpgeaddr || addr > lpgaddr);
6751 badseg1 = nseg = segvn_split_seg(seg, lpgaddr);
6753 ASSERT(badseg1->s_base == lpgaddr);
6754 ASSERT(badseg1->s_size == lpgeaddr - lpgaddr);
6755 } else if (addr != lpgaddr) {
6757 badseg1 = nseg = segvn_split_seg(seg, lpgaddr);
6758 if (eaddr != lpgeaddr && eaddr > lpgaddr + pgsz &&
6759 eaddr < lpgaddr + 2 * pgsz) {
6761 ASSERT(badseg1->s_base == lpgaddr);
6764 nseg = segvn_split_seg(nseg, lpgaddr + pgsz);
6765 ASSERT(badseg1->s_base == lpgaddr);
6767 if (eaddr != lpgeaddr && eaddr > lpgaddr + pgsz) {
6768 ASSERT(lpgeaddr - lpgaddr > 2 * pgsz);
8821 caddr_t lpgaddr, lpgeaddr;
8908 CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr);
8909 adjustpages = btop((uintptr_t)(addr - lpgaddr));
8911 lpgaddr = addr;
8946 lpgaddr = (caddr_t)P2ALIGN((uintptr_t)addr,
8948 if (lpgaddr < seg->s_base) {
8949 lpgaddr = seg->s_base;
8956 lpgaddr = seg->s_base;
8959 lpgaddr = addr - ptob(aix - aaix);
8960 ASSERT(lpgaddr >= seg->s_base);
8963 if (svd->pageprot && lpgaddr != addr) {
8964 struct vpage *vp = &svd->vpage[seg_page(seg, lpgaddr)];
8973 lpgaddr = addr;
9017 adjustpages = btop((uintptr_t)(addr - lpgaddr));
9028 paddr = (caddr_t)((lpgaddr - seg->s_base) +
9033 paddr = lpgaddr;
9082 len = lpgeaddr - lpgaddr;
9165 a = lpgaddr;
9188 pplist = seg_plookup(seg, pamp, paddr, lpgeaddr - lpgaddr, rw, pflags);
9191 npages = btop((uintptr_t)(lpgeaddr - lpgaddr));
9221 wlen = lpgeaddr - lpgaddr;
9231 for (a = lpgaddr, wlen = 0; a < lpgeaddr; a += pgsz) {
9249 ASSERT(rw == S_READ || wlen == lpgeaddr - lpgaddr);
9250 ASSERT(rw == S_WRITE || wlen <= lpgeaddr - lpgaddr);
9265 lpgeaddr - lpgaddr, pflags) == SEGP_SUCCESS) {
9266 addr = lpgaddr;
9267 len = lpgeaddr - lpgaddr;