/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memnode.c | 70 int mnode; local 83 mnode = PFN_2_MEM_NODE(start); 84 ASSERT(mnode < max_mem_nodes); 86 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) { 90 if (start < mem_node_config[mnode].physbase) 91 mem_node_config[mnode].physbase = start; 92 if (end > mem_node_config[mnode].physmax) 93 mem_node_config[mnode].physmax = end; 95 mem_node_config[mnode].physbase = start; 96 mem_node_config[mnode] 120 int mnode; local 216 int mnode; local 249 mem_node_memlist_pages(int mnode, struct memlist *mlist) argument 303 int mnode; local [all...] |
H A D | lgrpplat.c | 163 int mnode; local 171 mnode = PFN_2_MEM_NODE(pfn); 172 if (mnode < 0) 175 return (MEM_NODE_2_LGRPHAND(mnode)); 200 int mnode; local 211 mnode = plat_lgrphand_to_mem_node(plathand); 212 if (mnode >= 0 && mem_node_config[mnode].exists) { 215 npgs = MNODE_PGCNT(mnode); 218 npgs = mem_node_memlist_pages(mnode, 304 int mnode; local 321 plat_mem_node_to_lgrphand(int mnode) argument 331 plat_assign_lgrphand_to_mem_node(lgrp_handle_t plathand, int mnode) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | memnode.c | 73 int mnode; local 86 mnode = PFN_2_MEM_NODE(start); 87 ASSERT(mnode >= 0 && mnode < max_mem_nodes); 89 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) { 93 if (start < mem_node_config[mnode].physbase) 94 mem_node_config[mnode].physbase = start; 95 if (end > mem_node_config[mnode].physmax) 96 mem_node_config[mnode].physmax = end; 98 mem_node_config[mnode] 124 int mnode; local 225 int mnode; local 259 mem_node_memlist_pages(int mnode, struct memlist *mlist) argument [all...] |
H A D | lgrpplat.c | 416 lgrp_handle_t plat_mem_node_to_lgrphand(int mnode); 679 * large page found to cross mnode boundary. 694 plat_mem_node_to_lgrphand(int mnode) argument 699 ASSERT(0 <= mnode && mnode < lgrp_plat_max_mem_node); 701 return ((lgrp_handle_t)(lgrp_plat_memnode_info[mnode].lgrphand)); 1128 * Count number of memory pages (_t) based on mnode id (_n) and query type (_t). 1160 int mnode; local 1171 mnode = (int)plathand; 1172 ASSERT(mnode < lgrp_plat_node_cn 1194 int mnode; local 2077 int mnode; local 2213 int node, mnode; local [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_pagelist.c | 84 * from the local mnode in favor of acquiring the 'correct' page color from 85 * a demoted large page or from a remote mnode. 181 * page_ctrs_cands is indexed by mutex (i), region (r), mnode (m), mrange (g) 187 * for the given mnode (m), mrange (g), and region size (r) 199 * for the given mnode (m), mrange (g), region size (r), and color (c) 246 * physical memory. A hw_page_map_t will be allocated per mnode per szc. 257 * page_counters[region_size][mnode] 262 * page_counters[region_size][mnode].hpm_counters[index]: 268 * for the mnode we want. We calculate the index and look at a specific 307 * Cached value of MNODE_RANGE_CNT(mnode) 543 int mnode; local 641 int mnode; local 807 page_ctr_add_internal(int mnode, int mtype, page_t *pp, int flags) argument 856 page_ctr_add(int mnode, int mtype, page_t *pp, int flags) argument 867 page_ctr_sub_internal(int mnode, int mtype, page_t *pp, int flags) argument 919 page_ctr_sub(int mnode, int mtype, page_t *pp, int flags) argument 940 page_ctrs_adjust(int mnode) argument 1360 page_freelist_lock(int mnode) argument 1370 page_freelist_unlock(int mnode) argument 1389 int mnode; local 1481 int mnode; local 1584 int mnode; local 1653 int mnode; local 1771 int mnode; local 1893 int mnode; local 1966 page_promote(int mnode, pfn_t pfnum, uchar_t new_szc, int flags, int mtype) argument 2150 page_demote(int mnode, pfn_t pfnum, pfn_t pfnmax, uchar_t cur_szc, uchar_t new_szc, int color, int flags) argument 2270 page_freelist_coalesce(int mnode, uchar_t szc, uint_t color, uint_t ceq_mask, int mtype, pfn_t pfnhi) argument 2491 page_freelist_coalesce_all(int mnode) argument 2583 page_freelist_split(uchar_t szc, uint_t color, int mnode, int mtype, pfn_t pfnlo, pfn_t pfnhi, page_list_walker_t *plw) argument 2918 page_get_mnode_freelist(int mnode, uint_t bin, int mtype, uchar_t szc, uint_t flags) argument 3091 page_freecnt(int mnode, page_t *pp, uchar_t szc) argument 3144 page_trylock_contig_pages(int mnode, page_t *spp, uchar_t szc, int flags) argument 3420 page_geti_contig_pages(int mnode, uint_t bin, uchar_t szc, int flags, pfn_t pfnlo, pfn_t pfnhi, pgcnt_t pfnflag) argument 3637 page_get_contig_pages(int mnode, uint_t bin, int mtype, uchar_t szc, uint_t flags) argument 3739 int mnode; local 3890 int mnode; local 3982 page_get_mnode_cachelist(uint_t bin, uint_t flags, int mnode, int mtype) argument 4141 int mnode, page_mnode; local 4414 int mnode; local [all...] |
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | vm_dep.h | 67 #define PLCNT_INCR(pp, mnode, mtype, szc, flags) \ 69 #define PLCNT_DECR(pp, mnode, mtype, szc, flags) \ 97 #define MNODE_RANGE_CNT(mnode) mnode_range_cnt(mnode) 98 #define MNODE_MAX_MRANGE(mnode) memrange_num(mem_node_config[mnode].physbase) 105 #define MTYPE_2_MRANGE(mnode, mtype) \ 106 (mnode_maxmrange[mnode] - mtype_2_mrange(mtype)) 112 * mtype specifies a physical memory range with a unique mnode. 117 #define PAGE_FREELISTS(mnode, sz [all...] |
H A D | vm_machdep.c | 144 * combined memory ranges from mnode and memranges[] to manage single 145 * mnode/mtype dimension in the page lists. 159 struct mnr_mts { /* mnode/mtype szc stats */ 336 * mnode range, the page freelist and cachelist are hashed into bins based on 1263 * mnode_range_cnt() calculates the number of memory ranges for mnode and 1267 mnode_range_cnt(int mnode) argument 1270 ASSERT(mnode == 0); 1276 if (mem_node_config[mnode].exists != 0) { 1279 /* find the memranges index below contained in mnode range */ 1281 while (MEMRANGEHI(mri) < mem_node_config[mnode] 1309 int mnode, mri; local 1377 mnode_range_add(int mnode) argument 1456 mnode_range_del(int mnode) argument 1534 mtype_pgr_init(int *flags, page_t *pp, int mnode, pgcnt_t pgcnt) argument 1556 mtype_func(int mnode, int mtype, uint_t flags) argument 1626 mnodetype_2_pfn(int mnode, int mtype, pfn_t *pfnlo, pfn_t *pfnhi) argument 1695 mnode_pgcnt(int mnode) argument 3106 page_get_mnode_anylist(ulong_t origbin, uchar_t szc, uint_t flags, int mnode, int mtype, ddi_dma_attr_t *dma_attr) argument 3326 int mnode; local [all...] |
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | memnode.h | 52 #define MEM_NODE_2_LGRPHAND(mnode) \ 53 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
|
/illumos-gate/usr/src/uts/sun4u/tazmo/os/ |
H A D | tazmo.c | 77 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/darwin/os/ |
H A D | darwin.c | 75 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/javelin/os/ |
H A D | javelin.c | 77 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.h | 58 #define MTYPE_PGR_INIT(mtype, flags, pp, mnode, pgcnt) \ 61 #define MNODETYPE_2_PFN(mnode, mtype, pfnlo, pfnhi) \ 62 pfnlo = mem_node_config[mnode].physbase; \ 63 pfnhi = mem_node_config[mnode].physmax; 69 #define MNODE_RANGE_CNT(mnode) MAX_MNODE_MRANGES 70 #define MNODE_MAX_MRANGE(mnode) (MAX_MEM_TYPES - 1) 71 #define MTYPE_2_MRANGE(mnode, mtype) (mtype) 90 #define PAGE_FREELISTS(mnode, szc, color, mtype) \ 91 (*(page_freelists[szc][mtype][mnode] + (color))) 93 #define PAGE_CACHELISTS(mnode, colo [all...] |
H A D | vm_dep.c | 815 int mnode, mtype; local 824 for (mnode = 0; mnode < max_mem_nodes; mnode++) { 825 page_cachelists[mtype][mnode] = (page_t **)alloc_base; 840 for (mnode = 0; mnode < max_mem_nodes; mnode++) { 841 page_freelists[szc][mtype][mnode] =
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | memnode.h | 74 #define MEM_NODE_2_LGRPHAND(mnode) \ 75 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
|
H A D | platform_module.h | 62 extern void plat_freelist_process(int mnode);
|
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/ |
H A D | cherrystone.c | 297 plat_freelist_process(int mnode) argument 308 int mnode; local 322 if ((mnode = plat_lgrphand_to_mem_node(boardid)) == -1) { 323 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) 324 mnode = mem_node_alloc(); 326 ASSERT(mnode >= 0); 327 ASSERT(mnode < MAX_MEM_NODES); 328 plat_assign_lgrphand_to_mem_node(boardid, mnode); 334 slice_to_memnode[PA_2_SLICE(base)] = mnode;
|
/illumos-gate/usr/src/uts/sun4u/daktari/os/ |
H A D | daktari.c | 288 plat_freelist_process(int mnode) argument 300 int mnode; local 314 if ((mnode = plat_lgrphand_to_mem_node(boardid)) == -1) { 315 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) 316 mnode = mem_node_alloc(); 318 ASSERT(mnode >= 0); 319 ASSERT(mnode < MAX_MEM_NODES); 320 plat_assign_lgrphand_to_mem_node(boardid, mnode); 326 slice_to_memnode[PA_2_SLICE(base)] = mnode;
|
/illumos-gate/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 230 int mnode; /* mirror nodeid */ local 368 nodes = getnodelist(fd, &nsize, &mnode); 389 if (mnode != -1) { 391 if (nodes[i].nc_nodeid == mnode) { 397 if ((mnode == -1) || (i >= nsize)) { 399 mnode = -1; 403 (void) printf(gettext("Mirror Node ID: %d\n"), mnode); 413 if (nodes[i].nc_nodeid != mnode) {
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mpo.c | 731 /* Validate that no large pages cross mnode boundaries. */ 810 * an mnode based on the supplied memory segment. 871 mpo_plat_assign_lgrphand_to_mem_node(lgrp_handle_t plathand, int mnode) argument 874 "mnode index: %d\n", plathand, mnode); 875 plat_assign_lgrphand_to_mem_node(plathand, mnode); 891 * The stripe of an mnode that falls within an mblock is described by the type 892 * mem_stripe_t, and there is one mem_stripe_t per mnode per mblock. The 894 * this array is predetermined. The mem_stripe_t that describes mnode m 999 int i, mnode; local 1102 plat_mem_node_iterator_init(pfn_t pfn, int mnode, uchar_t szc, mem_node_iterator_t *it, int init) argument 1209 plat_mem_node_intersect_range(pfn_t test_base, pgcnt_t test_len, int mnode, pgcnt_t *npages_out) argument 1778 int i, mnode; local 1889 int i, j, mnode, found; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | cpu_prop_update.c | 208 add_clock_frequency(picl_nodehdl_t pnode, mde_cookie_t mnode) argument 213 if (md_get_prop_val(mdp, mnode, "clock-frequency", 241 add_compatible(picl_nodehdl_t pnode, mde_cookie_t mnode) argument 251 if (md_get_prop_data(mdp, mnode, "compatible", (uint8_t **)&compat,
|
/illumos-gate/usr/src/uts/sun4u/fjlite/os/ |
H A D | fjlite.c | 175 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/grover/os/ |
H A D | grover.c | 168 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/snowbird/os/ |
H A D | snowbird.c | 201 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/taco/os/ |
H A D | taco.c | 188 plat_freelist_process(int mnode) argument
|
/illumos-gate/usr/src/uts/sun4u/littleneck/os/ |
H A D | littleneck.c | 128 plat_freelist_process(int mnode) argument
|