Lines Matching refs:spt

24 	struct subpage_prot_table *spt = mm_ctx_subpage_prot(&mm->context);  in subpage_prot_free()  local
28 if (!spt) in subpage_prot_free()
32 if (spt->low_prot[i]) { in subpage_prot_free()
33 free_page((unsigned long)spt->low_prot[i]); in subpage_prot_free()
34 spt->low_prot[i] = NULL; in subpage_prot_free()
39 p = spt->protptrs[i]; in subpage_prot_free()
42 spt->protptrs[i] = NULL; in subpage_prot_free()
43 for (j = 0; j < SBP_L2_COUNT && addr < spt->maxaddr; in subpage_prot_free()
49 spt->maxaddr = 0; in subpage_prot_free()
50 kfree(spt); in subpage_prot_free()
93 struct subpage_prot_table *spt; in subpage_prot_clear() local
101 spt = mm_ctx_subpage_prot(&mm->context); in subpage_prot_clear()
102 if (!spt) in subpage_prot_clear()
106 if (limit > spt->maxaddr) in subpage_prot_clear()
107 limit = spt->maxaddr; in subpage_prot_clear()
111 spm = spt->low_prot; in subpage_prot_clear()
113 spm = spt->protptrs[addr >> SBP_L3_SHIFT]; in subpage_prot_clear()
188 struct subpage_prot_table *spt; in SYSCALL_DEFINE3() local
218 spt = mm_ctx_subpage_prot(&mm->context); in SYSCALL_DEFINE3()
219 if (!spt) { in SYSCALL_DEFINE3()
224 spt = kzalloc(sizeof(struct subpage_prot_table), GFP_KERNEL); in SYSCALL_DEFINE3()
225 if (!spt) { in SYSCALL_DEFINE3()
229 mm->context.hash_context->spt = spt; in SYSCALL_DEFINE3()
237 spm = spt->low_prot; in SYSCALL_DEFINE3()
239 spm = spt->protptrs[addr >> SBP_L3_SHIFT]; in SYSCALL_DEFINE3()
244 spt->protptrs[addr >> SBP_L3_SHIFT] = spm; in SYSCALL_DEFINE3()
275 if (limit > spt->maxaddr) in SYSCALL_DEFINE3()
276 spt->maxaddr = limit; in SYSCALL_DEFINE3()