/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memnode.c | 70 int mnode; in mem_node_add_slice() local 83 mnode = PFN_2_MEM_NODE(start); in mem_node_add_slice() 84 ASSERT(mnode < max_mem_nodes); in mem_node_add_slice() 86 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) { in mem_node_add_slice() 90 if (start < mem_node_config[mnode].physbase) in mem_node_add_slice() 91 mem_node_config[mnode].physbase = start; in mem_node_add_slice() 92 if (end > mem_node_config[mnode].physmax) in mem_node_add_slice() 93 mem_node_config[mnode].physmax = end; in mem_node_add_slice() 95 mem_node_config[mnode].physbase = start; in mem_node_add_slice() 96 mem_node_config[mnode].physmax = end; in mem_node_add_slice() [all …]
|
H A D | lgrpplat.c | 163 int mnode; in lgrp_plat_pfn_to_hand() local 171 mnode = PFN_2_MEM_NODE(pfn); in lgrp_plat_pfn_to_hand() 172 if (mnode < 0) in lgrp_plat_pfn_to_hand() 175 return (MEM_NODE_2_LGRPHAND(mnode)); in lgrp_plat_pfn_to_hand() 200 int mnode; in lgrp_plat_mem_size() local 211 mnode = plat_lgrphand_to_mem_node(plathand); in lgrp_plat_mem_size() 212 if (mnode >= 0 && mem_node_config[mnode].exists) { in lgrp_plat_mem_size() 215 npgs = MNODE_PGCNT(mnode); in lgrp_plat_mem_size() 218 npgs = mem_node_memlist_pages(mnode, in lgrp_plat_mem_size() 222 npgs = mem_node_memlist_pages(mnode, in lgrp_plat_mem_size() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | memnode.c | 73 int mnode; in mem_node_add_slice() local 86 mnode = PFN_2_MEM_NODE(start); in mem_node_add_slice() 87 ASSERT(mnode >= 0 && mnode < max_mem_nodes); in mem_node_add_slice() 89 if (atomic_cas_32((uint32_t *)&mem_node_config[mnode].exists, 0, 1)) { in mem_node_add_slice() 93 if (start < mem_node_config[mnode].physbase) in mem_node_add_slice() 94 mem_node_config[mnode].physbase = start; in mem_node_add_slice() 95 if (end > mem_node_config[mnode].physmax) in mem_node_add_slice() 96 mem_node_config[mnode].physmax = end; in mem_node_add_slice() 98 mem_node_config[mnode].physbase = start; in mem_node_add_slice() 99 mem_node_config[mnode].physmax = end; in mem_node_add_slice() [all …]
|
H A D | lgrpplat.c | 417 lgrp_handle_t plat_mem_node_to_lgrphand(int mnode); 695 plat_mem_node_to_lgrphand(int mnode) in plat_mem_node_to_lgrphand() argument 700 ASSERT(0 <= mnode && mnode < lgrp_plat_max_mem_node); in plat_mem_node_to_lgrphand() 702 return ((lgrp_handle_t)(lgrp_plat_memnode_info[mnode].lgrphand)); in plat_mem_node_to_lgrphand() 1162 int mnode; in lgrp_plat_mem_size() local 1173 mnode = (int)plathand; in lgrp_plat_mem_size() 1174 ASSERT(mnode < lgrp_plat_node_cnt); in lgrp_plat_mem_size() 1175 _LGRP_PLAT_MEM_SIZE(mnode, query, npgs); in lgrp_plat_mem_size() 1178 for (mnode = lgrp_plat_node_cnt; in lgrp_plat_mem_size() 1179 mnode < lgrp_plat_max_mem_node; mnode++) { in lgrp_plat_mem_size() [all …]
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_pagelist.c | 318 #define PAGE_COUNTERS(mnode, rg_szc, idx) \ argument 319 (page_counters[(rg_szc)][(mnode)].hpm_counters[(idx)]) 321 #define PAGE_COUNTERS_COUNTERS(mnode, rg_szc) \ argument 322 (page_counters[(rg_szc)][(mnode)].hpm_counters) 324 #define PAGE_COUNTERS_SHIFT(mnode, rg_szc) \ argument 325 (page_counters[(rg_szc)][(mnode)].hpm_shift) 327 #define PAGE_COUNTERS_ENTRIES(mnode, rg_szc) \ argument 328 (page_counters[(rg_szc)][(mnode)].hpm_entries) 330 #define PAGE_COUNTERS_BASE(mnode, rg_szc) \ argument 331 (page_counters[(rg_szc)][(mnode)].hpm_base) [all …]
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | vm_dep.h | 68 #define PLCNT_INCR(pp, mnode, mtype, szc, flags) \ argument 70 #define PLCNT_DECR(pp, mnode, mtype, szc, flags) \ argument 99 #define MNODE_RANGE_CNT(mnode) mnode_range_cnt(mnode) argument 100 #define MNODE_MAX_MRANGE(mnode) memrange_num(mem_node_config[mnode].physbase) argument 107 #define MTYPE_2_MRANGE(mnode, mtype) \ argument 108 (mnode_maxmrange[mnode] - mtype_2_mrange(mtype)) 119 #define PAGE_FREELISTS(mnode, szc, color, mtype) \ argument 130 #define PAGE_CACHELISTS(mnode, color, mtype) \ argument 150 #define MEM_NODE_ITERATOR_INIT(pfn, mnode, szc, it) argument 157 #define HPM_COUNTERS_LIMITS(mnode, physbase, physmax, first) \ argument [all …]
|
H A D | vm_machdep.c | 1352 mnode_range_cnt(int mnode) in mnode_range_cnt() argument 1355 ASSERT(mnode == 0); in mnode_range_cnt() 1361 if (mem_node_config[mnode].exists != 0) { in mnode_range_cnt() 1366 while (MEMRANGEHI(mri) < mem_node_config[mnode].physbase) in mnode_range_cnt() 1374 mem_node_config[mnode].physmax >= MEMRANGELO(mri)) { in mnode_range_cnt() 1376 if (mem_node_config[mnode].physmax > MEMRANGEHI(mri)) in mnode_range_cnt() 1403 size_t mnode; in mnode_range_setup() local 1405 for (mnode = 0, nr_ranges = 0, mp = mnoderanges; in mnode_range_setup() 1406 mnode < max_mem_nodes; mnode++) { in mnode_range_setup() 1409 if (mem_node_config[mnode].exists == 0) in mnode_range_setup() [all …]
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.h | 62 #define MNODETYPE_2_PFN(mnode, mtype, pfnlo, pfnhi) \ argument 63 pfnlo = mem_node_config[mnode].physbase; \ 64 pfnhi = mem_node_config[mnode].physmax; 70 #define MNODE_RANGE_CNT(mnode) MAX_MNODE_MRANGES argument 71 #define MNODE_MAX_MRANGE(mnode) (MAX_MEM_TYPES - 1) argument 72 #define MTYPE_2_MRANGE(mnode, mtype) (mtype) argument 91 #define PAGE_FREELISTS(mnode, szc, color, mtype) \ argument 92 (*(page_freelists[szc][mtype][mnode] + (color))) 94 #define PAGE_CACHELISTS(mnode, color, mtype) \ argument 95 (*(page_cachelists[mtype][mnode] + (color))) [all …]
|
H A D | vm_dep.c | 740 int mnode, mtype; in alloc_page_freelists() local 749 for (mnode = 0; mnode < max_mem_nodes; mnode++) { in alloc_page_freelists() 750 page_cachelists[mtype][mnode] = (page_t **)alloc_base; in alloc_page_freelists() 765 for (mnode = 0; mnode < max_mem_nodes; mnode++) { in alloc_page_freelists() 766 page_freelists[szc][mtype][mnode] = in alloc_page_freelists()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mpo.c | 871 mpo_plat_assign_lgrphand_to_mem_node(lgrp_handle_t plathand, int mnode) in mpo_plat_assign_lgrphand_to_mem_node() argument 874 "mnode index: %d\n", plathand, mnode); in mpo_plat_assign_lgrphand_to_mem_node() 875 plat_assign_lgrphand_to_mem_node(plathand, mnode); in mpo_plat_assign_lgrphand_to_mem_node() 999 int i, mnode; in plat_pfn_to_mem_node() local 1017 mnode = (((pfn + ra_to_pa_pfn) & home_mask_pfn) >> in plat_pfn_to_mem_node() 1019 ASSERT(mnode < max_mem_nodes); in plat_pfn_to_mem_node() 1021 return (mnode); in plat_pfn_to_mem_node() 1102 plat_mem_node_iterator_init(pfn_t pfn, int mnode, uchar_t szc, in plat_mem_node_iterator_init() argument 1113 ASSERT(mnode >= 0 && mnode < max_mem_nodes); in plat_mem_node_iterator_init() 1131 it->mi_mnode = mnode; in plat_mem_node_iterator_init() [all …]
|
/illumos-gate/usr/src/uts/sun4u/daktari/os/ |
H A D | daktari.c | 288 plat_freelist_process(int mnode) in plat_freelist_process() argument 300 int mnode; in update_mem_bounds() local 314 if ((mnode = plat_lgrphand_to_mem_node(boardid)) == -1) { in update_mem_bounds() 315 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) in update_mem_bounds() 316 mnode = mem_node_alloc(); in update_mem_bounds() 318 ASSERT(mnode >= 0); in update_mem_bounds() 319 ASSERT(mnode < MAX_MEM_NODES); in update_mem_bounds() 320 plat_assign_lgrphand_to_mem_node(boardid, mnode); in update_mem_bounds() 326 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds()
|
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/ |
H A D | cherrystone.c | 297 plat_freelist_process(int mnode) in plat_freelist_process() argument 309 int mnode; in update_mem_bounds() local 323 if ((mnode = plat_lgrphand_to_mem_node(boardid)) == -1) { in update_mem_bounds() 324 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) in update_mem_bounds() 325 mnode = mem_node_alloc(); in update_mem_bounds() 327 ASSERT(mnode >= 0); in update_mem_bounds() 328 ASSERT(mnode < MAX_MEM_NODES); in update_mem_bounds() 329 plat_assign_lgrphand_to_mem_node(boardid, mnode); in update_mem_bounds() 335 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds()
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | memnode.h | 52 #define MEM_NODE_2_LGRPHAND(mnode) \ argument 53 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | memnode.h | 74 #define MEM_NODE_2_LGRPHAND(mnode) \ argument 75 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
|
/illumos-gate/usr/src/uts/sun4u/opl/os/ |
H A D | opl.c | 634 int mnode, snode, tnode; in plat_lgrp_config() local 649 mnode = plat_pfn_to_mem_node(umb->u_base >> MMU_PAGESHIFT); in plat_lgrp_config() 650 plat_assign_lgrphand_to_mem_node(hand, mnode); in plat_lgrp_config() 660 if ((mnode = plat_lgrphand_to_mem_node(hand)) != -1) { in plat_lgrp_config() 661 if (mem_node_config[mnode].exists) { in plat_lgrp_config() 662 start = mem_node_config[mnode].physbase; in plat_lgrp_config() 663 end = mem_node_config[mnode].physmax; in plat_lgrp_config() 773 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | cpu_prop_update.c | 206 add_clock_frequency(picl_nodehdl_t pnode, mde_cookie_t mnode) in add_clock_frequency() argument 211 if (md_get_prop_val(mdp, mnode, "clock-frequency", in add_clock_frequency() 239 add_compatible(picl_nodehdl_t pnode, mde_cookie_t mnode) in add_compatible() argument 249 if (md_get_prop_data(mdp, mnode, "compatible", (uint8_t **)&compat, in add_compatible()
|
/illumos-gate/usr/src/uts/sun4u/lw8/os/ |
H A D | lw8_platmod.c | 301 int mnode; in update_mem_bounds() local 312 if ((mnode = plat_lgrphand_to_mem_node(brd)) == -1) { in update_mem_bounds() 313 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) in update_mem_bounds() 314 mnode = mem_node_alloc(); in update_mem_bounds() 315 plat_assign_lgrphand_to_mem_node(brd, mnode); in update_mem_bounds() 324 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds() 616 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/uts/sun4u/serengeti/os/ |
H A D | serengeti.c | 294 int mnode; in update_mem_bounds() local 305 if ((mnode = plat_lgrphand_to_mem_node(brd)) == -1) { in update_mem_bounds() 306 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) in update_mem_bounds() 307 mnode = mem_node_alloc(); in update_mem_bounds() 308 plat_assign_lgrphand_to_mem_node(brd, mnode); in update_mem_bounds() 317 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds() 608 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | policy.c | 632 xmlNodePtr mnode; in AddValidationNodes() local 636 mnode = xmlNewChild(parent, NULL, in AddValidationNodes() 638 if (mnode == NULL) in AddValidationNodes() 641 addFormatting(mnode, "\n"); in AddValidationNodes() 644 ret = AddOCSPNodes(mnode, &(policy->validation_info.ocsp_info)); in AddValidationNodes() 650 ret = AddCRLNodes(mnode, &(policy->validation_info.crl_info)); in AddValidationNodes() 655 addFormatting(mnode, "\t"); in AddValidationNodes() 660 xmlUnlinkNode(mnode); in AddValidationNodes() 661 xmlFreeNode(mnode); in AddValidationNodes()
|
/illumos-gate/usr/src/uts/i86pc/io/xsvc/ |
H A D | xsvc.c | 294 xsvc_mnode_t *mnode; in xsvc_detach() local 319 while ((mnode = avl_first(&state->xs_mlist.ml_avl)) != NULL) { in xsvc_detach() 320 mp = mnode->mn_home; in xsvc_detach() 765 xsvc_mnode_t mnode; in xsvc_mem_lookup() local 770 mnode.mn_key = key; in xsvc_mem_lookup() 772 mnp = avl_find(&state->xs_mlist.ml_avl, &mnode, &where); in xsvc_mem_lookup()
|
/illumos-gate/usr/src/uts/sun4u/darwin/os/ |
H A D | darwin.c | 75 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/uts/sun4u/javelin/os/ |
H A D | javelin.c | 77 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/uts/sun4u/tazmo/os/ |
H A D | tazmo.c | 77 plat_freelist_process(int mnode) in plat_freelist_process() argument
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | lgrp.c | 1220 lgrp_mem_rename(int mnode, lgrp_handle_t from, lgrp_handle_t to) in lgrp_mem_rename() argument 1226 lgrp_mem_fini(mnode, from, B_TRUE); in lgrp_mem_rename() 1227 lgrp_mem_init(mnode, to, B_TRUE); in lgrp_mem_rename() 1245 lgrp_mem_init(int mnode, lgrp_handle_t hand, boolean_t is_copy_rename) in lgrp_mem_init() argument 1252 mnodeset_t mnodes_mask = ((mnodeset_t)1 << mnode); in lgrp_mem_init() 1393 lgrp_mem_fini(int mnode, lgrp_handle_t hand, boolean_t is_copy_rename) in lgrp_mem_fini() argument 1429 mnodes_mask = ((mnodeset_t)1 << mnode); in lgrp_mem_fini() 4407 int offset, mnode; in lgrp_memnode_choose() local 4439 for (mnode = 0; mnode < max_mem_nodes; mnode++) in lgrp_memnode_choose() 4440 if (nodes & ((mnodeset_t)1 << mnode)) in lgrp_memnode_choose() [all …]
|
/illumos-gate/usr/src/uts/sun4u/grover/os/ |
H A D | grover.c | 164 plat_freelist_process(int mnode) in plat_freelist_process() argument
|