Home
last modified time | relevance | path

Searched refs:mnode (Results 1 – 25 of 46) sorted by relevance

12

/titanic_50/usr/src/uts/sun4/os/
H A Dmemnode.c70 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 Dlgrpplat.c163 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 …]
/titanic_50/usr/src/uts/i86pc/os/
H A Dmemnode.c73 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 Dlgrpplat.c416 lgrp_handle_t plat_mem_node_to_lgrphand(int mnode);
694 plat_mem_node_to_lgrphand(int mnode) in plat_mem_node_to_lgrphand() argument
699 ASSERT(0 <= mnode && mnode < lgrp_plat_max_mem_node); in plat_mem_node_to_lgrphand()
701 return ((lgrp_handle_t)(lgrp_plat_memnode_info[mnode].lgrphand)); in plat_mem_node_to_lgrphand()
1160 int mnode; in lgrp_plat_mem_size() local
1171 mnode = (int)plathand; in lgrp_plat_mem_size()
1172 ASSERT(mnode < lgrp_plat_node_cnt); in lgrp_plat_mem_size()
1173 _LGRP_PLAT_MEM_SIZE(mnode, query, npgs); in lgrp_plat_mem_size()
1176 for (mnode = lgrp_plat_node_cnt; in lgrp_plat_mem_size()
1177 mnode < lgrp_plat_max_mem_node; mnode++) { in lgrp_plat_mem_size()
[all …]
/titanic_50/usr/src/uts/common/vm/
H A Dvm_pagelist.c318 #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 …]
/titanic_50/usr/src/uts/i86pc/vm/
H A Dvm_dep.h67 #define PLCNT_INCR(pp, mnode, mtype, szc, flags) \ argument
69 #define PLCNT_DECR(pp, mnode, mtype, szc, flags) \ argument
97 #define MNODE_RANGE_CNT(mnode) mnode_range_cnt(mnode) argument
98 #define MNODE_MAX_MRANGE(mnode) memrange_num(mem_node_config[mnode].physbase) argument
105 #define MTYPE_2_MRANGE(mnode, mtype) \ argument
106 (mnode_maxmrange[mnode] - mtype_2_mrange(mtype))
117 #define PAGE_FREELISTS(mnode, szc, color, mtype) \ argument
128 #define PAGE_CACHELISTS(mnode, color, mtype) \ argument
148 #define MEM_NODE_ITERATOR_INIT(pfn, mnode, szc, it) argument
155 #define HPM_COUNTERS_LIMITS(mnode, physbase, physmax, first) \ argument
[all …]
H A Dvm_machdep.c1230 mnode_range_cnt(int mnode) in mnode_range_cnt() argument
1233 ASSERT(mnode == 0); in mnode_range_cnt()
1239 if (mem_node_config[mnode].exists != 0) { in mnode_range_cnt()
1244 while (MEMRANGEHI(mri) < mem_node_config[mnode].physbase) in mnode_range_cnt()
1252 mem_node_config[mnode].physmax >= MEMRANGELO(mri)) { in mnode_range_cnt()
1254 if (mem_node_config[mnode].physmax > MEMRANGEHI(mri)) in mnode_range_cnt()
1272 int mnode, mri; in mnode_range_setup() local
1278 for (mnode = 0; mnode < max_mem_nodes; mnode++) { in mnode_range_setup()
1279 if (mem_node_config[mnode].exists == 0) in mnode_range_setup()
1284 while (MEMRANGEHI(mri) < mem_node_config[mnode].physbase) in mnode_range_setup()
[all …]
/titanic_50/usr/src/uts/sun4/vm/
H A Dvm_dep.h58 #define MTYPE_PGR_INIT(mtype, flags, pp, mnode, pgcnt) \ argument
61 #define MNODETYPE_2_PFN(mnode, mtype, pfnlo, pfnhi) \ argument
62 pfnlo = mem_node_config[mnode].physbase; \
63 pfnhi = mem_node_config[mnode].physmax;
69 #define MNODE_RANGE_CNT(mnode) MAX_MNODE_MRANGES argument
70 #define MNODE_MAX_MRANGE(mnode) (MAX_MEM_TYPES - 1) argument
71 #define MTYPE_2_MRANGE(mnode, mtype) (mtype) argument
90 #define PAGE_FREELISTS(mnode, szc, color, mtype) \ argument
91 (*(page_freelists[szc][mtype][mnode] + (color)))
93 #define PAGE_CACHELISTS(mnode, color, mtype) \ argument
[all …]
H A Dvm_dep.c801 int mnode, mtype; in alloc_page_freelists() local
810 for (mnode = 0; mnode < max_mem_nodes; mnode++) { in alloc_page_freelists()
811 page_cachelists[mtype][mnode] = (page_t **)alloc_base; in alloc_page_freelists()
826 for (mnode = 0; mnode < max_mem_nodes; mnode++) { in alloc_page_freelists()
827 page_freelists[szc][mtype][mnode] = in alloc_page_freelists()
/titanic_50/usr/src/uts/sun4v/os/
H A Dmpo.c871 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 …]
/titanic_50/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c288 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()
/titanic_50/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c297 plat_freelist_process(int mnode) in plat_freelist_process() argument
308 int mnode; in update_mem_bounds() local
322 if ((mnode = plat_lgrphand_to_mem_node(boardid)) == -1) { in update_mem_bounds()
323 if ((mnode = slice_to_memnode[PA_2_SLICE(base)]) == -1) in update_mem_bounds()
324 mnode = mem_node_alloc(); in update_mem_bounds()
326 ASSERT(mnode >= 0); in update_mem_bounds()
327 ASSERT(mnode < MAX_MEM_NODES); in update_mem_bounds()
328 plat_assign_lgrphand_to_mem_node(boardid, mnode); in update_mem_bounds()
334 slice_to_memnode[PA_2_SLICE(base)] = mnode; in update_mem_bounds()
/titanic_50/usr/src/cmd/avs/ncall/
H A Dncalladm.c230 int mnode; /* mirror nodeid */ in ncalladm_lintmain() local
368 nodes = getnodelist(fd, &nsize, &mnode); in ncalladm_lintmain()
389 if (mnode != -1) { in ncalladm_lintmain()
391 if (nodes[i].nc_nodeid == mnode) { in ncalladm_lintmain()
397 if ((mnode == -1) || (i >= nsize)) { in ncalladm_lintmain()
399 mnode = -1; in ncalladm_lintmain()
403 (void) printf(gettext("Mirror Node ID: %d\n"), mnode); in ncalladm_lintmain()
413 if (nodes[i].nc_nodeid != mnode) { in ncalladm_lintmain()
/titanic_50/usr/src/uts/i86pc/sys/
H A Dmemnode.h52 #define MEM_NODE_2_LGRPHAND(mnode) \ argument
53 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
/titanic_50/usr/src/uts/sun4/sys/
H A Dmemnode.h74 #define MEM_NODE_2_LGRPHAND(mnode) \ argument
75 ((max_mem_nodes > 1) ? plat_mem_node_to_lgrphand(mnode) : \
/titanic_50/usr/src/uts/sun4u/opl/os/
H A Dopl.c631 int mnode, snode, tnode; in plat_lgrp_config() local
646 mnode = plat_pfn_to_mem_node(umb->u_base >> MMU_PAGESHIFT); in plat_lgrp_config()
647 plat_assign_lgrphand_to_mem_node(hand, mnode); in plat_lgrp_config()
657 if ((mnode = plat_lgrphand_to_mem_node(hand)) != -1) { in plat_lgrp_config()
658 if (mem_node_config[mnode].exists) { in plat_lgrp_config()
659 start = mem_node_config[mnode].physbase; in plat_lgrp_config()
660 end = mem_node_config[mnode].physmax; in plat_lgrp_config()
770 plat_freelist_process(int mnode) in plat_freelist_process() argument
/titanic_50/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dcpu_prop_update.c208 add_clock_frequency(picl_nodehdl_t pnode, mde_cookie_t mnode) in add_clock_frequency() argument
213 if (md_get_prop_val(mdp, mnode, "clock-frequency", in add_clock_frequency()
241 add_compatible(picl_nodehdl_t pnode, mde_cookie_t mnode) in add_compatible() argument
251 if (md_get_prop_data(mdp, mnode, "compatible", (uint8_t **)&compat, in add_compatible()
/titanic_50/usr/src/uts/sun4u/lw8/os/
H A Dlw8_platmod.c301 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
/titanic_50/usr/src/uts/sun4u/serengeti/os/
H A Dserengeti.c294 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
/titanic_50/usr/src/uts/sun4u/darwin/os/
H A Ddarwin.c75 plat_freelist_process(int mnode) in plat_freelist_process() argument
/titanic_50/usr/src/uts/sun4u/javelin/os/
H A Djavelin.c77 plat_freelist_process(int mnode) in plat_freelist_process() argument
/titanic_50/usr/src/uts/sun4u/tazmo/os/
H A Dtazmo.c77 plat_freelist_process(int mnode) in plat_freelist_process() argument
/titanic_50/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c632 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()
/titanic_50/usr/src/uts/sun4u/starfire/os/
H A Dstarfire.c266 plat_freelist_process(int mnode) in plat_freelist_process() argument
298 freelist = &PAGE_FREELISTS(mnode, size, in plat_freelist_process()
305 pcm = PC_BIN_MUTEX(mnode, color, PG_FREE_LIST); in plat_freelist_process()
/titanic_50/usr/src/uts/i86pc/io/xsvc/
H A Dxsvc.c294 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()
764 xsvc_mnode_t mnode; in xsvc_mem_lookup() local
769 mnode.mn_key = key; in xsvc_mem_lookup()
771 mnp = avl_find(&state->xs_mlist.ml_avl, &mnode, &where); in xsvc_mem_lookup()

12