Lines Matching refs:idx
25 int idx, type; in kmap_atomic_high_prot() local
28 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_high_prot()
29 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_high_prot()
31 BUG_ON(!pte_none(*(kmap_pte - idx))); in kmap_atomic_high_prot()
33 set_pte(kmap_pte-idx, mk_pte(page, prot)); in kmap_atomic_high_prot()
43 int idx; in kunmap_atomic_high() local
49 idx = KM_TYPE_NR*smp_processor_id() + kmap_atomic_idx(); in kunmap_atomic_high()
51 BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in kunmap_atomic_high()
53 pte_clear(&init_mm, vaddr, kmap_pte - idx); in kunmap_atomic_high()
56 (void) idx; /* to kill a warning */ in kunmap_atomic_high()
69 int idx, type; in kmap_atomic_pfn() local
74 idx = type + KM_TYPE_NR*smp_processor_id(); in kmap_atomic_pfn()
75 vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx); in kmap_atomic_pfn()
76 set_pte(kmap_pte-idx, pfn_pte(pfn, PAGE_KERNEL)); in kmap_atomic_pfn()