/titanic_44/usr/src/lib/fm/topo/modules/common/hostbridge/ |
H A D | hostbridge.c | 193 tnode_t *ntn; in hb_tnode_create() local 206 ntn = topo_node_bind(mod, parent, name, i, fmri); in hb_tnode_create() 207 if (ntn == NULL) { in hb_tnode_create() 217 topo_node_setspecific(ntn, priv); in hb_tnode_create() 219 if (topo_pgroup_create(ntn, &hb_auth_pgroup, &err) == 0) { in hb_tnode_create() 220 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in hb_tnode_create() 222 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in hb_tnode_create() 224 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in hb_tnode_create() 226 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in hb_tnode_create() 230 if (topo_method_register(mod, ntn, Hb_methods) < 0) { in hb_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/zambezi/ |
H A D | zambezi.c | 96 tnode_t *ntn; in zam_tnode_create() local 110 ntn = topo_node_bind(mod, parent, name, i, fmri); in zam_tnode_create() 112 if (ntn == NULL) { in zam_tnode_create() 121 topo_node_setspecific(ntn, priv); in zam_tnode_create() 122 if (topo_pgroup_create(ntn, &zambezi_auth_pgroup, &err) == 0) { in zam_tnode_create() 123 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in zam_tnode_create() 125 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in zam_tnode_create() 127 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in zam_tnode_create() 129 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in zam_tnode_create() 132 return (ntn); in zam_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus.c | 129 tnode_t *ntn; in pci_tnode_create() local 131 if ((ntn = tnode_create(mod, parent, name, i, priv)) == NULL) in pci_tnode_create() 133 if (topo_method_register(mod, ntn, Pci_methods) < 0) { in pci_tnode_create() 136 topo_node_unbind(ntn); in pci_tnode_create() 139 return (ntn); in pci_tnode_create() 166 tnode_t *ntn, *ptn; in pciexfn_declare() local 230 if ((ntn = pci_tnode_create(mod, parent, PCIEX_FUNCTION, i, dn)) in pciexfn_declare() 233 if (did_props_set(ntn, pd, Fn_common_props, Fn_propcnt) < 0) { in pciexfn_declare() 234 topo_node_unbind(ntn); in pciexfn_declare() 240 if (child_range_add(mod, ntn, PCIEX_BUS, 0, MAX_HB_BUSES) < 0) { in pciexfn_declare() [all …]
|
H A D | util.c | 98 tnode_t *ntn; in tnode_create() local 123 ntn = topo_node_bind(mp, parent, name, i, fmri); in tnode_create() 124 if (ntn == NULL) { in tnode_create() 134 topo_node_setspecific(ntn, priv); in tnode_create() 136 return (ntn); in tnode_create()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/niu/ |
H A D | niu.c | 150 tnode_t *ntn; in niu_tnode_create() local 164 ntn = topo_node_bind(mod, parent, name, i, fmri); in niu_tnode_create() 165 if (ntn == NULL) { in niu_tnode_create() 175 topo_node_setspecific(ntn, priv); in niu_tnode_create() 177 if (topo_pgroup_create(ntn, &io_pgroup, &err) == 0) { in niu_tnode_create() 178 (void) devprop_set(ntn, priv, TOPO_PGROUP_IO, TOPO_IO_DEV, mod); in niu_tnode_create() 179 (void) driverprop_set(ntn, priv, TOPO_PGROUP_IO, TOPO_IO_DRIVER, in niu_tnode_create() 181 (void) moduleprop_set(ntn, priv, TOPO_PGROUP_IO, TOPO_IO_MODULE, in niu_tnode_create() 184 return (ntn); in niu_tnode_create() 221 tnode_t *ntn; in niu_declare() local [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/xfp/ |
H A D | xfp.c | 90 tnode_t *ntn; in xfp_tnode_create() local 104 ntn = topo_node_bind(mod, parent, name, i, fmri); in xfp_tnode_create() 106 if (ntn == NULL) { in xfp_tnode_create() 115 topo_node_setspecific(ntn, priv); in xfp_tnode_create() 116 if (topo_pgroup_create(ntn, &xfp_auth_pgroup, &err) == 0) { in xfp_tnode_create() 117 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xfp_tnode_create() 119 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xfp_tnode_create() 121 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xfp_tnode_create() 123 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xfp_tnode_create() 126 return (ntn); in xfp_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4/ioboard/ |
H A D | ioboard.c | 166 tnode_t *ntn; in iob_tnode_create() local 177 ntn = topo_node_bind(mod, parent, name, i, fmri); in iob_tnode_create() 178 if (ntn == NULL) { in iob_tnode_create() 188 topo_node_setspecific(ntn, priv); in iob_tnode_create() 190 if (topo_method_register(mod, ntn, Iob_methods) < 0) { in iob_tnode_create() 193 topo_node_unbind(ntn); in iob_tnode_create() 196 return (ntn); in iob_tnode_create() 202 tnode_t *ntn; in ioboard_declare() local 204 if ((ntn = iob_tnode_create(mod, parent, IOBOARD, i, priv)) == NULL) in ioboard_declare() 206 if (did_props_set(ntn, priv, IOB_common_props, IOB_propcnt) < 0) { in ioboard_declare() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/xaui/ |
H A D | xaui.c | 101 tnode_t *ntn; in xaui_tnode_create() local 115 ntn = topo_node_bind(mod, parent, name, i, fmri); in xaui_tnode_create() 117 if (ntn == NULL) { in xaui_tnode_create() 126 topo_node_setspecific(ntn, priv); in xaui_tnode_create() 127 if (topo_pgroup_create(ntn, &xaui_auth_pgroup, &err) == 0) { in xaui_tnode_create() 128 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xaui_tnode_create() 130 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xaui_tnode_create() 132 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xaui_tnode_create() 134 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in xaui_tnode_create() 137 return (ntn); in xaui_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/chip/ |
H A D | chip_sun4v.c | 128 tnode_t *ntn; in chip_tnode_create() local 170 ntn = topo_node_bind(mod, parent, name, i, fmri); in chip_tnode_create() 171 if (ntn == NULL) { in chip_tnode_create() 181 topo_node_setspecific(ntn, priv); in chip_tnode_create() 183 if (topo_pgroup_create(ntn, &chip_auth_pgroup, &err) == 0) { in chip_tnode_create() 184 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in chip_tnode_create() 186 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in chip_tnode_create() 188 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in chip_tnode_create() 190 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in chip_tnode_create() 195 (void) topo_node_label_set(ntn, label, &err); in chip_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/motherboard/ |
H A D | motherboard.c | 285 tnode_t *ntn; in mb_tnode_create() local 333 ntn = topo_node_bind(mod, parent, name, i, fmri); in mb_tnode_create() 334 if (ntn == NULL) { in mb_tnode_create() 345 mb_prop_set(ntn, auth); in mb_tnode_create() 350 topo_node_setspecific(ntn, priv); in mb_tnode_create() 352 return (ntn); in mb_tnode_create() 360 tnode_t *ntn; in mb_declare() local 365 if ((ntn = mb_tnode_create(mp, parent, name, 0, NULL)) == NULL) in mb_declare() 369 if (topo_node_resource(ntn, &fmri, &err) < 0) { in mb_declare() 371 topo_node_unbind(ntn); in mb_declare() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/cpuboard/ |
H A D | cpuboard.c | 246 tnode_t *ntn; in cpuboard_tnode_create() local 260 ntn = topo_node_bind(mod, parent, name, i, fmri); in cpuboard_tnode_create() 261 if (ntn == NULL) { in cpuboard_tnode_create() 274 topo_node_setspecific(ntn, priv); in cpuboard_tnode_create() 276 if (topo_pgroup_create(ntn, &cpuboard_auth_pgroup, &err) == 0) { in cpuboard_tnode_create() 277 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in cpuboard_tnode_create() 279 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in cpuboard_tnode_create() 281 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in cpuboard_tnode_create() 283 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in cpuboard_tnode_create() 287 return (ntn); in cpuboard_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/dimm/ |
H A D | dimm_sun4v.c | 123 tnode_t *ntn; in mem_tnode_create() local 136 ntn = topo_node_bind(mod, parent, name, i, fmri); in mem_tnode_create() 137 if (ntn == NULL) { in mem_tnode_create() 147 topo_node_setspecific(ntn, priv); in mem_tnode_create() 149 if (topo_pgroup_create(ntn, &mem_auth_pgroup, &err) == 0) { in mem_tnode_create() 150 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in mem_tnode_create() 152 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in mem_tnode_create() 154 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in mem_tnode_create() 156 (void) topo_prop_inherit(ntn, FM_FMRI_AUTHORITY, in mem_tnode_create() 160 (void) topo_node_label_set(ntn, label, &err); in mem_tnode_create() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
H A D | cpu.c | 413 tnode_t *ntn; in cpu_tnode_create() local 423 ntn = topo_node_bind(mod, parent, name, i, fmri); in cpu_tnode_create() 424 if (ntn == NULL) { in cpu_tnode_create() 434 topo_node_setspecific(ntn, priv); in cpu_tnode_create() 436 return (ntn); in cpu_tnode_create()
|
/titanic_44/usr/src/lib/fm/topo/modules/sun4v/platform-mem/ |
H A D | mem.c | 607 tnode_t *ntn; in mem_tnode_create() local 617 ntn = topo_node_bind(mod, parent, name, i, fmri); in mem_tnode_create() 618 if (ntn == NULL) { in mem_tnode_create() 628 topo_node_setspecific(ntn, priv); in mem_tnode_create() 630 return (ntn); in mem_tnode_create()
|
/titanic_44/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_xml.c | 1406 tnode_t *ntn = NULL; in fac_process() local 1436 if ((ntn = topo_node_facbind(mp, ptn, (char *)fname, in fac_process() 1444 if (topo_pgroup_create(ntn, &pgi, &err) != 0) { in fac_process() 1457 if (fac_enum_run(mp, ntn, (const char *)provider) != 0) { in fac_process() 1464 if ((newi = tf_idata_new(mp, 0, ntn)) == NULL) in fac_process() 1470 if (pad_process(mp, rd, cn, ntn, &newi->ti_pad) < 0) in fac_process() 1492 if (ntn != NULL) in fac_process() 1493 topo_node_unbind(ntn); in fac_process() 1504 tnode_t *ntn; in node_process() local 1528 ntn = topo_node_lookup(rd->rd_pn, rd->rd_name, inst); in node_process() [all …]
|