Home
last modified time | relevance | path

Searched refs:PAGESHIFT (Results 1 – 25 of 98) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/sys/
H A Dparam.h395 #define PAGESHIFT _pageshift macro
432 #define ptod(x) ((x) << (PAGESHIFT - DEV_BSHIFT))
447 #define ptob(x) (((pgcnt_t)(x)) << PAGESHIFT)
449 #define ptob(x) ((x) << PAGESHIFT)
451 #define btop(x) (((x) >> PAGESHIFT))
452 #define btopr(x) ((((x) + PAGEOFFSET) >> PAGESHIFT))
458 #define dtop(DD) (((DD) + NDPP - 1) >> (PAGESHIFT - DEV_BSHIFT))
459 #define dtopt(DD) ((DD) >> (PAGESHIFT - DEV_BSHIFT))
464 #define kbtop(x) ((x) >> (PAGESHIFT - 10))
465 #define ptokb(x) ((x) << (PAGESHIFT - 10))
/illumos-gate/usr/src/uts/sun4u/os/
H A Dmemscrub.c326 (pfn_t)(src->ml_address >> PAGESHIFT), in memscrub_init()
327 (pgcnt_t)(src->ml_size >> PAGESHIFT))) { in memscrub_init()
372 (pfn_t)(memscrub_memlist->ml_address >> PAGESHIFT), in memscrub_cleanup()
373 (pgcnt_t)(memscrub_memlist->ml_size >> PAGESHIFT)); in memscrub_cleanup()
730 ms_paddr_t address = (ms_paddr_t)pfn << PAGESHIFT; in memscrub_add_span()
731 uint64_t bytes = (uint64_t)pages << PAGESHIFT; in memscrub_add_span()
765 ms_paddr_t address = (ms_paddr_t)pfn << PAGESHIFT; in memscrub_add_span_gen()
766 uint64_t bytes = (uint64_t)pages << PAGESHIFT; in memscrub_add_span_gen()
909 ms_paddr_t address = (ms_paddr_t)pfn << PAGESHIFT; in memscrub_delete_span()
910 uint64_t bytes = (uint64_t)pages << PAGESHIFT; in memscrub_delete_span()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_rm.c91 ulong_t num = (ulong_t)rm_asrss(as) << (PAGESHIFT-1); in rm_pctmemory()
92 int shift = 16 - PAGESHIFT; in rm_pctmemory()
H A Dvm_usage.c944 pgmsk = (0x1 << (pgshft - PAGESHIFT)) in vmu_amp_update_incore_bounds()
1031 pgmsk = (0x1 << (pgshft - PAGESHIFT)) in vmu_vnode_update_incore_bounds()
1278 pgmsk = (0x1 << (pgshft - PAGESHIFT)) - 1; in vmu_calculate_seg()
1329 result->vmu_rss_all += (pgcnt << PAGESHIFT); in vmu_calculate_seg()
1331 (pgcnt << PAGESHIFT); in vmu_calculate_seg()
1344 result->vmu_rss_all += (panon << PAGESHIFT); in vmu_calculate_seg()
1345 result->vmu_rss_private += (panon << PAGESHIFT); in vmu_calculate_seg()
1416 result->vmu_rss_all += (rss << PAGESHIFT); in vmu_calculate_seg()
1420 (virt << PAGESHIFT); in vmu_calculate_seg()
1422 (virt << PAGESHIFT); in vmu_calculate_seg()
[all …]
H A Danon.h140 (((((uintptr_t)(off) >> PAGESHIFT) ^ \
141 ((uintptr_t)(off) >> (PAGESHIFT + anon_hash_shift))) ^ \
255 #define ANON_CHUNK_SHIFT (PAGESHIFT - ANON_PTRSHIFT)
H A Dseg_kpm.c228 ((int)(((uintptr_t)(addr) & ((vcolors << PAGESHIFT) - 1)) >> PAGESHIFT))
H A Dseg.h245 (((uintptr_t)((addr) - (seg)->s_base)) >> PAGESHIFT)
248 (((uintptr_t)((seg)->s_size + PAGEOFFSET)) >> PAGESHIFT)
H A Dseg_kp.h69 ((int)(((uintptr_t)vaddr >> PAGESHIFT) & SEGKP_HASHMASK))
/illumos-gate/usr/src/uts/sun4/os/
H A Dmemlist.c100 npages += mp->ml_size >> PAGESHIFT; in num_phys_pages()
196 pfnum = (pfn_t)(pa >> PAGESHIFT); in less_pages()
388 highp = (list->addr + list->size - 1) >> PAGESHIFT; in installed_top_size_memlist_array()
391 sumpages += (list->size >> PAGESHIFT); in installed_top_size_memlist_array()
622 highp = (list->ml_address + list->ml_size - 1) >> PAGESHIFT; in installed_top_size()
625 sumpages += (uint_t)(list->ml_size >> PAGESHIFT); in installed_top_size()
/illumos-gate/usr/src/psm/stand/boot/sparc/sun4/sys/
H A Dmachparam.h84 #define PAGESHIFT 13 macro
85 #define PAGESIZE (1<<PAGESHIFT)
/illumos-gate/usr/src/uts/common/os/
H A Dmem_config.c152 npgs << (PAGESHIFT - 10), (uint64_t)base << PAGESHIFT); in kphysm_add_memory_dynamic()
168 mlret = memlist_add_span((uint64_t)(pt_base) << PAGESHIFT, in kphysm_add_memory_dynamic()
169 (uint64_t)(tpgs) << PAGESHIFT, &phys_install); in kphysm_add_memory_dynamic()
213 metapgs = npgs - (((uint64_t)(npgs) << PAGESHIFT) / in kphysm_add_memory_dynamic()
380 mlret = memlist_add_span((uint64_t)(base) << PAGESHIFT, in kphysm_add_memory_dynamic()
381 (uint64_t)(npgs) << PAGESHIFT, &phys_avail); in kphysm_add_memory_dynamic()
553 physinstalled << (PAGESHIFT - 10), in kphysm_add_memory_dynamic()
554 (uint64_t)physinstalled << PAGESHIFT); in kphysm_add_memory_dynamic()
556 avmem = (uint64_t)freemem << PAGESHIFT; in kphysm_add_memory_dynamic()
569 ddi_mem_update((uint64_t)(pt_base) << PAGESHIFT, in kphysm_add_memory_dynamic()
[all …]
H A Dvm_subr.c388 size = size >> PAGESHIFT; in cow_mapin()
487 size = size << PAGESHIFT; in cow_mapin()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachparam.h127 #define PAGESHIFT 13 macro
128 #define PAGESIZE (1<<PAGESHIFT)
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachparam.h159 #define PAGESHIFT 13 macro
160 #define PAGESIZE (1<<PAGESHIFT)
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac_add.c174 errs = kphysm_add_memory_dynamic(base_pa >> PAGESHIFT, in ac_add_bank()
175 bank_size >> PAGESHIFT); in ac_add_bank()
H A Dac_del.c240 base = base_pa >> PAGESHIFT; in ac_del_bank_add_span()
241 npgs = bank_size >> PAGESHIFT; in ac_del_bank_add_span()
298 base = base_pa >> PAGESHIFT; in ac_del_bank_add_cage()
299 npgs = bank_size >> PAGESHIFT; in ac_del_bank_add_cage()
H A Dac_stat.c130 base = base_pa >> PAGESHIFT; in ac_mem_stat()
131 npgs = bank_size >> PAGESHIFT; in ac_mem_stat()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmemnode.c204 start = list->ml_address >> PAGESHIFT; in startup_build_mem_nodes()
208 (list->ml_address + list->ml_size - 1) >> PAGESHIFT; in startup_build_mem_nodes()
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_umap.c148 key = off >> PAGESHIFT; in tavor_devmap()
227 PAGESHIFT), PAGESIZE, maxprot, DEVMAP_ALLOW_REMAP, in tavor_umap_uarpg()
394 key = off >> PAGESHIFT; in tavor_devmap_umem_map()
592 key = dvm_track->tdt_offset >> PAGESHIFT; in tavor_devmap_umem_unmap()
1086 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_CQMEM_RSRC) << PAGESHIFT); in tavor_umap_cq_data_out()
1139 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_QPMEM_RSRC) << PAGESHIFT); in tavor_umap_qp_data_out()
1214 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_SRQMEM_RSRC) << PAGESHIFT); in tavor_umap_srq_data_out()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_umap.c164 key = off >> PAGESHIFT; in hermon_devmap()
271 PAGESHIFT) + offset, PAGESIZE, maxprot, DEVMAP_ALLOW_REMAP, in hermon_umap_uarpg()
483 key = off >> PAGESHIFT; in hermon_devmap_umem_map()
687 key = dvm_track->hdt_offset >> PAGESHIFT; in hermon_devmap_umem_unmap()
888 key = off >> PAGESHIFT; in hermon_devmap_dbrecmem_map()
1086 key = dvm_track->hdt_offset >> PAGESHIFT; in hermon_devmap_dbrecmem_unmap()
1589 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_CQMEM_RSRC) << PAGESHIFT); in hermon_umap_cq_data_out()
1649 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_QPMEM_RSRC) << PAGESHIFT); in hermon_umap_qp_data_out()
1739 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_SRQMEM_RSRC) << PAGESHIFT); in hermon_umap_srq_data_out()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_param.h120 #define PAGESHIFT _mdb_ks_pageshift macro
/illumos-gate/usr/src/uts/common/xen/sys/
H A Dgnttab.h85 #define FRAME_TO_MA(f) ((maddr_t)(f) << PAGESHIFT)
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dmachparam.h103 #define PAGESHIFT 12 macro
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c98 const unsigned int _pageshift = (unsigned int)PAGESHIFT;
566 pgcnt_t physmegs = physmem >> (20 - PAGESHIFT); in param_calc()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dmach_kdi.c182 ma[0] = (ulong_t)(pa_to_ma(gdtpa) >> PAGESHIFT); in boot_kdi_tmpinit()

1234