Searched refs:PAGE_SIZE (Results 1 - 25 of 626) sorted by relevance

1234567891011>>

/freebsd-9.3-release/sys/i386/include/
H A Dprivatespace.h40 char __filler0[PAGE_SIZE - sizeof(struct pcpu)];
43 char idlekstack[KSTACK_PAGES * PAGE_SIZE];
H A Dparam.h95 #define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
96 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
97 #define PAGE_MASK (PAGE_SIZE-1)
98 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
112 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
165 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Dparam.h35 #define PAGESIZE PAGE_SIZE
H A Dsystm.h39 #define PAGESIZE PAGE_SIZE
/freebsd-9.3-release/sys/amd64/include/
H A Dparam.h92 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
94 #define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
95 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
96 #define PAGE_MASK (PAGE_SIZE-1)
98 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
104 #define NPDPEPG (PAGE_SIZE/(sizeof (pdp_entry_t)))
110 #define NPML4EPG (PAGE_SIZE/(sizeof (pml4_entry_t)))
140 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
/freebsd-9.3-release/tools/regression/lib/libc/string/
H A Dtest-wcsnlen.c42 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
47 assert(munmap(buf + alloc_size - PAGE_SIZE, PAGE_SIZE) == 0);
48 return (buf + alloc_size - PAGE_SIZE - len);
50 assert(munmap(buf, PAGE_SIZE) == 0);
51 return (buf + PAGE_SIZE);
H A Dtest-stpncpy.c41 size_t alloc_size = roundup2(len, PAGE_SIZE) + PAGE_SIZE;
46 assert(munmap(buf + alloc_size - PAGE_SIZE, PAGE_SIZE) == 0);
47 return (buf + alloc_size - PAGE_SIZE - len);
49 assert(munmap(buf, PAGE_SIZE) == 0);
50 return (buf + PAGE_SIZE);
/freebsd-9.3-release/tools/regression/mmap/
H A Dmmap.c43 { (void *)(PAGE_SIZE - 1), { 0, 0 } },
44 { (void *)PAGE_SIZE, { 1, 1 } },
46 { (void *)(-PAGE_SIZE), { 0, 0 } },
47 { (void *)(-1 - PAGE_SIZE), { 0, 0 } },
48 { (void *)(-1 - PAGE_SIZE - 1), { 0, 0 } },
49 { (void *)(0x1000 * PAGE_SIZE), { 1, 1 } },
74 p = mmap((void *)tests[i].addr, PAGE_SIZE,
/freebsd-9.3-release/sys/ia64/include/
H A Dparam.h93 #define PAGE_SIZE (1<<(LOG2_PAGE_SIZE)) macro
94 #define PAGE_MASK (PAGE_SIZE-1)
95 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
113 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/freebsd-9.3-release/contrib/binutils/bfd/hosts/
H A Di386bsd.h8 #ifdef PAGE_SIZE
9 #define NBPG PAGE_SIZE
/freebsd-9.3-release/sys/dev/vt/hw/xboxfb/
H A Dxboxfb.c83 * videomemory to PAGE_SIZE! Since our kernel lives at
87 * We use address PAGE_SIZE and up so we can still trap
93 for (i = 0; i < (XBOX_FB_SIZE / PAGE_SIZE); i++) {
94 pmap_kenter(((i + 1) * PAGE_SIZE),
95 XBOX_FB_START + (i * PAGE_SIZE));
97 pmap_kenter((i + 1) * PAGE_SIZE,
98 XBOX_FB_START_PTR - XBOX_FB_START_PTR % PAGE_SIZE);
101 *(uint32_t *)((i + 1) * PAGE_SIZE + XBOX_FB_START_PTR % PAGE_SIZE) =
113 info->fb_vbase = PAGE_SIZE;
[all...]
/freebsd-9.3-release/sys/ofed/include/linux/
H A Dpage.h42 #define clear_page(page) memset((page), 0, PAGE_SIZE)
47 #define PAGE_MASK (~(PAGE_SIZE-1))
H A Dgfp.h68 return kmem_malloc(kmem_map, PAGE_SIZE, mask);
81 kmem_free(kmem_map, page, PAGE_SIZE);
91 kmem_free(kmem_map, (vm_offset_t)page_address(m), PAGE_SIZE);
101 size = PAGE_SIZE << order;
116 size = PAGE_SIZE << order;
/freebsd-9.3-release/sys/dev/drm2/
H A Ddrm_buffer.h55 return buf->iterator / PAGE_SIZE;
62 return buf->iterator & (PAGE_SIZE - 1);
124 * multiples of dword and PAGE_SIZE is multiple dword.
134 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)];
148 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)];
H A Ddrm_buffer.c48 int nr_pages = size / PAGE_SIZE + 1;
68 malloc(min(PAGE_SIZE, size - idx * PAGE_SIZE),
106 int nr_pages = size / PAGE_SIZE + 1;
119 (char *)user_data + idx * PAGE_SIZE,
120 min(PAGE_SIZE, size - idx * PAGE_SIZE))) {
140 int nr_pages = buf->size / PAGE_SIZE + 1;
168 if (idx + objsize <= PAGE_SIZE) {
172 int beginsz = PAGE_SIZE
[all...]
/freebsd-9.3-release/sys/arm/include/
H A Dparam.h89 #define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */ macro
90 #define PAGE_MASK (PAGE_SIZE - 1)
91 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
111 #define USPACE_SVC_STACK_TOP KSTACK_PAGES * PAGE_SIZE
129 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/freebsd-9.3-release/sys/powerpc/include/
H A Dparam.h96 #define PAGE_SIZE (1L << PAGE_SHIFT) /* Page size */ macro
97 #define PAGE_MASK (vm_offset_t)(PAGE_SIZE - 1)
98 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
106 #define USPACE (KSTACK_PAGES * PAGE_SIZE) /* total size of pcb */
120 #define pgtok(x) ((x) * (PAGE_SIZE / 1024UL))
/freebsd-9.3-release/sys/arm/xscale/i8134x/
H A Dcrb_machdep.c107 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
209 freemempos -= (np * PAGE_SIZE); \
211 memset((char *)(var), 0, ((np) * PAGE_SIZE));
214 freemempos -= PAGE_SIZE;
215 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
217 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
219 L2_TABLE_SIZE / PAGE_SIZE);
222 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
238 valloc_pages(dpcpu, DPCPU_SIZE / PAGE_SIZE);
246 valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
[all...]
/freebsd-9.3-release/sys/boot/sparc64/loader/
H A Dlocore.S20 #define PAGE_SIZE 8192 define
23 #define STACK_SIZE (2 * PAGE_SIZE)
/freebsd-9.3-release/sys/sparc64/include/
H A Dproc.h63 (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
65 td->td_kstack_pages * PAGE_SIZE - \
/freebsd-9.3-release/sys/mips/include/
H A Dparam.h121 #define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
122 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
123 #define PAGE_MASK (PAGE_SIZE-1)
125 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
126 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
156 * The kernel stack needs to be aligned on a (PAGE_SIZE * 2) boundary.
184 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/freebsd-9.3-release/sys/arm/econa/
H A Decona_machdep.c92 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
223 freemempos += (np * PAGE_SIZE); \
224 memset((char *)(var), 0, ((np) * PAGE_SIZE));
227 freemempos += PAGE_SIZE;
228 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
230 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
232 L2_TABLE_SIZE / PAGE_SIZE);
235 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
255 valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
271 (((uint32_t)lastaddr - KERNBASE) + PAGE_SIZE)
[all...]
/freebsd-9.3-release/sys/arm/sa11x0/
H A Dassabet_machdep.c223 physmem = memsize / PAGE_SIZE;
244 freemempos += ((np) * PAGE_SIZE);\
245 memset((char *)(var), 0, ((np) * PAGE_SIZE));
248 freemempos += PAGE_SIZE;
249 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
250 valloc_pages(md_bla, L2_TABLE_SIZE / PAGE_SIZE);
251 alloc_pages(sa1_cache_clean_addr, CPU_SA110_CACHE_CLEAN_SIZE / PAGE_SIZE);
254 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
256 L2_TABLE_SIZE / PAGE_SIZE);
259 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REA
[all...]
/freebsd-9.3-release/sys/arm/xscale/i80321/
H A Dep80219_machdep.c104 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
209 freemempos -= (np * PAGE_SIZE); \
211 memset((char *)(var), 0, ((np) * PAGE_SIZE));
217 freemempos -= PAGE_SIZE;
218 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
220 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
222 L2_TABLE_SIZE / PAGE_SIZE);
225 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
242 valloc_pages(dpcpu, DPCPU_SIZE / PAGE_SIZE);
251 valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
[all...]
H A Diq31244_machdep.c104 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
213 freemempos -= (np * PAGE_SIZE); \
215 memset((char *)(var), 0, ((np) * PAGE_SIZE));
218 freemempos -= PAGE_SIZE;
219 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
221 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
223 L2_TABLE_SIZE / PAGE_SIZE);
226 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
242 valloc_pages(dpcpu, DPCPU_SIZE / PAGE_SIZE);
251 valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
[all...]

Completed in 279 milliseconds

1234567891011>>