File: /Users/paulross/dev/linux/linux-3.13/include/linux/pfn.h

Green shading in the line number column means the source is part of the translation unit, red means it is conditionally excluded. Highlighted line numbers link to the translation unit page. Highlighted macros link to the macro page.

       1: #ifndef _LINUX_PFN_H_
       2: #define _LINUX_PFN_H_
       3: 
       4: #ifndef __ASSEMBLY__
       5: #include <linux/types.h>
       6: #endif
       7: 
       8: #define PFN_ALIGN(x)    (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
       9: #define PFN_UP(x)    (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
      10: #define PFN_DOWN(x)    ((x) >> PAGE_SHIFT)
      11: #define PFN_PHYS(x)    ((phys_addr_t)(x) << PAGE_SHIFT)
      12: 
      13: #endif
      14: