search for: __paddr

Displaying 2 results from an estimated 2 matches for "__paddr".

Did you mean: p_paddr
2007 Apr 18
0
[PATCH 4/5] Add address translation
...,6 +388,28 @@ static inline pte_t pte_modify(pte_t pte extern pte_t *lookup_address(unsigned long address); /* + * Helper function that returns physical page for virtual address. + * This assumes the mapping is valid. + */ +#define virt_to_pfn(_address) \ +({ \ + unsigned long long __paddr; \ + pgd_t *pgd = pgd_offset_k(_address); \ + pud_t *pud = pud_offset(pgd, (_address)); \ + pmd_t *pmd = pmd_offset(pud, (_address)); \ + if (pmd_large(*pmd)) \ + __paddr = (pmd_val(*pmd) & LARGE_PAGE_MASK) | \ + ((_address) & ~LARGE_PAGE_MASK); \ + else { \ + pte_t *pt...
2007 Apr 18
0
[PATCH 4/5] Add address translation
...,6 +388,28 @@ static inline pte_t pte_modify(pte_t pte extern pte_t *lookup_address(unsigned long address); /* + * Helper function that returns physical page for virtual address. + * This assumes the mapping is valid. + */ +#define virt_to_pfn(_address) \ +({ \ + unsigned long long __paddr; \ + pgd_t *pgd = pgd_offset_k(_address); \ + pud_t *pud = pud_offset(pgd, (_address)); \ + pmd_t *pmd = pmd_offset(pud, (_address)); \ + if (pmd_large(*pmd)) \ + __paddr = (pmd_val(*pmd) & LARGE_PAGE_MASK) | \ + ((_address) & ~LARGE_PAGE_MASK); \ + else { \ + pte_t *pt...