Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip.h123 extern int simple_dimm_label(topo_mod_t *, tnode_t *, topo_version_t,
125 extern int simple_dimm_label_mp(topo_mod_t *, tnode_t *, topo_version_t,
127 extern int seq_dimm_label(topo_mod_t *, tnode_t *, topo_version_t,
129 extern int g4_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
132 extern int g12f_dimm_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
135 extern int simple_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
137 extern int g4_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
139 extern int a4fplus_chip_label(topo_mod_t *, tnode_t *, topo_version_t,
141 extern int simple_cs_label_mp(topo_mod_t *, tnode_t *, topo_version_t,
143 extern int get_dimm_serial(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.h51 typedef int topo_method_f(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
53 typedef int topo_enum_f(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
55 typedef void topo_release_f(topo_mod_t *, tnode_t *);
82 extern int topo_mod_enumerate(topo_mod_t *, tnode_t *, const char *,
84 extern int topo_mod_enummap(topo_mod_t *mod, tnode_t *, const char *,
87 extern void topo_mod_release(topo_mod_t *, tnode_t *);
95 extern nvlist_t *topo_mod_hcfmri(topo_mod_t *, tnode_t *, int, const char *,
108 extern int topo_prop_setmutable(tnode_t *node, const char *pgname,
110 extern int topo_prop_setnonvolatile(tnode_t *node, const char *pgname,
115 typedef int (*topo_mod_walk_cb_t)(topo_mod_t *, tnode_t *, void *);
[all …]
H A Dlibtopo.h45 typedef struct topo_node tnode_t; typedef
58 tnode_t *tf_node;
88 typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *);
167 extern char *topo_node_name(tnode_t *);
168 extern topo_instance_t topo_node_instance(tnode_t *);
169 extern tnode_t *topo_node_parent(tnode_t *);
170 extern void *topo_node_private(tnode_t *);
171 extern int topo_node_flags(tnode_t *);
172 extern int topo_node_asru(tnode_t *, nvlist_t **, nvlist_t *, int *);
173 extern int topo_node_fru(tnode_t *, nvlist_t **, nvlist_t *, int *);
[all …]
H A Dtopo_node.c130 topo_node_destroy(tnode_t *node) in topo_node_destroy()
133 tnode_t *pnode; in topo_node_destroy()
192 nhp->th_arrlen * sizeof (tnode_t *)); in topo_node_destroy()
211 topo_mod_free(mod, node, sizeof (tnode_t)); in topo_node_destroy()
216 topo_node_lock(tnode_t *node) in topo_node_lock()
222 topo_node_unlock(tnode_t *node) in topo_node_unlock()
228 topo_node_hold(tnode_t *node) in topo_node_hold()
236 topo_node_rele(tnode_t *node) in topo_node_rele()
251 topo_node_name(tnode_t *node) in topo_node_name()
257 topo_node_instance(tnode_t *node) in topo_node_instance()
[all …]
H A Dtopo_list.h50 extern tnode_t *topo_child_first(tnode_t *);
51 extern tnode_t *topo_child_next(tnode_t *, tnode_t *);
52 extern topo_list_t *topo_sibling_list(tnode_t *);
H A Dtopo_tree.h54 tnode_t **th_nodearr; /* node array */
139 extern void topo_node_lock(tnode_t *);
140 extern void topo_node_unlock(tnode_t *);
141 extern void topo_node_hold(tnode_t *);
142 extern void topo_node_rele(tnode_t *);
143 extern tnode_t *topo_node_lookup(tnode_t *, const char *, topo_instance_t);
147 extern topo_walk_t *topo_node_walk_init(topo_hdl_t *, topo_mod_t *, tnode_t *,
H A Dtopo_prop.c81 pgroup_get(tnode_t *node, const char *pgname) in pgroup_get()
125 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get()
179 prop_get(tnode_t *node, const char *pgname, const char *pname, nvlist_t *pargs, in prop_get()
201 get_properror(tnode_t *node, int *errp, int err) in get_properror()
209 prop_getval(tnode_t *node, const char *pgname, const char *pname, void *val, in prop_getval()
399 topo_prop_get_int32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int32()
407 topo_prop_get_uint32(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint32()
415 topo_prop_get_int64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_int64()
423 topo_prop_get_uint64(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_uint64()
431 topo_prop_get_double(tnode_t *node, const char *pgname, const char *pname, in topo_prop_get_double()
[all …]
H A Dtopo_protocol.c42 topo_node_asru(tnode_t *node, nvlist_t **asru, nvlist_t *priv, int *err) in topo_node_asru()
63 topo_node_fru(tnode_t *node, nvlist_t **fru, nvlist_t *priv, int *err) in topo_node_fru()
84 topo_node_resource(tnode_t *node, nvlist_t **resource, int *err) in topo_node_resource()
92 topo_node_label(tnode_t *node, char **label, int *err) in topo_node_label()
100 topo_node_asru_set(tnode_t *node, nvlist_t *asru, int flag, int *err) in topo_node_asru_set()
129 topo_node_fru_set(tnode_t *node, nvlist_t *fru, int flag, int *err) in topo_node_fru_set()
156 topo_node_label_set(tnode_t *node, const char *label, int *err) in topo_node_label_set()
H A Dsvc.c58 static int svc_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t,
60 static int svc_fmri_str2nvl(topo_mod_t *, tnode_t *, topo_version_t,
62 static int svc_fmri_present(topo_mod_t *, tnode_t *, topo_version_t,
64 static int svc_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t,
66 static int svc_fmri_service_state(topo_mod_t *, tnode_t *, topo_version_t,
68 static int svc_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t,
70 static int svc_fmri_prop_get(topo_mod_t *, tnode_t *, topo_version_t,
95 static int svc_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
97 static void svc_release(topo_mod_t *, tnode_t *);
169 static tnode_t *
[all …]
H A Ddev.c43 static int dev_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
45 static void dev_release(topo_mod_t *, tnode_t *);
46 static int dev_fmri_nvl2str(topo_mod_t *, tnode_t *, topo_version_t,
48 static int dev_fmri_str2nvl(topo_mod_t *, tnode_t *, topo_version_t,
50 static int dev_fmri_create_meth(topo_mod_t *, tnode_t *, topo_version_t,
52 static int dev_fmri_present(topo_mod_t *, tnode_t *, topo_version_t,
54 static int dev_fmri_replaced(topo_mod_t *, tnode_t *, topo_version_t,
56 static int dev_fmri_unusable(topo_mod_t *, tnode_t *, topo_version_t,
58 static int dev_fmri_service_state(topo_mod_t *, tnode_t *, topo_version_t,
114 dev_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, in dev_enum()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus.h66 extern tnode_t *pcibus_declare(topo_mod_t *, tnode_t *, di_node_t,
68 extern tnode_t *pcidev_declare(topo_mod_t *, tnode_t *, di_node_t,
70 extern tnode_t *pcifn_declare(topo_mod_t *, tnode_t *, di_node_t,
72 extern tnode_t *pciexbus_declare(topo_mod_t *, tnode_t *, di_node_t,
74 extern tnode_t *pciexdev_declare(topo_mod_t *, tnode_t *, di_node_t,
76 extern tnode_t *pciexfn_declare(topo_mod_t *, tnode_t *, di_node_t,
78 extern int pci_children_instantiate(topo_mod_t *, tnode_t *, di_node_t,
81 extern int platform_pci_label(topo_mod_t *, tnode_t *, nvlist_t *, nvlist_t **);
82 extern int pci_create_dev_sensors(topo_mod_t *, tnode_t *);
H A Dpcibus.c62 extern int platform_pci_label(topo_mod_t *mod, tnode_t *, nvlist_t *,
64 extern int platform_pci_fru(topo_mod_t *mod, tnode_t *, nvlist_t *,
66 static void pci_release(topo_mod_t *, tnode_t *);
67 static int pci_enum(topo_mod_t *, tnode_t *, const char *, topo_instance_t,
69 static int pci_label(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
71 static int pci_fru(topo_mod_t *, tnode_t *, topo_version_t, nvlist_t *,
116 pci_label(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_label()
124 pci_fru(topo_mod_t *mp, tnode_t *node, topo_version_t version, in pci_fru()
131 static tnode_t *
132 pci_tnode_create(topo_mod_t *mod, tnode_t *parent, in pci_tnode_create()
[all …]
H A Ddid_props.c49 static int ASRU_set(tnode_t *, did_t *,
51 static int FRU_set(tnode_t *, did_t *,
53 static int DEVprop_set(tnode_t *, did_t *,
55 static int DRIVERprop_set(tnode_t *, did_t *,
57 static int INSTprop_set(tnode_t *, did_t *,
59 static int MODULEprop_set(tnode_t *, did_t *,
61 static int EXCAP_set(tnode_t *, did_t *,
63 static int BDF_set(tnode_t *, did_t *,
65 static int label_set(tnode_t *, did_t *,
67 static int maybe_di_chars_copy(tnode_t *, did_t *,
[all …]
H A Ddid_props.h58 int (*tx_xlate)(tnode_t *, did_t *,
84 extern int did_props_set(tnode_t *, did_t *, txprop_t[], int);
85 extern tnode_t *find_predecessor(tnode_t *, char *);
95 extern int FRU_fmri_set(topo_mod_t *, tnode_t *);
H A Dpcibus_hba.c48 pci_di_prop_set(tnode_t *tn, di_node_t din, char *dpnm, char *tpnm) in pci_di_prop_set()
59 pci_pi_prop_set(tnode_t *tn, di_path_t din, char *dpnm, char *tpnm) in pci_pi_prop_set()
70 pci_scsi_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_scsi_device_create()
73 tnode_t *child; in pci_scsi_device_create()
130 pci_smp_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_smp_device_create()
133 tnode_t *child; in pci_smp_device_create()
163 static tnode_t *
164 pci_iport_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, in pci_iport_device_create()
167 tnode_t *child; in pci_iport_device_create()
190 pci_iports_instantiate(topo_mod_t *mod, tnode_t *parent, di_node_t pn, in pci_iports_instantiate()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/zen/
H A Dtopo_zen_impl.h44 tnode_t *ztcore_tn;
45 tnode_t *ztcore_l1i_tn;
46 tnode_t *ztcore_l1d_tn;
47 tnode_t *ztcore_l2_tn;
52 tnode_t *ztcore_thr_tn[AMDZEN_TOPO_CORE_MAX_THREADS];
56 tnode_t *ztccx_tn;
57 tnode_t *ztccx_l3_tn;
63 tnode_t *ztccd_tn;
79 tnode_t *ztes_tn;
93 extern int topo_zen_build_chip(topo_mod_t *, tnode_t *, topo_instance_t,
[all …]
/illumos-gate/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,
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/
H A Dtopo_port.c42 port_range_create(topo_mod_t *mod, tnode_t *pnode, topo_instance_t min, in port_range_create()
53 static tnode_t *
54 port_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_common()
58 tnode_t *tn = NULL; in port_create_common()
134 port_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_sff()
135 tnode_t **nodep) in port_create_sff()
137 tnode_t *tn; in port_create_sff()
147 port_create_usb(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_usb()
148 tnode_t **nodep) in port_create_usb()
150 tnode_t *tn; in port_create_usb()
[all …]
H A Dtopo_port.h29 extern int port_range_create(topo_mod_t *, tnode_t *, topo_instance_t,
31 extern int port_create_sff(topo_mod_t *, tnode_t *, topo_instance_t,
32 tnode_t **);
33 extern int port_create_usb(topo_mod_t *, tnode_t *, topo_instance_t,
34 tnode_t **);
35 extern int port_create_unknown(topo_mod_t *, tnode_t *, topo_instance_t,
36 tnode_t **);
/illumos-gate/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()
128 xfp_fru_set(topo_mod_t *mp, tnode_t *tn) in xfp_fru_set()
146 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, in xfp_label_set()
176 static tnode_t *
177 xfp_declare(tnode_t *parent, const char *name, topo_instance_t i, in xfp_declare()
180 tnode_t *ntn; in xfp_declare()
203 xfp_enum(topo_mod_t *mod, tnode_t *rnode, const char *name, in xfp_enum()
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk.h126 extern int disk_declare_non_enumerated(topo_mod_t *, tnode_t *, tnode_t **);
127 extern int disk_declare_path(topo_mod_t *, tnode_t *,
129 extern int disk_declare_addr(topo_mod_t *, tnode_t *,
130 struct topo_list *, const char *, tnode_t **);
131 extern int disk_declare_bridge(topo_mod_t *, tnode_t *,
132 struct topo_list *, const char *, tnode_t **);
/illumos-gate/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()
151 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name, in platform_hb_enum()
159 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out) in platform_hb_label()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c79 static int ses_indicator_mode(topo_mod_t *, tnode_t *, topo_version_t,
81 static int ses_sensor_reading(topo_mod_t *, tnode_t *, topo_version_t,
83 static int ses_sensor_state(topo_mod_t *, tnode_t *, topo_version_t,
85 static int ses_psu_state(topo_mod_t *, tnode_t *, topo_version_t,
141 ses_indicator_mode(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in ses_indicator_mode()
252 ses_sensor_reading(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in ses_sensor_reading()
322 ses_sensor_state(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in ses_sensor_state()
411 ses_psu_state(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in ses_psu_state()
462 static tnode_t *
463 ses_add_fac_common(topo_mod_t *mod, tnode_t *pnode, const char *name, in ses_add_fac_common()
[all …]

12345