Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 90) sorted by relevance

1234

/include/linux/
Dgeneric-radix-tree.h104 BUILD_BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
106 BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
109 size_t objs_per_page = PAGE_SIZE / obj_size; in __idx_to_offset()
111 return (idx / objs_per_page) * PAGE_SIZE + in __idx_to_offset()
183 PAGE_SIZE / __genradix_obj_size(_radix)))
197 (iter->offset & (PAGE_SIZE - 1)) + obj_size > PAGE_SIZE) in __genradix_iter_advance()
198 iter->offset = round_up(iter->offset, PAGE_SIZE); in __genradix_iter_advance()
Dpfn.h18 #define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
19 #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
Dhighmem.h315 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_user_highpage()
331 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_user_highpage()
333 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_mc_user_highpage()
371 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
382 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
392 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
402 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
412 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page()
Dring_buffer_ext.h34 page_va = ALIGN_DOWN(page_va, PAGE_SIZE); in rb_ext_page_get_footer()
36 return (struct rb_ext_page_footer *)(page_va + PAGE_SIZE - in rb_ext_page_get_footer()
Dndctl.h19 ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
Dmoduleloader.h107 #define MODULE_ALIGN (PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
109 #define MODULE_ALIGN PAGE_SIZE
Dthreads.h34 #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
Dhighmem-internal.h78 struct page *page = folio_page(folio, offset / PAGE_SIZE); in kmap_local_folio()
79 return __kmap_local_page_prot(page, kmap_prot) + offset % PAGE_SIZE; in kmap_local_folio()
203 kunmap_flush_on_unmap(PTR_ALIGN_DOWN(addr, PAGE_SIZE)); in __kunmap_local()
230 kunmap_flush_on_unmap(PTR_ALIGN_DOWN(addr, PAGE_SIZE)); in __kunmap_atomic()
Dbvec.h88 (mp_bvec_iter_offset((bvec), (iter)) / PAGE_SIZE)
99 (mp_bvec_iter_offset((bvec), (iter)) % PAGE_SIZE)
103 PAGE_SIZE - bvec_iter_offset((bvec), (iter)))
192 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
Dpktcdvd.h80 #if (PAGE_SIZE % CD_FRAMESIZE) != 0
84 #define FRAMES_PER_PAGE (PAGE_SIZE / CD_FRAMESIZE)
Dtrace_seq.h15 char buffer[PAGE_SIZE];
23 seq_buf_init(&s->seq, s->buffer, PAGE_SIZE); in trace_seq_init()
Dmm_types_task.h54 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
Dnfsacl.h19 #define NFSACL_MAXPAGES ((2*(8+12*NFS_ACL_MAX_ENTRIES) + PAGE_SIZE-1) \
Dbootmem_info.h63 kmemleak_free_part(page_to_virt(page), PAGE_SIZE); in free_bootmem_page()
Dio-mapping.h167 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_atomic_wc()
181 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_local_wc()
/include/asm-generic/
Dpage.h18 #define PAGE_SIZE (1 << PAGE_SHIFT)
20 #define PAGE_SIZE (1UL << PAGE_SHIFT) macro
22 #define PAGE_MASK (~(PAGE_SIZE-1))
28 #define clear_page(page) memset((page), 0, PAGE_SIZE)
29 #define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)
Dtlb.h202 ((PAGE_SIZE - sizeof(struct mmu_table_batch)) / sizeof(void *))
253 ((PAGE_SIZE - sizeof(struct mmu_gather_batch)) / sizeof(void *))
444 return __tlb_remove_page_size(tlb, page, PAGE_SIZE); in __tlb_remove_page()
453 return tlb_remove_page_size(tlb, page, PAGE_SIZE); in tlb_remove_page()
569 tlb_flush_pte_range(tlb, address, PAGE_SIZE); \
636 tlb_flush_pmd_range(tlb, address, PAGE_SIZE); \
645 tlb_flush_pud_range(tlb, address, PAGE_SIZE); \
654 tlb_flush_p4d_range(tlb, address, PAGE_SIZE); \
663 __tlb_adjust_range(tlb, address, PAGE_SIZE); \
Dshmparam.h5 #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */
Dpgalloc.h140 BUG_ON((unsigned long)pmd & (PAGE_SIZE-1)); in pmd_free()
177 BUG_ON((unsigned long)pud & (PAGE_SIZE-1)); in __pud_free()
Dvmlinux.lds.h378 . = ALIGN(PAGE_SIZE); \
381 . = ALIGN(PAGE_SIZE); \
783 . = ALIGN(PAGE_SIZE); \
785 . = ALIGN(PAGE_SIZE); \
997 . = ALIGN(PAGE_SIZE); \
999 . = ALIGN(PAGE_SIZE);
1076 . = ALIGN(PAGE_SIZE); \
1130 . = ALIGN(PAGE_SIZE); \
1156 . = ALIGN(PAGE_SIZE); \
/include/linux/raid/
Dpq.h22 extern const char raid6_empty_zero_page[PAGE_SIZE];
44 #ifndef PAGE_SIZE
45 # define PAGE_SIZE 4096 macro
50 extern const char raid6_empty_zero_page[PAGE_SIZE];
175 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
179 # define free_pages(x, y) munmap((void *)(x), PAGE_SIZE << (y))
/include/uapi/linux/
Dbinfmts.h15 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
/include/crypto/
Dif_alg.h190 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
202 return PAGE_SIZE <= af_alg_sndbuf(sk); in af_alg_writable()
216 return max_t(int, max_t(int, sk->sk_rcvbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_rcvbuf()
228 return PAGE_SIZE <= af_alg_rcvbuf(sk); in af_alg_readable()
/include/xen/
Dpage.h23 #define XEN_PFN_PER_PAGE (PAGE_SIZE / XEN_PAGE_SIZE)
/include/linux/sunrpc/
Dsvc.h193 #define RPCSVC_MAXPAGES ((RPCSVC_MAXPAYLOAD+PAGE_SIZE-1)/PAGE_SIZE \
376 return vec->iov_len <= PAGE_SIZE; in xdr_ressize_check()
588 xdr->end = resv->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; in svcxdr_init_encode()
591 buf->buflen = PAGE_SIZE * (rqstp->rq_page_end - buf->pages); in svcxdr_init_encode()

1234