Lines Matching refs:vaddr

143 struct page *__kmap_to_page(void *vaddr)  in __kmap_to_page()  argument
145 unsigned long addr = (unsigned long)vaddr; in __kmap_to_page()
206 unsigned long vaddr; in map_new_virtual() local
248 vaddr = PKMAP_ADDR(last_pkmap_nr); in map_new_virtual()
249 set_pte_at(&init_mm, vaddr, in map_new_virtual()
253 set_page_address(page, (void *)vaddr); in map_new_virtual()
255 return vaddr; in map_new_virtual()
268 unsigned long vaddr; in kmap_high() local
275 vaddr = (unsigned long)page_address(page); in kmap_high()
276 if (!vaddr) in kmap_high()
277 vaddr = map_new_virtual(page); in kmap_high()
278 pkmap_count[PKMAP_NR(vaddr)]++; in kmap_high()
279 BUG_ON(pkmap_count[PKMAP_NR(vaddr)] < 2); in kmap_high()
281 return (void *) vaddr; in kmap_high()
298 unsigned long vaddr, flags; in kmap_high_get() local
301 vaddr = (unsigned long)page_address(page); in kmap_high_get()
302 if (vaddr) { in kmap_high_get()
303 BUG_ON(pkmap_count[PKMAP_NR(vaddr)] < 1); in kmap_high_get()
304 pkmap_count[PKMAP_NR(vaddr)]++; in kmap_high_get()
307 return (void *) vaddr; in kmap_high_get()
320 unsigned long vaddr; in kunmap_high() local
328 vaddr = (unsigned long)page_address(page); in kunmap_high()
329 BUG_ON(!vaddr); in kunmap_high()
330 nr = PKMAP_NR(vaddr); in kunmap_high()
454 # define arch_kmap_local_post_map(vaddr, pteval) do { } while (0) argument
458 # define arch_kmap_local_pre_unmap(vaddr) do { } while (0) argument
462 # define arch_kmap_local_post_unmap(vaddr) do { } while (0) argument
470 #define arch_kmap_local_unmap_idx(idx, vaddr) kmap_local_calc_idx(idx) argument
481 #define arch_kmap_local_set_pte(mm, vaddr, ptep, ptev) \ argument
482 set_pte_at(mm, vaddr, ptep, ptev)
486 static inline bool kmap_high_unmap_local(unsigned long vaddr) in kmap_high_unmap_local() argument
489 if (vaddr >= PKMAP_ADDR(0) && vaddr < PKMAP_ADDR(LAST_PKMAP)) { in kmap_high_unmap_local()
490 kunmap_high(pte_page(pkmap_page_table[PKMAP_NR(vaddr)])); in kmap_high_unmap_local()
504 static pte_t *kmap_get_pte(unsigned long vaddr, int idx) in kmap_get_pte() argument
511 return virt_to_kpte(vaddr); in kmap_get_pte()
520 unsigned long vaddr; in __kmap_local_pfn_prot() local
530 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in __kmap_local_pfn_prot()
531 kmap_pte = kmap_get_pte(vaddr, idx); in __kmap_local_pfn_prot()
534 arch_kmap_local_set_pte(&init_mm, vaddr, kmap_pte, pteval); in __kmap_local_pfn_prot()
535 arch_kmap_local_post_map(vaddr, pteval); in __kmap_local_pfn_prot()
539 return (void *)vaddr; in __kmap_local_pfn_prot()
564 void kunmap_local_indexed(void *vaddr) in kunmap_local_indexed() argument
566 unsigned long addr = (unsigned long) vaddr & PAGE_MASK; in kunmap_local_indexed()