Lines Matching refs:amp
100 struct atomic_mapped_page *amp; in kmap_atomic_register() local
106 amp = &__get_cpu_var(amps).per_type[type]; in kmap_atomic_register()
107 amp->page = page; in kmap_atomic_register()
108 amp->cpu = smp_processor_id(); in kmap_atomic_register()
109 amp->va = va; in kmap_atomic_register()
115 list_add(&->list, &_list); in kmap_atomic_register()
133 struct atomic_mapped_page *amp; in kmap_atomic_unregister() local
136 list_for_each_entry(amp, &_list, list) { in kmap_atomic_unregister()
137 if (amp->page == page && amp->cpu == cpu && amp->va == va) in kmap_atomic_unregister()
140 BUG_ON(&->list == &_list); in kmap_atomic_unregister()
141 list_del(&->list); in kmap_atomic_unregister()
146 static void kmap_atomic_fix_one_kpte(struct atomic_mapped_page *amp, in kmap_atomic_fix_one_kpte() argument
149 pte_t *ptep = kmap_get_pte(amp->va); in kmap_atomic_fix_one_kpte()
152 flush_remote(0, 0, NULL, amp->va, PAGE_SIZE, PAGE_SIZE, in kmap_atomic_fix_one_kpte()
153 cpumask_of(amp->cpu), NULL, 0); in kmap_atomic_fix_one_kpte()
160 pte_t pte = mk_pte(amp->page, page_to_kpgprot(amp->page)); in kmap_atomic_fix_one_kpte()
177 struct atomic_mapped_page *amp; in kmap_atomic_fix_kpte() local
180 list_for_each_entry(amp, &_list, list) { in kmap_atomic_fix_kpte()
181 if (amp->page == page) in kmap_atomic_fix_kpte()
182 kmap_atomic_fix_one_kpte(amp, finished); in kmap_atomic_fix_kpte()