Searched refs:atop (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-current/contrib/netbsd-tests/sys/uvm/
H A Dt_uvm_physseg_load.c112 #define atop(x) (((paddr_t)(x)) >> PAGE_SHIFT) macro
178 #define VALID_START_PFN_1 atop(0)
179 #define VALID_END_PFN_1 atop(ONE_MEGABYTE)
180 #define VALID_AVAIL_START_PFN_1 atop(0)
181 #define VALID_AVAIL_END_PFN_1 atop(ONE_MEGABYTE)
183 #define VALID_START_PFN_2 atop(ONE_MEGABYTE + 1)
184 #define VALID_END_PFN_2 atop(ONE_MEGABYTE * 2)
185 #define VALID_AVAIL_START_PFN_2 atop(ONE_MEGABYTE + 1)
186 #define VALID_AVAIL_END_PFN_2 atop(ONE_MEGABYTE * 2)
188 #define VALID_START_PFN_3 atop((ONE_MEGABYT
[all...]
H A Dt_uvm_physseg.c113 #define atop(x) (((paddr_t)(x)) >> PAGE_SHIFT) macro
205 #define VALID_START_PFN_1 atop(0)
206 #define VALID_END_PFN_1 atop(ONE_MEGABYTE)
207 #define VALID_AVAIL_START_PFN_1 atop(0)
208 #define VALID_AVAIL_END_PFN_1 atop(ONE_MEGABYTE)
210 #define VALID_START_PFN_2 atop(ONE_MEGABYTE + 1)
211 #define VALID_END_PFN_2 atop(ONE_MEGABYTE * 2)
212 #define VALID_AVAIL_START_PFN_2 atop(ONE_MEGABYTE + 1)
213 #define VALID_AVAIL_END_PFN_2 atop(ONE_MEGABYTE * 2)
215 #define VALID_START_PFN_3 atop((ONE_MEGABYT
[all...]
/freebsd-current/sys/riscv/include/
H A Dparam.h99 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-current/sys/arm64/include/
H A Dparam.h125 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-current/sys/i386/include/
H A Dparam.h152 #define atop(x) ((x) >> PAGE_SHIFT) macro
/freebsd-current/sys/arm/include/
H A Dparam.h135 #define atop(x) ((unsigned)(x) >> PAGE_SHIFT) macro
/freebsd-current/sys/powerpc/include/
H A Dparam.h150 #define atop(x) ((x) >> PAGE_SHIFT) macro
/freebsd-current/sys/amd64/include/
H A Dparam.h151 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-current/crypto/openssl/crypto/bn/
H A Dbn_lib.c485 size_t i, lasti, j, atop, mask; local
506 atop = a->dmax * BN_BYTES;
507 if (atop == 0) {
513 lasti = atop - 1;
514 atop = a->top * BN_BYTES;
520 mask = 0 - ((j - atop) >> (8 * sizeof(i) - 1));
1026 int j, atop; local
1030 for (j = 0, atop = 0; j < a->dmax; j++) {
1037 atop = constant_time_select_int(mask, j + 1, atop);
[all...]
/freebsd-current/sys/vm/
H A Dvm_glue.c191 npages = atop(end - start);
317 KASSERT(atop(addr - VM_MIN_KERNEL_ADDRESS) %
382 KASSERT(atop(size) % kpages == 0,
393 rem = atop(*addrp - VM_MIN_KERNEL_ADDRESS) % kpages;
580 vm_pindex_t pindex = atop(ks - VM_MIN_KERNEL_ADDRESS);
687 atop(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS));
696 atop(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS));
H A Dvm_phys.c535 npages += atop(seg->end - seg->start);
562 npages += atop(seg->end - seg->start);
937 return (&seg->first_page[atop(pa - seg->start)]);
957 m = &seg->first_page[atop(pa - seg->start)];
996 pi = atop(start);
997 pe = atop(end);
1075 pi = atop(start);
1076 pe = atop(end);
1153 m_buddy = &seg->first_page[atop(pa - seg->start)];
1162 m = &seg->first_page[atop(p
[all...]
H A Dvm_kern.c273 m = kmem_alloc_contig_pages(object, atop(offset + i),
325 atop(round_page(size)), low, high) == -1) {
361 npages = atop(asize);
363 m = kmem_alloc_contig_pages(object, atop(offset), domain,
419 atop(round_page(size)), low, high) == -1) {
546 mpred = vm_radix_lookup_le(&object->rtree, atop(offset + i));
548 m = vm_page_alloc_domain_after(object, atop(offset + i),
646 m = vm_page_lookup(object, atop(offset));
H A Dvm_fault.c499 pager_last = pager_first + atop(fs->entry->end - fs->entry->start) - 1;
583 for (i = 0; i < atop(pagesizes[bdry_idx]); i++)
606 map_last = map_first + atop(fs->entry->end - fs->entry->start) - 1;
623 npages = atop(pagesizes[psind]);
1273 vm_object_color(fs->object, atop(fs->vaddr) - fs->pindex);
1372 atop(fs->vaddr - e_start));
1375 ahead = ulmin(ahead, atop(e_end - fs->vaddr) - 1);
1846 pstart = OFF_TO_IDX(entry->offset) + atop(start -
1849 pend = OFF_TO_IDX(entry->offset) + atop(end -
1992 if (atop(en
[all...]
H A Dvm_object.c284 _vm_object_allocate(OBJT_PHYS, atop(VM_MAX_KERNEL_ADDRESS -
288 kernel_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS);
1213 atop(size) == object->size) {
1459 result = vm_object_allocate_anon(atop(length), source, cred, length);
1534 size = atop(entry->end - entry->start);
2377 end_pindex = pindex + atop(length);
H A Dvm_pager.h134 #define PBUF_PAGES (atop(maxphys) + 1)
/freebsd-current/sys/i386/i386/
H A Dmachdep.c264 realmem = atop(memsize);
1063 Maxmem = atop(physmap[physmap_idx + 1]);
1070 Maxmem = atop(physmem_tunable);
1076 if (has_smap && Maxmem > atop(physmap[physmap_idx + 1]))
1077 Maxmem = atop(physmap[physmap_idx + 1]);
1091 if (atop(physmap[physmap_idx + 1]) != Maxmem &&
1099 if (atop(physmap[physmap_idx + 1]) < Maxmem)
1250 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
1255 Maxmem = atop(phys_avail[pa_indx]);
1444 gdt_segs[GCODE_SEL].ssd_limit = atop(
[all...]
/freebsd-current/sys/compat/linux/
H A Dlinux_mmap.c288 pstart += atop(start - entry->start);
294 atop(entry->end - entry->start);
296 pend -= atop(entry->end - end);
/freebsd-current/sys/dev/drm2/
H A Ddrm_scatter.c75 entry->pages = atop(size);
/freebsd-current/sys/kern/
H A Dsubr_physmem.c202 totalmem += atop((vm_offset_t)(end - start));
258 availmem += atop((vm_offset_t)(xstart - start));
291 availmem += atop((vm_offset_t)(end - start));
544 Maxmem = atop(phys_avail[nextidx - 1]);
/freebsd-current/sys/dev/xen/privcmd/
H A Dprivcmd.c143 rm.gpfn = atop(map->phys_base_addr) + i;
364 gpfns[i] = atop(umap->phys_base_addr +
444 gpfns[i] = atop(umap->phys_base_addr) + i;
/freebsd-current/sys/powerpc/powerpc/
H A Dbusdma_machdep.c223 pages = atop(maxsize) - bz->total_bpages;
332 maxpages = MIN(MAX_BPAGES, Maxmem -atop(dmat->lowaddr));
337 pages = MAX(atop(dmat->maxsize), 1);
/freebsd-current/sys/amd64/amd64/
H A Dmachdep.c270 realmem = atop(memsize);
905 Maxmem = atop(physmap[physmap_idx + 1]);
912 Maxmem = atop(physmem_tunable);
930 if (Maxmem > atop(physmap[physmap_idx + 1]))
931 Maxmem = atop(physmap[physmap_idx + 1]);
933 if (atop(physmap[physmap_idx + 1]) != Maxmem &&
1114 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
1119 Maxmem = atop(phys_avail[pa_indx]);
/freebsd-current/sys/x86/x86/
H A Dbusdma_bounce.c58 #define MAX_BPAGES (Maxmem > atop(0x100000000ULL) ? 8192 : 512)
155 pages = atop(dmat->common.maxsize) - bz->total_bpages;
324 atop(dmat->common.lowaddr));
327 pages = MAX(atop(dmat->common.maxsize), 1);
/freebsd-current/sys/arm/nvidia/drm2/
H A Dtegra_bo.c177 bo->npages = atop(size);
/freebsd-current/sys/x86/xen/
H A Dhvm.c191 xatp.gpfn = atop(early_init_vtop(&shared_page.shared_info));

Completed in 381 milliseconds

123