Home
last modified time | relevance | path

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

1234

/include/linux/
Dgeneric-radix-tree.h102 BUILD_BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
104 BUG_ON(obj_size > PAGE_SIZE); in __idx_to_offset()
107 size_t objs_per_page = PAGE_SIZE / obj_size; in __idx_to_offset()
109 return (idx / objs_per_page) * PAGE_SIZE + in __idx_to_offset()
181 PAGE_SIZE / __genradix_obj_size(_radix)))
189 (iter->offset & (PAGE_SIZE - 1)) + obj_size > PAGE_SIZE) in __genradix_iter_advance()
190 iter->offset = round_up(iter->offset, PAGE_SIZE); in __genradix_iter_advance()
Dbvec.h59 (mp_bvec_iter_offset((bvec), (iter)) / PAGE_SIZE)
70 (mp_bvec_iter_offset((bvec), (iter)) % PAGE_SIZE)
74 PAGE_SIZE - bvec_iter_offset((bvec), (iter)))
155 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
173 unsigned last_page = (total - 1) / PAGE_SIZE; in mp_bvec_last_segment()
178 if (bvec->bv_offset >= last_page * PAGE_SIZE) { in mp_bvec_last_segment()
179 seg->bv_offset = bvec->bv_offset % PAGE_SIZE; in mp_bvec_last_segment()
183 seg->bv_len = total - last_page * PAGE_SIZE; in mp_bvec_last_segment()
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)
Dndctl.h19 ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
Dmoduleloader.h96 #define MODULE_ALIGN (PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT)
98 #define MODULE_ALIGN PAGE_SIZE
Da.out.h13 #define SEGMENT_SIZE PAGE_SIZE
Dthreads.h34 #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
Dserial.h29 #define SERIAL_XMIT_SIZE PAGE_SIZE
Dtrace_seq.h15 unsigned char buffer[PAGE_SIZE];
23 seq_buf_init(&s->seq, s->buffer, PAGE_SIZE); in trace_seq_init()
Dnfsacl.h19 #define NFSACL_MAXPAGES ((2*(8+12*NFS_ACL_MAX_ENTRIES) + PAGE_SIZE-1) \
Dpktcdvd.h80 #if (PAGE_SIZE % CD_FRAMESIZE) != 0
84 #define FRAMES_PER_PAGE (PAGE_SIZE / CD_FRAMESIZE)
Dscs.h18 #define SCS_SIZE PAGE_SIZE
Dmm_types_task.h66 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
/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.h181 ((PAGE_SIZE - sizeof(struct mmu_table_batch)) / sizeof(void *))
221 ((PAGE_SIZE - sizeof(struct mmu_gather_batch)) / sizeof(void *))
426 return __tlb_remove_page_size(tlb, page, PAGE_SIZE); in __tlb_remove_page()
435 return tlb_remove_page_size(tlb, page, PAGE_SIZE); in tlb_remove_page()
547 tlb_flush_pte_range(tlb, address, PAGE_SIZE); \
614 tlb_flush_pmd_range(tlb, address, PAGE_SIZE); \
623 tlb_flush_pud_range(tlb, address, PAGE_SIZE); \
633 tlb_flush_p4d_range(tlb, address, PAGE_SIZE); \
644 __tlb_adjust_range(tlb, address, PAGE_SIZE); \
Dshmparam.h5 #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */
Dvmlinux.lds.h307 . = ALIGN(PAGE_SIZE); \
310 . = ALIGN(PAGE_SIZE); \
722 . = ALIGN(PAGE_SIZE); \
724 . = ALIGN(PAGE_SIZE); \
898 . = ALIGN(PAGE_SIZE); \
900 . = ALIGN(PAGE_SIZE);
945 . = ALIGN(PAGE_SIZE); \
999 . = ALIGN(PAGE_SIZE); \
1025 . = ALIGN(PAGE_SIZE); \
/include/linux/raid/
Dpq.h22 extern const char raid6_empty_zero_page[PAGE_SIZE];
43 #ifndef PAGE_SIZE
44 # define PAGE_SIZE 4096 macro
46 extern const char raid6_empty_zero_page[PAGE_SIZE];
171 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
175 # define free_pages(x, y) munmap((void *)(x), PAGE_SIZE << (y))
/include/sound/
Dmemalloc.h64 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in snd_sgbuf_aligned_pages()
98 addr &= ~((dma_addr_t)PAGE_SIZE - 1); in snd_sgbuf_get_addr()
99 return addr + offset % PAGE_SIZE; in snd_sgbuf_get_addr()
109 return sgbuf->table[offset >> PAGE_SHIFT].buf + offset % PAGE_SIZE; in snd_sgbuf_get_ptr()
/include/uapi/linux/
Dresource.h72 #define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
Dbinfmts.h15 #define MAX_ARG_STRLEN (PAGE_SIZE * 32)
/include/rdma/
Dib_umem.h65 return (ALIGN(umem->address + umem->length, PAGE_SIZE) - in ib_umem_num_pages()
66 ALIGN_DOWN(umem->address, PAGE_SIZE)) >> in ib_umem_num_pages()
/include/crypto/
Dif_alg.h189 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
201 return PAGE_SIZE <= af_alg_sndbuf(sk); in af_alg_writable()
215 return max_t(int, max_t(int, sk->sk_rcvbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_rcvbuf()
227 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/xen/interface/io/
Dvscsiif.h187 #define VSCSIIF_SG_PER_PAGE (PAGE_SIZE / sizeof(struct scsiif_request_segment))

1234