Home
last modified time | relevance | path

Searched refs:tn (Results 1 – 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c466 tnode_t *tn; in ses_add_fac_common() local
488 topo_node_unbind(tn); in ses_add_fac_common()
503 topo_node_unbind(tn); in ses_add_fac_common()
513 topo_node_unbind(tn); in ses_add_fac_common()
517 return (tn); in ses_add_fac_common()
529 tnode_t *tn; in ses_add_indicator() local
592 tnode_t *tn; in ses_add_sensor_common() local
620 return (tn); in ses_add_sensor_common()
631 tnode_t *tn; in ses_add_sensor() local
700 tnode_t *tn; in ses_add_discrete() local
[all …]
H A Dses.c1072 ses_node_unlock(mod, tn); in ses_present()
1455 tnode_t *tn = NULL; in ses_create_generic() local
1580 topo_node_instance(tn)); in ses_create_generic()
1616 if (node != NULL) *node = tn; in ses_create_generic()
2281 tnode_t *tn; in ses_create_children() local
2358 tnode_t *tn; in ses_create_subchassis() local
2830 child->spt_tnode = tn; in ses_enumerate_node()
2841 child->spt_senumnode, tn, in ses_enumerate_node()
2916 tnode_t *tn; in ses_create_chassis() local
3097 sproot->spt_tnode = tn; in ses_create_chassis()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/
H A Dtopo_port.c58 tnode_t *tn = NULL; in port_create_common() local
124 return (tn); in port_create_common()
137 tnode_t *tn; in port_create_sff() local
140 if (tn == NULL) in port_create_sff()
142 *nodep = tn; in port_create_sff()
150 tnode_t *tn; in port_create_usb() local
153 if (tn == NULL) in port_create_usb()
155 *nodep = tn; in port_create_usb()
163 tnode_t *tn; in port_create_unknown() local
166 if (tn == NULL) in port_create_unknown()
[all …]
H A Dtopo_transceiver.c52 tnode_t *tn = NULL; in transceiver_create_common() local
84 if (topo_node_fru_set(tn, fmri, 0, &err) != 0) { in transceiver_create_common()
114 return (tn); in transceiver_create_common()
117 topo_node_unbind(tn); in transceiver_create_common()
129 tnode_t *tn = NULL; in transceiver_create_sff() local
146 if (vendor != NULL && topo_prop_set_string(tn, in transceiver_create_sff()
154 if (part != NULL && topo_prop_set_string(tn, in transceiver_create_sff()
162 if (rev != NULL && topo_prop_set_string(tn, in transceiver_create_sff()
170 if (serial != NULL && topo_prop_set_string(tn, in transceiver_create_sff()
179 *nodep = tn; in transceiver_create_sff()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid_props.c471 nm = topo_node_name(tn); in ASRU_set()
602 nm = topo_node_name(tn); in FRU_set()
633 e = FRU_fmri_set(mp, tn); in FRU_set()
646 if (topo_method_invoke(tn, in FRU_set()
690 if (topo_method_invoke(tn, in label_set()
779 e = topo_prop_set_string(tn, in DEVprop_set()
797 if (topo_prop_set_string(tn, in DRIVERprop_set()
813 if (topo_prop_set_uint32(tn, in INSTprop_set()
867 e = topo_prop_set_string(tn, in maybe_di_chars_copy()
883 if (topo_prop_set_string(tn, in uint_to_strprop()
[all …]
H A Dutil.c36 child_range_add(topo_mod_t *mp, tnode_t *tn, const char *cnm, in child_range_add() argument
41 e = topo_node_range_create(mp, tn, cnm, imin, imax); in child_range_add()
139 labelmethod_inherit(topo_mod_t *mp, tnode_t *tn, nvlist_t *in, nvlist_t **out) in labelmethod_inherit() argument
148 if (topo_node_label_set(tn, NULL, &err) < 0) { in labelmethod_inherit()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dbase64.c80 if (tn) in base64encode()
81 *tn = 0; in base64encode()
97 if (tn) in base64encode()
126 if (tn) in base64encode()
127 *tn = tp; in base64encode()
149 if (tn) in base64encode()
150 *tn = tp; in base64encode()
260 if (tn) in base64decode()
275 if (tn) in base64decode()
286 if (tn) in base64decode()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_nvme.c202 topo_node_instance(tn), topo_strerror(err)); in disk_nvme_common_io()
210 topo_node_instance(tn), topo_strerror(err)); in disk_nvme_common_io()
221 topo_node_name(tn), topo_node_instance(tn), in disk_nvme_common_io()
235 topo_node_instance(tn), topo_strerror(err)); in disk_nvme_common_io()
276 PRIu64 "]", topo_node_name(tn), topo_node_instance(tn)); in disk_nvme_make_ns_di_props()
294 "%s[%" PRIu64 "]: %s", topo_node_name(tn), in disk_nvme_make_ns_di_props()
305 if (!disk_nvme_common_io(mod, tn, di)) { in disk_nvme_make_ns_di_props()
348 tnode_t *tn; in disk_nvme_make_ns() local
383 if (tn == NULL) { in disk_nvme_make_ns()
393 if (topo_node_fru_set(tn, NULL, 0, &err) != 0) { in disk_nvme_make_ns()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Diconv.c280 fz = tz = (*fn < *tn) ? *fn : *tn; in _win_iconv()
402 *tn -= tz; in _win_iconv()
547 te = t + (*tn); in utf2bin()
1256 n = *tn; in _ast_iconv()
1284 n -= *tn; in _ast_iconv()
1329 *tn -= n; in _ast_iconv()
1348 size_t tn; in _ast_iconv_write() local
1366 tn = 0; in _ast_iconv_write()
1410 tn--; in _ast_iconv_write()
1448 size_t tn; in _ast_iconv_move() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/zen/
H A Dtopo_zen_tn.c87 tnode_t *tn = NULL; in topo_zen_create_tn() local
108 if (tn == NULL) { in topo_zen_create_tn()
126 topo_node_unbind(tn); in topo_zen_create_tn()
130 return (tn); in topo_zen_create_tn()
145 if (tn == NULL) { in topo_zen_build_cache()
205 return (tn); in topo_zen_build_cache()
208 topo_node_unbind(tn); in topo_zen_build_cache()
254 tnode_t *tn; in topo_zen_build_strand() local
257 if (tn == NULL) { in topo_zen_build_strand()
273 topo_node_unbind(tn); in topo_zen_build_strand()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dnic.esc64 payloadprop("txr_index") == tn && \
67 setpayloadprop("txr_index", tn) && \
70 (!confprop_defined(pcifn/port[pn]/transceiver[tn], "vendor") || \
76 payloadprop("txr_index") == tn && \
79 setpayloadprop("txr_index", tn) && \
107 payloadprop("txr_index") == tn &&
110 confprop_defined(pciexfn/port[pn]/transceiver[tn], "vendor") &&
111 setpayloadprop("txr_index", tn) &&
119 payloadprop("txr_index") == tn &&
122 !confprop_defined(pciexfn/port[pn]/transceiver[tn], "vendor") &&
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c104 ep = topo_node_getspecific(tn); in ipmi_find_entity()
111 if (topo_prop_get_string(tn, TOPO_PGROUP_IPMI, in ipmi_find_entity()
150 topo_node_name(tn), topo_node_instance(tn)); in ipmi_find_entity()
154 topo_node_setspecific(tn, ep); in ipmi_find_entity()
338 tnode_t *tn; in ipmi_check_entity() local
469 if (topo_node_label_set(tn, label, &err) != 0) { in ipmi_check_entity()
482 if (topo_pgroup_create(tn, &pgi, &err) != 0) { in ipmi_check_entity()
497 topo_prop_set_uint32(tn, TOPO_PGROUP_IPMI, in ipmi_check_entity()
560 topo_node_setspecific(tn, ep); in ipmi_check_entity()
572 cdata.ed_pnode = tn; in ipmi_check_entity()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dtxg.c838 tn->tn_member[t] = 1; in txg_list_add()
840 tl->tl_head[t] = tn; in txg_list_add()
868 tn->tn_member[t] = 1; in txg_list_add_tail()
870 *tp = tn; in txg_list_add_tail()
884 txg_node_t *tn; in txg_list_remove() local
891 ASSERT(tn->tn_next[t] == NULL || tn->tn_next[t]->tn_member[t]); in txg_list_remove()
909 txg_node_t *tn, **tp; in txg_list_remove_this() local
914 for (tp = &tl->tl_head[t]; (tn = *tp) != NULL; tp = &tn->tn_next[t]) { in txg_list_remove_this()
949 return (tn == NULL ? NULL : (char *)tn - tl->tl_offset); in txg_list_head()
959 tn = tn->tn_next[t]; in txg_list_next()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/nfs/
H A Dnfssrv.c337 if (mdb_vread(tn, sizeof (*tn), addr) == -1) { in print_tree()
343 if (mdb_vread(&a, sizeof (a), (uintptr_t)tn->tree_exi in print_tree()
370 mdb_printf("tree_exi: %p\n", tn->tree_exi); in print_tree()
371 mdb_printf("tree_vis: %p\n", tn->tree_vis); in print_tree()
376 (uintptr_t)tn->tree_exi, DCMD_ADDRSPEC, 0, NULL) in print_tree()
380 if (tn->tree_vis) { in print_tree()
383 (uintptr_t)tn->tree_vis, DCMD_ADDRSPEC, 0, in print_tree()
389 addr = (uintptr_t)tn->tree_sibling; in print_tree()
391 if (tn->tree_child_first != NULL) { in print_tree()
396 opt_v, tn, s); in print_tree()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/
H A Dtopo_usb.c1333 if (topo_prop_set_string(tn, TOPO_PGROUP_BINDING, in topo_usb_enum_scsa2usb()
1377 tnode_t *tn; in topo_usb_enum_port_children() local
1378 if ((ret = port_create_usb(mod, pn, i, &tn)) != 0) in topo_usb_enum_port_children()
1385 if ((ret = topo_usb_enum_device(mod, tn, port)) != 0) in topo_usb_enum_port_children()
1409 tnode_t *tn = NULL; in topo_usb_enum_lport() local
1501 if (topo_node_fru_set(tn, fmri, 0, &ret) != 0) { in topo_usb_enum_lport()
1528 if (topo_prop_set_uint32(tn, TOPO_PGROUP_USB_PROPS, in topo_usb_enum_lport()
1712 topo_node_unbind(tn); in topo_usb_enum_lport()
1775 tnode_t *tn; in topo_usb_enum_controller() local
1877 tnode_t *tn; in topo_usb_enum_chassis() local
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_libhp/
H A Dfac_prov_libhp.c208 fac_prov_libhp_opt_set(topo_mod_t *mod, tnode_t *tn, topo_version_t vers, in fac_prov_libhp_opt_set() argument
220 if (topo_prop_get_string(tn, TOPO_PGROUP_LIBHP, in fac_prov_libhp_opt_set()
222 topo_prop_get_string(tn, TOPO_PGROUP_LIBHP, in fac_prov_libhp_opt_set()
224 topo_prop_get_string(tn, TOPO_PGROUP_LIBHP, in fac_prov_libhp_opt_set()
226 topo_prop_get_string(tn, TOPO_PGROUP_LIBHP, in fac_prov_libhp_opt_set()
285 topo_fac_prov_libhp_enum(topo_mod_t *mod, tnode_t *tn, const char *name, in topo_fac_prov_libhp_enum() argument
288 const char *tname = topo_node_name(tn); in topo_fac_prov_libhp_enum()
289 topo_instance_t inst = topo_node_instance(tn); in topo_fac_prov_libhp_enum()
290 int flags = topo_node_flags(tn); in topo_fac_prov_libhp_enum()
301 if (topo_method_register(mod, tn, fac_prov_libhp_methods) != 0) { in topo_fac_prov_libhp_enum()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_digraph.c161 tnode_t *tn = NULL; in topo_digraph_new() local
193 tn->tn_instance = 0; in topo_digraph_new()
194 tn->tn_enum = mod; in topo_digraph_new()
195 tn->tn_hdl = thp; in topo_digraph_new()
196 topo_node_hold(tn); in topo_digraph_new()
259 tnode_t *tn = NULL; in topo_vertex_new() local
278 tn->tn_enum = mod; in topo_vertex_new()
280 tn->tn_vtx = vtx; in topo_vertex_new()
288 vtx->tvt_node = tn; in topo_vertex_new()
289 topo_node_hold(tn); in topo_vertex_new()
[all …]
H A Dtopo_digraph_xml.c441 tnode_t *tn; in serialize_edge() local
444 tn = topo_vertex_node(edge->tve_vertex); in serialize_edge()
667 tnode_t *tn; in serialize_vertex() local
671 tn = topo_vertex_node(vtx); in serialize_vertex()
698 topo_node_instance(tn)); in serialize_vertex()
811 tnode_t *tn; in edge_cb() local
816 tn = topo_vertex_node(vtx); in edge_cb()
821 topo_node_instance(tn)); in edge_cb()
927 tnode_t *tn; in add_props() local
931 tn = topo_vertex_node(vtx); in add_props()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/
H A Dlibtopo.c251 tnode_t tn; in topo_node() local
260 if (mdb_vread(&tn, sizeof (tn), addr) != sizeof (tn)) { in topo_node()
284 mdb_printf("%-12s %-36d %-30s\n", "tn_state", tn.tn_state, in topo_node()
286 if (TOPO_NODE_INIT & tn.tn_state) { in topo_node()
289 if (TOPO_NODE_ROOT & tn.tn_state) { in topo_node()
292 if (TOPO_NODE_BOUND & tn.tn_state) { in topo_node()
295 if (TOPO_NODE_LINKED & tn.tn_state) { in topo_node()
304 mdb_printf("%-12s 0x%-34p %-30s\n", "tn_hdl", tn.tn_hdl, in topo_node()
306 mdb_printf("%-12s 0x%-34p %-30s\n", "tn_enum", tn.tn_enum, in topo_node()
316 mdb_printf("%-12s 0x%-34p %-30s\n", "tn_priv", tn.tn_priv, in topo_node()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chipset/
H A Dchipset.c82 tnode_t *tn = NULL; in topo_chipset_enum() local
116 if ((tn = topo_node_bind(mod, pnode, CHIPSET, inst, fmri)) == NULL) { in topo_chipset_enum()
130 if (topo_node_fru_set(tn, presource, 0, &ret) != 0) { in topo_chipset_enum()
140 if ((ret = topo_sensor_create_scalar_sensor(mod, tn, in topo_chipset_enum()
155 topo_node_unbind(tn); in topo_chipset_enum()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_get.c45 asn1_tagnum tn=0; in asn1_get_tag_2() local
66 tn = (tn<<7) + (asn1_tagnum)(o&0x7F); in asn1_get_tag_2()
68 t->tagnum = tn; in asn1_get_tag_2()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c108 libzfs_fru_gather(topo_hdl_t *thp, tnode_t *tn, void *arg) in libzfs_fru_gather() argument
122 strcmp(_topo_node_name(tn), "chassis") == 0) { in libzfs_fru_gather()
123 if (_topo_prop_get_string(tn, FM_FMRI_AUTHORITY, in libzfs_fru_gather()
132 if (strcmp(_topo_node_name(tn), "disk") != 0) in libzfs_fru_gather()
138 if (_topo_prop_get_string(tn, "io", "devfs-path", &devpath, &err) != 0) in libzfs_fru_gather()
146 if (_topo_node_fru(tn, &fru, NULL, &err) != 0) { in libzfs_fru_gather()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_print.c197 char tn[MDB_SYM_NAMLEN]; in cmd_sizeof() local
203 if ((ret = args_to_typename(&argc, &argv, tn, sizeof (tn))) != 0) in cmd_sizeof()
226 char tn[MDB_SYM_NAMLEN]; in cmd_sizeof_tab() local
235 if ((ret = mdb_tab_typename(&argc, &argv, tn, sizeof (tn))) < 0) in cmd_sizeof_tab()
251 char tn[MDB_SYM_NAMLEN]; in cmd_offsetof() local
258 if ((ret = args_to_typename(&argc, &argv, tn, sizeof (tn))) != 0) in cmd_offsetof()
279 member, tn); in cmd_offsetof()
797 char tn[MDB_SYM_NAMLEN]; in cmd_array() local
809 ret = args_to_typename(&argc, &argv, tn, sizeof (tn)); in cmd_array()
827 } else if (addr_to_sym(t, addr, tn, sizeof (tn), &sym, &s_info) in cmd_array()
[all …]
H A Dmdb_tab.c595 char tn[MDB_SYM_NAMLEN]; in mdb_tab_complete_mt() local
604 if ((ret = mdb_tab_typename(&argc, &argv, tn, sizeof (tn))) < 0) in mdb_tab_complete_mt()
608 return (mdb_tab_complete_type(mcp, tn, MDB_TABC_MEMBERS)); in mdb_tab_complete_mt()
611 return (mdb_tab_complete_member(mcp, tn, NULL)); in mdb_tab_complete_mt()
614 return (mdb_tab_complete_member(mcp, tn, argv[1].a_un.a_str)); in mdb_tab_complete_mt()
/illumos-gate/usr/src/lib/fm/topo/modules/common/xfp/
H A Dxfp.c128 xfp_fru_set(topo_mod_t *mp, tnode_t *tn) in xfp_fru_set() argument
133 if (topo_node_resource(tn, &fmri, &err) < 0 || in xfp_fru_set()
139 e = topo_node_fru_set(tn, fmri, 0, &err); in xfp_fru_set()

12