Lines Matching refs:address
330 * control the given virtual address.
332 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
338 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address))
344 #define pgd_offset_k(address) pgd_offset(&init_mm, address)
347 extern pte_t *_pte_offset_map(pmd_t *, unsigned long address, enum km_type);
348 #define pte_offset_map(dir, address) \
349 _pte_offset_map(dir, address, KM_PTE0)
350 #define pte_offset_map_nested(dir, address) \
351 _pte_offset_map(dir, address, KM_PTE1)
355 #define pte_offset_map(dir, address) pte_offset_kernel(dir, address)
356 #define pte_offset_map_nested(dir, address) pte_offset_map(dir, address)
372 #define update_mmu_cache(vma, address, pte) do { } while (0)
421 * control the given virtual address.
423 static inline unsigned long pmd_index(unsigned long address)
425 return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1);
429 * A given kernel pmd_t maps to a specific virtual address (either a
454 * control the given virtual address.
456 static inline unsigned long pte_index(unsigned long address)
458 return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);
461 static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address)
463 return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address);