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

12

/freebsd-10.0-release/sys/ia64/include/
H A Dparam.h114 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/amd64/include/
H A Dparam.h138 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/arm/include/
H A Dparam.h140 #define atop(x) ((unsigned)(x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/i386/include/
H A Dparam.h152 #define atop(x) ((x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/powerpc/include/
H A Dparam.h118 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/sparc64/include/
H A Dparam.h141 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/vm/
H A Dvm_phys.c256 pages += atop(seg->end - seg->start);
513 return (&seg->first_page[atop(pa - seg->start)]);
529 m = &seg->first_page[atop(pa - seg->start)];
554 pi = atop(start);
555 if (pi >= first_page && atop(end) < vm_page_array_size) {
602 pi = atop(start);
614 if (pi < first_page || atop(end) >= vm_page_array_size)
671 m_buddy = &seg->first_page[atop(pa - seg->start)];
680 m = &seg->first_page[atop(pa - seg->start)];
769 m_set = &seg->first_page[atop(p
[all...]
H A Dvm_fault.c423 fs.object->pg_color = atop(vaddr) -
463 ahead = atop(fs.entry->end - vaddr) - 1;
476 behind = atop(vaddr - fs.entry->start);
479 ahead = atop(fs.entry->end - vaddr) - 1;
1248 dst_object->pg_color = atop(dst_entry->start);
H A Dvm_kern.c240 atop(size), low, high, alignment, boundary, memattr);
252 end_m = m + atop(size);
H A Dvm_map.h339 #define VM_FAULT_READ_AHEAD_MAX min(atop(MAXPHYS) - 1, UINT8_MAX)
H A Ddevice_pager.c424 *color = atop(paddr) - OFF_TO_IDX(off - PAGE_SIZE);
H A Dvm_object.c278 kernel_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS);
286 kmem_object->pg_color = (u_short)atop(VM_MIN_KERNEL_ADDRESS);
1230 result = vm_object_allocate(OBJT_DEFAULT, atop(length));
1291 size = atop(entry->end - entry->start);
H A Dvm_map.c1608 atop(entry->end - entry->start));
1685 atop(entry->end - entry->start));
1814 psize = atop(size);
2122 pend = pstart + atop(current->end - current->start);
2127 pstart += atop(start - current->start);
2131 pend -= atop(current->end - end);
3177 atop(old_entry->end - old_entry->start));
3948 atop(size));
/freebsd-10.0-release/sys/mips/include/
H A Dparam.h176 #define atop(x) ((x) >> PAGE_SHIFT) macro
/freebsd-10.0-release/sys/ia64/ia64/
H A Dmem.c168 if ((prot & ia64_pa_access(atop((vm_offset_t)offset))) != prot)
H A Dphysmem.c154 physmem += atop(size);
170 realmem = atop(realmem);
H A Dbusdma_machdep.c271 pages = atop(maxsize) - total_bpages;
359 maxpages = MIN(MAX_BPAGES, atop(paddr_max - dmat->lowaddr));
364 pages = MAX(atop(dmat->maxsize), 1);
/freebsd-10.0-release/sys/i386/i386/
H A Dmachdep.c310 realmem = atop(memsize);
2341 Maxmem = atop(physmap[physmap_idx + 1]);
2348 Maxmem = atop(physmem_tunable);
2354 if (has_smap && Maxmem > atop(physmap[physmap_idx + 1]))
2355 Maxmem = atop(physmap[physmap_idx + 1]);
2367 if (atop(physmap[physmap_idx + 1]) != Maxmem &&
2375 if (atop(physmap[physmap_idx + 1]) < Maxmem)
2536 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
2541 Maxmem = atop(phys_avail[pa_indx]);
2608 gdt_segs[GPRIV_SEL].ssd_limit = atop(HYPERVISOR_VIRT_STAR
[all...]
/freebsd-10.0-release/sys/pc98/pc98/
H A Dmachdep.c1912 Maxmem = atop(physmap[physmap_idx + 1]);
1919 Maxmem = atop(physmem_tunable);
1928 if (atop(physmap[physmap_idx + 1]) != Maxmem &&
1936 if (atop(physmap[physmap_idx + 1]) < Maxmem)
2103 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
2108 Maxmem = atop(phys_avail[pa_indx]);
2165 gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1);
2166 gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1);
2167 gdt_segs[GUCODE_SEL].ssd_limit = atop(0 - 1);
2168 gdt_segs[GUDATA_SEL].ssd_limit = atop(
[all...]
/freebsd-10.0-release/sys/amd64/amd64/
H A Dmachdep.c272 realmem = atop(memsize);
1469 Maxmem = atop(physmap[physmap_idx + 1]);
1476 Maxmem = atop(physmem_tunable);
1492 if (Maxmem > atop(physmap[physmap_idx + 1]))
1493 Maxmem = atop(physmap[physmap_idx + 1]);
1495 if (atop(physmap[physmap_idx + 1]) != Maxmem &&
1660 physmem -= atop(phys_avail[pa_indx] - phys_avail[pa_indx - 1]);
1665 Maxmem = atop(phys_avail[pa_indx]);
/freebsd-10.0-release/sys/compat/x86bios/
H A Dx86bios.c133 for (i = 0; i < atop(round_page(size)); i++)
134 vm86_addpage(&x86bios_vmc, atop(*offset) + i,
161 nfree = atop(round_page(size));
/freebsd-10.0-release/sys/powerpc/powerpc/
H A Dbusdma_machdep.c320 pages = atop(maxsize) - bz->total_bpages;
425 maxpages = MIN(MAX_BPAGES, Maxmem -atop(dmat->lowaddr));
430 pages = MAX(atop(dmat->maxsize), 1);
/freebsd-10.0-release/sys/x86/x86/
H A Dbusdma_machdep.c324 pages = atop(maxsize) - bz->total_bpages;
441 maxpages = MIN(MAX_BPAGES, Maxmem -atop(dmat->lowaddr));
446 pages = MAX(atop(dmat->maxsize), 1);
/freebsd-10.0-release/sys/dev/agp/
H A Dagp.c501 mem->am_obj = vm_object_allocate(OBJT_DEFAULT, atop(round_page(size)));
664 m = vm_page_lookup(mem->am_obj, atop(i));
/freebsd-10.0-release/sys/ofed/drivers/infiniband/core/
H A Dumem.c334 npages = atop(end - start);

Completed in 185 milliseconds

12