Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pgtable-ppc64-4k.h File Reference

Go to the source code of this file.

Macros

#define PTE_INDEX_SIZE   9
 
#define PMD_INDEX_SIZE   7
 
#define PUD_INDEX_SIZE   9
 
#define PGD_INDEX_SIZE   9
 
#define PTE_TABLE_SIZE   (sizeof(pte_t) << PTE_INDEX_SIZE)
 
#define PMD_TABLE_SIZE   (sizeof(pmd_t) << PMD_INDEX_SIZE)
 
#define PUD_TABLE_SIZE   (sizeof(pud_t) << PUD_INDEX_SIZE)
 
#define PGD_TABLE_SIZE   (sizeof(pgd_t) << PGD_INDEX_SIZE)
 
#define PTRS_PER_PTE   (1 << PTE_INDEX_SIZE)
 
#define PTRS_PER_PMD   (1 << PMD_INDEX_SIZE)
 
#define PTRS_PER_PUD   (1 << PUD_INDEX_SIZE)
 
#define PTRS_PER_PGD   (1 << PGD_INDEX_SIZE)
 
#define PMD_SHIFT   (PAGE_SHIFT + PTE_INDEX_SIZE)
 
#define PMD_SIZE   (1UL << PMD_SHIFT)
 
#define PMD_MASK   (~(PMD_SIZE-1))
 
#define MIN_HUGEPTE_SHIFT   PMD_SHIFT
 
#define PUD_SHIFT   (PMD_SHIFT + PMD_INDEX_SIZE)
 
#define PUD_SIZE   (1UL << PUD_SHIFT)
 
#define PUD_MASK   (~(PUD_SIZE-1))
 
#define PGDIR_SHIFT   (PUD_SHIFT + PUD_INDEX_SIZE)
 
#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PMD_MASKED_BITS   0
 
#define PUD_MASKED_BITS   0
 
#define PGD_MASKED_BITS   0
 
#define pgd_none(pgd)   (!pgd_val(pgd))
 
#define pgd_bad(pgd)   (pgd_val(pgd) == 0)
 
#define pgd_present(pgd)   (pgd_val(pgd) != 0)
 
#define pgd_clear(pgdp)   (pgd_val(*(pgdp)) = 0)
 
#define pgd_page_vaddr(pgd)   (pgd_val(pgd) & ~PGD_MASKED_BITS)
 
#define pgd_page(pgd)   virt_to_page(pgd_page_vaddr(pgd))
 
#define pud_offset(pgdp, addr)
 
#define pud_ERROR(e)   printk("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
 
#define remap_4k_pfn(vma, addr, pfn, prot)   remap_pfn_range((vma), (addr), (pfn), PAGE_SIZE, (prot))
 

Macro Definition Documentation

#define MIN_HUGEPTE_SHIFT   PMD_SHIFT

Definition at line 31 of file pgtable-ppc64-4k.h.

#define pgd_bad (   pgd)    (pgd_val(pgd) == 0)

Definition at line 56 of file pgtable-ppc64-4k.h.

#define pgd_clear (   pgdp)    (pgd_val(*(pgdp)) = 0)

Definition at line 58 of file pgtable-ppc64-4k.h.

#define PGD_INDEX_SIZE   9

Definition at line 11 of file pgtable-ppc64-4k.h.

#define PGD_MASKED_BITS   0

Definition at line 48 of file pgtable-ppc64-4k.h.

#define pgd_none (   pgd)    (!pgd_val(pgd))

Definition at line 55 of file pgtable-ppc64-4k.h.

#define pgd_page (   pgd)    virt_to_page(pgd_page_vaddr(pgd))

Definition at line 60 of file pgtable-ppc64-4k.h.

#define pgd_page_vaddr (   pgd)    (pgd_val(pgd) & ~PGD_MASKED_BITS)

Definition at line 59 of file pgtable-ppc64-4k.h.

#define pgd_present (   pgd)    (pgd_val(pgd) != 0)

Definition at line 57 of file pgtable-ppc64-4k.h.

#define PGD_TABLE_SIZE   (sizeof(pgd_t) << PGD_INDEX_SIZE)

Definition at line 17 of file pgtable-ppc64-4k.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

Definition at line 41 of file pgtable-ppc64-4k.h.

#define PGDIR_SHIFT   (PUD_SHIFT + PUD_INDEX_SIZE)

Definition at line 39 of file pgtable-ppc64-4k.h.

#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)

Definition at line 40 of file pgtable-ppc64-4k.h.

#define PMD_INDEX_SIZE   7

Definition at line 9 of file pgtable-ppc64-4k.h.

#define PMD_MASK   (~(PMD_SIZE-1))

Definition at line 28 of file pgtable-ppc64-4k.h.

#define PMD_MASKED_BITS   0

Definition at line 44 of file pgtable-ppc64-4k.h.

#define PMD_SHIFT   (PAGE_SHIFT + PTE_INDEX_SIZE)

Definition at line 26 of file pgtable-ppc64-4k.h.

#define PMD_SIZE   (1UL << PMD_SHIFT)

Definition at line 27 of file pgtable-ppc64-4k.h.

#define PMD_TABLE_SIZE   (sizeof(pmd_t) << PMD_INDEX_SIZE)

Definition at line 15 of file pgtable-ppc64-4k.h.

#define PTE_INDEX_SIZE   9

Definition at line 8 of file pgtable-ppc64-4k.h.

#define PTE_TABLE_SIZE   (sizeof(pte_t) << PTE_INDEX_SIZE)

Definition at line 14 of file pgtable-ppc64-4k.h.

#define PTRS_PER_PGD   (1 << PGD_INDEX_SIZE)

Definition at line 23 of file pgtable-ppc64-4k.h.

#define PTRS_PER_PMD   (1 << PMD_INDEX_SIZE)

Definition at line 21 of file pgtable-ppc64-4k.h.

#define PTRS_PER_PTE   (1 << PTE_INDEX_SIZE)

Definition at line 20 of file pgtable-ppc64-4k.h.

#define PTRS_PER_PUD   (1 << PUD_INDEX_SIZE)

Definition at line 22 of file pgtable-ppc64-4k.h.

#define pud_ERROR (   e)    printk("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))

Definition at line 66 of file pgtable-ppc64-4k.h.

#define PUD_INDEX_SIZE   9

Definition at line 10 of file pgtable-ppc64-4k.h.

#define PUD_MASK   (~(PUD_SIZE-1))

Definition at line 36 of file pgtable-ppc64-4k.h.

#define PUD_MASKED_BITS   0

Definition at line 46 of file pgtable-ppc64-4k.h.

#define pud_offset (   pgdp,
  addr 
)
Value:
(((pud_t *) pgd_page_vaddr(*(pgdp))) + \
(((addr) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)))

Definition at line 62 of file pgtable-ppc64-4k.h.

#define PUD_SHIFT   (PMD_SHIFT + PMD_INDEX_SIZE)

Definition at line 34 of file pgtable-ppc64-4k.h.

#define PUD_SIZE   (1UL << PUD_SHIFT)

Definition at line 35 of file pgtable-ppc64-4k.h.

#define PUD_TABLE_SIZE   (sizeof(pud_t) << PUD_INDEX_SIZE)

Definition at line 16 of file pgtable-ppc64-4k.h.

#define remap_4k_pfn (   vma,
  addr,
  pfn,
  prot 
)    remap_pfn_range((vma), (addr), (pfn), PAGE_SIZE, (prot))

Definition at line 71 of file pgtable-ppc64-4k.h.