Home
last modified time | relevance | path

Searched refs:tnode_t (Results 1 – 25 of 138) sorted by relevance

123456

/titanic_41/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_impl.h105 tnode_t *node;
122 tnode_t *t_parent; /* "Chassis" parent */
166 tnode_t *x86pi_gen_chassis(topo_mod_t *, tnode_t *, int, int);
167 tnode_t *x86pi_gen_bboard(topo_mod_t *, tnode_t *, int, int,
169 int x86pi_gen_cmp(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int, int);
170 int x86pi_gen_core(topo_mod_t *, tnode_t *, int, int, int);
171 int x86pi_gen_strand(topo_mod_t *, tnode_t *, int, int, int);
172 int x86pi_gen_memarray(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int);
173 void x86pi_gen_memdev(topo_mod_t *, tnode_t *, smbios_hdl_t *, int, int, int);
174 int x86pi_gen_hbr(topo_mod_t *, tnode_t *, int, topo_instance_t,
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip.h119 extern int simple_dimm_label(topo_mod_t *, tnode_t *, topo_version_t,
121 extern int simple_dimm_label_mp(topo_mod_t *, tnode_t *, topo_version_t,
123 extern int seq_dimm_label(topo_mod_t *, tnode_t *, topo_version_t,
125 extern int g4_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
128 extern int g12f_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
131 extern int simple_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
133 extern int g4_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
135 extern int a4fplus_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
137 extern int simple_cs_label_mp(topo_mod_t *, tnode_t *, topo_version_t,
139 extern int get_dimm_serial(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.h45 typedef int topo_method_f(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
47 typedef int topo_enum_f(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
49 typedef void topo_release_f(topo_mod_t *, tnode_t *);
76 extern int topo_mod_enumerate(topo_mod_t *, tnode_t *, const char *,
78 extern int topo_mod_enummap(topo_mod_t *mod, tnode_t *, const char *,
80 extern void topo_mod_release(topo_mod_t *, tnode_t *);
88 extern nvlist_t *topo_mod_hcfmri(topo_mod_t *, tnode_t *, int, const char *,
101 extern int topo_prop_setmutable(tnode_t *node, const char *pgname,
103 extern int topo_prop_setnonvolatile(tnode_t *node, const char *pgname,
108 typedef int (*topo_mod_walk_cb_t)(topo_mod_t *, tnode_t *, void *);
[all …]
H A Dlibtopo.h40 typedef struct topo_node tnode_t; typedef
52 tnode_t *tf_node;
67 typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *);
124 extern char *topo_node_name(tnode_t *);
125 extern topo_instance_t topo_node_instance(tnode_t *);
126 extern tnode_t *topo_node_parent(tnode_t *);
127 extern void *topo_node_private(tnode_t *);
128 extern int topo_node_flags(tnode_t *);
129 extern int topo_node_asru(tnode_t *, nvlist_t **, nvlist_t *, int *);
130 extern int topo_node_fru(tnode_t *, nvlist_t **, nvlist_t *, int *);
[all …]
H A Dtopo_node.c129 topo_node_destroy(tnode_t *node) in topo_node_destroy()
132 tnode_t *pnode = node->tn_parent; in topo_node_destroy()
188 nhp->th_arrlen * sizeof (tnode_t *)); in topo_node_destroy()
199 topo_mod_free(mod, node, sizeof (tnode_t)); in topo_node_destroy()
204 topo_node_lock(tnode_t *node) in topo_node_lock()
210 topo_node_unlock(tnode_t *node) in topo_node_unlock()
216 topo_node_hold(tnode_t *node) in topo_node_hold()
224 topo_node_rele(tnode_t *node) in topo_node_rele()
239 topo_node_name(tnode_t *node) in topo_node_name()
245 topo_node_instance(tnode_t *node) in topo_node_instance()
[all …]
H A Dtopo_list.h47 extern tnode_t *topo_child_first(tnode_t *);
48 extern tnode_t *topo_child_next(tnode_t *, tnode_t *);
49 extern topo_list_t *topo_sibling_list(tnode_t *);
H A Dtopo_tree.h51 tnode_t **th_nodearr; /* node array */
133 extern void topo_node_lock(tnode_t *);
134 extern void topo_node_unlock(tnode_t *);
135 extern void topo_node_hold(tnode_t *);
136 extern void topo_node_rele(tnode_t *);
137 extern tnode_t *topo_node_lookup(tnode_t *, const char *, topo_instance_t);
141 extern topo_walk_t *topo_node_walk_init(topo_hdl_t *, topo_mod_t *, tnode_t *,
H A Dtopo_prop.c76 pgroup_get(tnode_t *node, const char *pgname) in pgroup_get()
121 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get()
176 prop_get(tnode_t *node, const char *pgname, const char *pname, nvlist_t *pargs, in prop_get()
198 get_properror(tnode_t *node, int *errp, int err) in get_properror()
206 prop_getval(tnode_t *node, const char *pgname, const char *pname, void *val, in prop_getval()
395 topo_prop_get_int32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int32()
403 topo_prop_get_uint32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint32()
411 topo_prop_get_int64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int64()
419 topo_prop_get_uint64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint64()
427 topo_prop_get_double(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_double()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus.h68 extern tnode_t *pcibus_declare(topo_mod_t *, tnode_t *, di_node_t,
70 extern tnode_t *pcidev_declare(topo_mod_t *, tnode_t *, di_node_t,
72 extern tnode_t *pcifn_declare(topo_mod_t *, tnode_t *, di_node_t,
74 extern tnode_t *pciexbus_declare(topo_mod_t *, tnode_t *, di_node_t,
76 extern tnode_t *pciexdev_declare(topo_mod_t *, tnode_t *, di_node_t,
78 extern tnode_t *pciexfn_declare(topo_mod_t *, tnode_t *, di_node_t,
80 extern int pci_children_instantiate(topo_mod_t *, tnode_t *, di_node_t,
83 extern int platform_pci_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **);
H A Dpcibus.c54 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *,
56 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *,
58 static void pci_release(topo_mod_t *, tnode_t *);
59 static int pci_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
61 static int pci_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
63 static int pci_fru(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
108 pci_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_label()
116 pci_fru(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_fru()
123 static tnode_t *
124 pci_tnode_create(topo_mod_t *mod, tnode_t *parent, in pci_tnode_create()
[all …]
H A Ddid_props.c45 static int ASRU_set(tnode_t *, did_t *,
47 static int FRU_set(tnode_t *, did_t *,
49 static int DEVprop_set(tnode_t *, did_t *,
51 static int DRIVERprop_set(tnode_t *, did_t *,
53 static int MODULEprop_set(tnode_t *, did_t *,
55 static int EXCAP_set(tnode_t *, did_t *,
57 static int BDF_set(tnode_t *, did_t *,
59 static int label_set(tnode_t *, did_t *,
61 static int maybe_di_chars_copy(tnode_t *, did_t *,
63 static int maybe_di_uint_to_str(tnode_t *, did_t *,
[all …]
H A Ddid_props.h57 int (*tx_xlate)(tnode_t *, did_t *,
73 extern int did_props_set(tnode_t *, did_t *, txprop_t[], int);
74 extern tnode_t *find_predecessor(tnode_t *, char *);
84 extern int FRU_fmri_set(topo_mod_t *, tnode_t *);
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_impl.h102 tnode_t *, const char *, tnode_t **);
114 tnode_t *, tnode_t *, const char *, const char *, tnode_t **, int flag);
124 topo_instance_t, tnode_t *, const char *, tnode_t *, void *);
126 int pi_defer_add(topo_mod_t *, mde_cookie_t, tnode_t *, tnode_t *,
131 int pi_enum_update(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *, tnode_t *,
140 int pi_walker(pi_enum_t *, tnode_t *, const char *, mde_cookie_t,
167 int pi_set_auth(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *, tnode_t *);
169 topo_instance_t, tnode_t *, tnode_t *);
170 int pi_set_label(topo_mod_t *, md_t *, mde_cookie_t, tnode_t *);
171 int pi_set_system(topo_mod_t *, tnode_t *);
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/common/hostbridge/
H A Dhostbridge.c47 static void hb_release(topo_mod_t *, tnode_t *);
48 static int hb_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
50 static int hb_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
53 extern int platform_hb_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **);
54 extern int platform_hb_enum(topo_mod_t *, tnode_t *,
64 static int specific_hb_enum(topo_mod_t *, tnode_t *, const char *,
116 hb_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in hb_label()
138 hb_enum(topo_mod_t *mp, tnode_t *pn, const char *name, topo_instance_t imin, in hb_enum()
182 hb_release(topo_mod_t *mp, tnode_t *node) in hb_release()
187 static tnode_t *
[all …]
H A Dhostbridge.h66 extern tnode_t *pcihostbridge_declare(topo_mod_t *, tnode_t *, di_node_t,
68 extern tnode_t *pciexhostbridge_declare(topo_mod_t *, tnode_t *, di_node_t,
70 extern tnode_t *pciexrc_declare(topo_mod_t *, tnode_t *, di_node_t,
/titanic_41/usr/src/lib/fm/topo/modules/sun4/hostbridge/
H A Dhb_sun4.c149 tnode_t *
150 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, in hb_process()
153 tnode_t *hb; in hb_process()
165 tnode_t *
166 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t rci, di_node_t bn) in rc_process()
168 tnode_t *rc; in rc_process()
203 declare_exbuses(topo_mod_t *mod, busorrc_t *list, tnode_t *ptn, int nhb, in declare_exbuses()
207 tnode_t **rcs; in declare_exbuses()
208 tnode_t **hb; in declare_exbuses()
215 if ((hb = topo_mod_zalloc(mod, nhb * sizeof (tnode_t *))) == NULL) in declare_exbuses()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/niu/
H A Dniu.c51 static int niu_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
88 devprop_set(tnode_t *tn, di_node_t dn, in devprop_set()
107 driverprop_set(tnode_t *tn, di_node_t dn, in driverprop_set()
122 moduleprop_set(tnode_t *tn, di_node_t dn, in moduleprop_set()
144 static tnode_t *
145 niu_tnode_create(topo_mod_t *mod, tnode_t *parent, in niu_tnode_create()
150 tnode_t *ntn; in niu_tnode_create()
187 niu_asru_set(tnode_t *tn, di_node_t dn, topo_mod_t *mod) in niu_asru_set()
217 static tnode_t *
218 niu_declare(tnode_t *parent, const char *name, topo_instance_t i, in niu_declare()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/sun4/ioboard/
H A Dioboard.c47 static void iob_release(topo_mod_t *, tnode_t *);
48 static int iob_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
50 static int iob_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
53 extern int platform_iob_enum(topo_mod_t *, tnode_t *, topo_instance_t,
55 extern int platform_iob_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **);
93 iob_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in iob_label()
115 iob_enum(topo_mod_t *mp, tnode_t *pn, const char *name, topo_instance_t imin, in iob_enum()
150 iob_release(topo_mod_t *mp, tnode_t *node) in iob_release()
161 static tnode_t *
162 iob_tnode_create(topo_mod_t *mod, tnode_t *parent, in iob_tnode_create()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/hostbridge/
H A Dhb_sun4v.c97 static tnode_t *
98 hb_tnode_create(topo_mod_t *mod, tnode_t *parent, const char *name, in hb_tnode_create()
102 tnode_t *node; in hb_tnode_create()
144 tnode_t *
145 platform_pciexhostbridge_declare(topo_mod_t *mod, tnode_t *parent, in platform_pciexhostbridge_declare()
148 tnode_t *hbn; in platform_pciexhostbridge_declare()
172 static tnode_t *
173 platform_pciexrc_declare(topo_mod_t *mod, tnode_t *parent, int inst, in platform_pciexrc_declare()
177 tnode_t *rcn; in platform_pciexrc_declare()
280 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, in platform_hb_enum()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/common/xfp/
H A Dxfp.c42 static int xfp_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
84 static tnode_t *
85 xfp_tnode_create(topo_mod_t *mod, tnode_t *parent, in xfp_tnode_create()
90 tnode_t *ntn; in xfp_tnode_create()
129 xfp_fru_set(topo_mod_t *mp, tnode_t *tn) in xfp_fru_set()
147 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, in xfp_label_set()
177 static tnode_t *
178 xfp_declare(tnode_t *parent, const char *name, topo_instance_t i, in xfp_declare()
181 tnode_t *ntn; in xfp_declare()
204 xfp_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, in xfp_enum()
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard_hostbridge.c40 static tnode_t *
41 cpuboard_node_create(topo_mod_t *mp, tnode_t *parent, const char *name, in cpuboard_node_create()
44 tnode_t *node; in cpuboard_node_create()
90 static tnode_t *
91 cpuboard_rc_node_create(topo_mod_t *mp, tnode_t *parent, di_node_t dnode, in cpuboard_rc_node_create()
95 tnode_t *rcn; in cpuboard_rc_node_create()
209 static tnode_t *
210 cpuboard_hb_node_create(topo_mod_t *mp, tnode_t *parent, int inst) in cpuboard_hb_node_create()
213 tnode_t *hbn; in cpuboard_hb_node_create()
243 tnode_t *cpubn, int brd) in cpuboard_hb_enum()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/i86pc/hostbridge/
H A Dhb_i86pc.c37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in hb_process()
39 tnode_t *hb; in hb_process()
56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in rc_process()
58 tnode_t *hb; in rc_process()
59 tnode_t *rc; in rc_process()
80 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) in pci_hostbridges_find()
139 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, in platform_hb_enum()
147 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) in platform_hb_label()
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/pcibus/
H A Dpci_sun4v.c46 tnode_t *node;
52 static int platform_pci_fru_location(topo_mod_t *, tnode_t *, uchar_t *, int);
53 static int platform_pci_fru_cb(topo_mod_t *, tnode_t *, void *);
57 platform_pci_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, in platform_pci_label()
98 platform_pci_fru(topo_mod_t *mod, tnode_t *node, nvlist_t *in, in platform_pci_fru()
104 tnode_t *pnode; in platform_pci_fru()
187 platform_pci_fru_location(topo_mod_t *mod, tnode_t *node, uchar_t *loc, in platform_pci_fru_location()
191 tnode_t *parent; in platform_pci_fru_location()
192 tnode_t *top; in platform_pci_fru_location()
227 platform_pci_fru_cb(topo_mod_t *mod, tnode_t *node, void *private) in platform_pci_fru_cb()
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/zambezi/
H A Dzambezi.c49 static int zambezi_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
90 static tnode_t *
91 zam_tnode_create(topo_mod_t *mod, tnode_t *parent, in zam_tnode_create()
96 tnode_t *ntn; in zam_tnode_create()
136 static tnode_t *
137 zam_declare(tnode_t *parent, const char *name, topo_instance_t i, in zam_declare()
140 tnode_t *ntn; in zam_declare()
167 zambezi_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, in zambezi_enum()
/titanic_41/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/
H A Dopl_hostbridge.c65 static tnode_t *
66 opl_node_create(topo_mod_t *mp, tnode_t *parent, const char *name, int inst, in opl_node_create()
69 tnode_t *node; in opl_node_create()
105 static tnode_t *
106 opl_rc_node_create(topo_mod_t *mp, tnode_t *parent, di_node_t dnode, int inst) in opl_rc_node_create()
109 tnode_t *rcn; in opl_rc_node_create()
234 static tnode_t *
235 opl_hb_node_create(topo_mod_t *mp, tnode_t *parent, int inst) in opl_hb_node_create()
238 tnode_t *hbn; in opl_hb_node_create()
260 opl_hb_enum(topo_mod_t *mp, const ioboard_contents_t *iob, tnode_t *ion, in opl_hb_enum()
[all …]

123456