Searched refs:PAGE_SHIFT (Results 1 – 25 of 32) sorted by relevance
12
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 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT))
187 #define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \188 (MAX_ORDER + PAGE_SHIFT - 1) : 25)200 #define KMALLOC_SHIFT_HIGH (PAGE_SHIFT + 1)201 #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT - 1)213 #define KMALLOC_SHIFT_HIGH PAGE_SHIFT214 #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT - 1)225 #define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_MAX - PAGE_SHIFT)
11 #define VMACACHE_HASH(addr) ((addr >> PAGE_SHIFT) & VMACACHE_MASK)
19 >> PAGE_SHIFT)
26 #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */127 return size >> PAGE_SHIFT; in map_kernel_range_noflush()
90 #define PAGE_CACHE_SHIFT PAGE_SHIFT393 return page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); in page_to_pgoff()418 pgoff = (address - vma->vm_start) >> PAGE_SHIFT; in linear_page_index()420 return pgoff >> (PAGE_CACHE_SHIFT - PAGE_SHIFT); in linear_page_index()
92 pfn = (unsigned long) (phys_addr >> PAGE_SHIFT); in io_mapping_map_atomic_wc()
121 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
343 return h->order + PAGE_SHIFT; in huge_page_shift()379 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()442 #define huge_page_shift(h) PAGE_SHIFT
298 return sg_dma_address(piter->sg) + (piter->sg_pgoffset << PAGE_SHIFT); in sg_page_iter_dma_address()
60 #define HPAGE_PMD_ORDER (HPAGE_PMD_SHIFT-PAGE_SHIFT)
866 gfn_t gfn_offset = (hva - slot->userspace_addr) >> PAGE_SHIFT; in hva_to_gfn_memslot()873 return (gpa_t)gfn << PAGE_SHIFT; in gfn_to_gpa()878 return (gfn_t)(gpa >> PAGE_SHIFT); in gpa_to_gfn()883 return (hpa_t)pfn << PAGE_SHIFT; in pfn_to_hpa()
1062 #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT)1072 #if (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS
465 object->store_limit = i_size >> PAGE_SHIFT; in fscache_set_store_limit()
213 #define dma_frcd_page_addr(d) (d & (((u64)-1) << PAGE_SHIFT))
172 return *dev->dma_mask >> PAGE_SHIFT; in dma_max_pfn()
18 size >>= PAGE_SHIFT; in __get_order()52 ((n) == 0UL) ? BITS_PER_LONG - PAGE_SHIFT : \53 (((n) < (1UL << PAGE_SHIFT)) ? 0 : \54 ilog2((n) - 1) - PAGE_SHIFT + 1) \
15 #define PAGE_SHIFT 12 macro17 #define PAGE_SIZE (1 << PAGE_SHIFT)19 #define PAGE_SIZE (1UL << PAGE_SHIFT)75 #define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)83 #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT)84 #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT)90 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
20 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))21 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
545 return offset_from_zero_pfn <= (zero_page_mask >> PAGE_SHIFT); in is_zero_pfn()
100 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in snd_sgbuf_aligned_pages()110 dma_addr_t addr = sgbuf->table[offset >> PAGE_SHIFT].addr; in snd_sgbuf_get_addr()122 return sgbuf->table[offset >> PAGE_SHIFT].buf + offset % PAGE_SIZE; in snd_sgbuf_get_ptr()
62 return !(((sg_page(walk_in->sg) - sg_page(walk_out->sg)) << PAGE_SHIFT) + in scatterwalk_samebuf()94 return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); in scatterwalk_page()
215 return ((__u64)node->vm_node.start) << PAGE_SHIFT; in drm_vma_node_offset_addr()236 drm_vma_node_size(node) << PAGE_SHIFT, 1); in drm_vma_node_unmap()
42 __entry->index << PAGE_SHIFT)
242 PAGE_SHIFT) + slot->userspace_addr;