Lines Matching refs:nw
99 size_t nw; in subpage_prot_clear() local
121 nw = PTRS_PER_PTE - i; in subpage_prot_clear()
122 if (addr + (nw << PAGE_SHIFT) > next) in subpage_prot_clear()
123 nw = (next - addr) >> PAGE_SHIFT; in subpage_prot_clear()
125 memset(spp, 0, nw * sizeof(u32)); in subpage_prot_clear()
128 hpte_flush_range(mm, addr, nw); in subpage_prot_clear()
196 size_t nw; in sys_subpage_prot() local
248 nw = PTRS_PER_PTE - i; in sys_subpage_prot()
249 if (addr + (nw << PAGE_SHIFT) > next) in sys_subpage_prot()
250 nw = (next - addr) >> PAGE_SHIFT; in sys_subpage_prot()
254 if (__copy_from_user(spp, map, nw * sizeof(u32))) in sys_subpage_prot()
256 map += nw; in sys_subpage_prot()
260 hpte_flush_range(mm, addr, nw); in sys_subpage_prot()