Home
last modified time | relevance | path

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

1234

/titanic_44/usr/src/uts/common/sys/
H A Dparam.h383 #define PAGESHIFT _pageshift macro
420 #define ptod(x) ((x) << (PAGESHIFT - DEV_BSHIFT))
435 #define ptob(x) (((pgcnt_t)(x)) << PAGESHIFT)
437 #define ptob(x) ((x) << PAGESHIFT)
439 #define btop(x) (((x) >> PAGESHIFT))
440 #define btopr(x) ((((x) + PAGEOFFSET) >> PAGESHIFT))
446 #define dtop(DD) (((DD) + NDPP - 1) >> (PAGESHIFT - DEV_BSHIFT))
447 #define dtopt(DD) ((DD) >> (PAGESHIFT - DEV_BSHIFT))
452 #define kbtop(x) ((x) >> (PAGESHIFT - 10))
453 #define ptokb(x) ((x) << (PAGESHIFT - 10))
/titanic_44/usr/src/lib/libbc/inc/include/sun4/
H A Dparam.h106 #define PAGESHIFT 13 macro
129 #define ptob(x) ((x) << PAGESHIFT)
130 #define btop(x) (((unsigned)(x)) >> PAGESHIFT)
131 #define btopr(x) ((((unsigned)(x) + PAGEOFFSET) >> PAGESHIFT))
137 #define ptod(x) ((x) << (PAGESHIFT - DEV_BSHIFT))
200 #define CLSHIFT PAGESHIFT
/titanic_44/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 …]
/titanic_44/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()
1276 pgmsk = (0x1 << (pgshft - PAGESHIFT)) - 1; in vmu_calculate_seg()
1327 result->vmu_rss_all += (pgcnt << PAGESHIFT); in vmu_calculate_seg()
1329 (pgcnt << PAGESHIFT); in vmu_calculate_seg()
1342 result->vmu_rss_all += (panon << PAGESHIFT); in vmu_calculate_seg()
1343 result->vmu_rss_private += (panon << PAGESHIFT); in vmu_calculate_seg()
1414 result->vmu_rss_all += (rss << PAGESHIFT); in vmu_calculate_seg()
1418 (virt << PAGESHIFT); in vmu_calculate_seg()
1420 (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_kp.h71 ((int)(((uintptr_t)vaddr >> PAGESHIFT) & SEGKP_HASHMASK))
/titanic_44/usr/src/psm/stand/boot/sparc/sun4/sys/
H A Dmachparam.h84 #define PAGESHIFT 13 macro
85 #define PAGESIZE (1<<PAGESHIFT)
/titanic_44/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()
/titanic_44/usr/src/cmd/mdb/sparc/v9/kmdb/
H A Dkaif_handlers.s111 srlx %o0, PAGESHIFT, %o0; \
112 sllx %o0, PAGESHIFT, %o0; \
144 srlx %o0, PAGESHIFT, %o0; \
145 sllx %o0, PAGESHIFT, %o0; \
/titanic_44/usr/src/uts/common/os/
H A Dmem_config.c151 npgs << (PAGESHIFT - 10), (uint64_t)base << PAGESHIFT); in kphysm_add_memory_dynamic()
167 mlret = memlist_add_span((uint64_t)(pt_base) << PAGESHIFT, in kphysm_add_memory_dynamic()
168 (uint64_t)(tpgs) << PAGESHIFT, &phys_install); in kphysm_add_memory_dynamic()
212 metapgs = npgs - (((uint64_t)(npgs) << PAGESHIFT) / in kphysm_add_memory_dynamic()
379 mlret = memlist_add_span((uint64_t)(base) << PAGESHIFT, in kphysm_add_memory_dynamic()
380 (uint64_t)(npgs) << PAGESHIFT, &phys_avail); in kphysm_add_memory_dynamic()
552 physinstalled << (PAGESHIFT - 10), in kphysm_add_memory_dynamic()
553 (uint64_t)physinstalled << PAGESHIFT); in kphysm_add_memory_dynamic()
555 avmem = (uint64_t)freemem << PAGESHIFT; in kphysm_add_memory_dynamic()
568 ddi_mem_update((uint64_t)(pt_base) << PAGESHIFT, in kphysm_add_memory_dynamic()
[all …]
H A Dvm_subr.c400 size = size >> PAGESHIFT; in cow_mapin()
499 size = size << PAGESHIFT; in cow_mapin()
/titanic_44/usr/src/uts/sun4v/sys/
H A Dmachparam.h127 #define PAGESHIFT 13 macro
128 #define PAGESIZE (1<<PAGESHIFT)
/titanic_44/usr/src/uts/i86xpv/os/
H A Dmach_kdi.c185 ma[0] = (ulong_t)(pa_to_ma(gdtpa) >> PAGESHIFT); in boot_kdi_tmpinit()
244 ma[0] = (ulong_t)(pa_to_ma(gdtpa) >> PAGESHIFT); in boot_kdi_tmpinit()
/titanic_44/usr/src/uts/sun4u/sys/
H A Dmachparam.h167 #define PAGESHIFT 13 macro
168 #define PAGESIZE (1<<PAGESHIFT)
/titanic_44/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()
/titanic_44/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()
/titanic_44/usr/src/uts/sun4u/starfire/os/
H A Dpda.c157 basepfn = (pfn_t)(basepa >> PAGESHIFT); in pda_get_mem_size()
158 endpfn = (pfn_t)(endpa >> PAGESHIFT); in pda_get_mem_size()
166 >> (PAGESHIFT - BDA_PAGESHIFT); in pda_get_mem_size()
168 >> (PAGESHIFT - BDA_PAGESHIFT); in pda_get_mem_size()
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_param.h120 #define PAGESHIFT _mdb_ks_pageshift macro
/titanic_44/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()
/titanic_44/usr/src/uts/common/xen/sys/
H A Dgnttab.h87 #define FRAME_TO_MA(f) ((maddr_t)(f) << PAGESHIFT)
/titanic_44/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_umap.c155 key = off >> PAGESHIFT; in tavor_devmap()
257 PAGESHIFT), PAGESIZE, maxprot, DEVMAP_ALLOW_REMAP, in tavor_umap_uarpg()
447 key = off >> PAGESHIFT; in tavor_devmap_umem_map()
653 key = dvm_track->tdt_offset >> PAGESHIFT; in tavor_devmap_umem_unmap()
1222 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_CQMEM_RSRC) << PAGESHIFT); in tavor_umap_cq_data_out()
1284 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_QPMEM_RSRC) << PAGESHIFT); in tavor_umap_qp_data_out()
1368 MLNX_UMAP_RSRC_TYPE_SHIFT) | MLNX_UMAP_SRQMEM_RSRC) << PAGESHIFT); in tavor_umap_srq_data_out()

1234