Home
last modified time | relevance | path

Searched refs:twp (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtsol.c100 twp = mdb_alloc(sizeof (*twp), UM_SLEEP); in tnrh_walk_init()
104 mdb_free(twp, sizeof (*twp)); in tnrh_walk_init()
110 mdb_free(twp, sizeof (*twp)); in tnrh_walk_init()
114 twp->hptr = twp->tnrhc_table; in tnrh_walk_init()
115 twp->idx = 0; in tnrh_walk_init()
130 if (*twp->hptr == NULL || twp->idx >= TNRHC_SIZE) { in tnrh_walk_step()
132 if (twp->hptr == twp->tnrhc_table + in tnrh_walk_step()
134 twp->hptr = twp->tnrhc_table_v6; in tnrh_walk_step()
135 else if (twp->hptr == twp->tnrhc_table_v6 + in tnrh_walk_step()
140 wsp->walk_addr = (uintptr_t)(*twp->hptr)[twp->idx++]. in tnrh_walk_step()
[all …]
H A Dthread.c64 mdb_free(twp, sizeof (thread_walk_t)); in thread_walk_init()
68 twp->tw_inproc = FALSE; in thread_walk_init()
75 mdb_free(twp, sizeof (thread_walk_t)); in thread_walk_init()
80 twp->tw_inproc = TRUE; in thread_walk_init()
84 twp->tw_last = wsp->walk_addr; in thread_walk_init()
85 twp->tw_step = FALSE; in thread_walk_init()
87 wsp->walk_data = twp; in thread_walk_init()
100 if (twp->tw_step && wsp->walk_addr == twp->tw_last) in thread_walk_step()
112 if (twp->tw_inproc) in thread_walk_step()
117 twp->tw_step = TRUE; in thread_walk_step()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/
H A Dcmd_hc_sun4v.c317 topo_walk_t *twp; in init_mb() local
322 if ((twp = topo_walk_init(thp, in init_mb()
329 topo_walk_fini(twp); in init_mb()
390 topo_walk_t *twp; in cmd_find_dimm_by_sn() local
398 if ((twp = topo_walk_init(thp, in cmd_find_dimm_by_sn()
404 if ((twp = topo_walk_init(thp, in cmd_find_dimm_by_sn()
411 topo_walk_fini(twp); in cmd_find_dimm_by_sn()
471 topo_walk_t *twp; in cmd_find_cpu_rsc_by_sn() local
483 topo_walk_fini(twp); in cmd_find_cpu_rsc_by_sn()
540 topo_walk_t *twp; in cmd_find_mem_rsc_by_sn() local
[all …]
H A Dcmd_branch.c212 topo_walk_t *twp; in branch_dimmlist_create() local
218 if ((twp = topo_walk_init(thp, in branch_dimmlist_create()
225 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in branch_dimmlist_create()
226 topo_walk_fini(twp); in branch_dimmlist_create()
259 topo_walk_t *twp; in fru_by_label() local
267 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in fru_by_label()
268 topo_walk_fini(twp); in fru_by_label()
644 topo_walk_t *twp; in branch_exist() local
649 if ((twp = topo_walk_init(thp, in branch_exist()
656 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in branch_exist()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-lights/
H A Ddisk_lights.c219 topo_walk_t *twp = NULL; in dl_examine_topo() local
222 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, dl_fault_walk_outer, in dl_examine_topo()
229 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in dl_examine_topo()
236 if (twp != NULL) in dl_examine_topo()
237 topo_walk_fini(twp); in dl_examine_topo()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_snap.c387 topo_walk_t *twp; in topo_snap_hold() local
405 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, in topo_snap_hold()
409 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in topo_snap_hold()
410 topo_walk_fini(twp); in topo_snap_hold()
439 topo_walk_t *twp; in topo_snap_destroy() local
448 twp = tp->tt_walk; in topo_snap_destroy()
452 if ((twp->tw_node = topo_child_first(root)) != NULL) { in topo_snap_destroy()
453 twp->tw_cb = topo_walk_destroy; in topo_snap_destroy()
455 topo_node_hold(twp->tw_node); /* released at walk end */ in topo_snap_destroy()
456 (void) topo_walk_bottomup(twp, TOPO_WALK_CHILD); in topo_snap_destroy()
/illumos-gate/usr/src/cmd/fm/modules/common/disk-transport/
H A Ddisk_transport.c197 topo_walk_t *twp; in dt_timeout() local
204 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, dt_analyze_disk, in dt_timeout()
212 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in dt_timeout()
213 topo_walk_fini(twp); in dt_timeout()
219 topo_walk_fini(twp); in dt_timeout()
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_filter.c125 topo_walk_t *twp; /* topo walk handle */ in etm_pciexrc_init() local
130 twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, etm_pciexrc_walker, in etm_pciexrc_init()
132 if (twp == NULL) { in etm_pciexrc_init()
136 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in etm_pciexrc_init()
137 topo_walk_fini(twp); in etm_pciexrc_init()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c262 topo_walk_t *twp; in libzfs_fru_refresh() local
292 twp = _topo_walk_init(thp, FM_FMRI_SCHEME_HC, in libzfs_fru_refresh()
294 if (twp != NULL) { in libzfs_fru_refresh()
295 (void) _topo_walk_step(twp, TOPO_WALK_CHILD); in libzfs_fru_refresh()
296 _topo_walk_fini(twp); in libzfs_fru_refresh()
/illumos-gate/usr/src/cmd/prtdiag/i386/
H A Dsmbios.c247 topo_walk_t *twp; in do_slot_mapping() local
259 twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, do_slot_mapping_cb, pciex, in do_slot_mapping()
261 if (twp == NULL) in do_slot_mapping()
264 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in do_slot_mapping()
265 topo_walk_fini(twp); in do_slot_mapping()
/illumos-gate/usr/src/cmd/fm/modules/common/sensor-transport/
H A Dsensor_transport.c298 topo_walk_t *twp; in st_timeout() local
307 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, st_check_component, in st_timeout()
332 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in st_timeout()
333 topo_walk_fini(twp); in st_timeout()
358 topo_walk_fini(twp); in st_timeout()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_meth.c197 topo_walk_t *twp; in walk_cpus() local
213 twp = topo_mod_walk_init(mod, parent, cpu_walker, swdp, &err); in walk_cpus()
214 if (twp == NULL) in walk_cpus()
217 err = topo_walk_step(twp, TOPO_WALK_CHILD); in walk_cpus()
218 topo_walk_fini(twp); in walk_cpus()
/illumos-gate/usr/src/uts/common/inet/nca/
H A Dnca.h309 #define NCA_TW_LBOLTS(twp, future) { \ argument
317 if ((twp)->lbolt1 != _lbolt) { \
318 (twp)->lbolt1 = _lbolt; \
320 (twp)->lbolt2 = _lbolt; \
322 (twp)->lbolt3 = _lbolt; \
323 if ((twp)->tid != 0) { \
324 (void) untimeout((twp)->tid); \
325 (twp)->tid = 0; \
328 (twp)->tid = timeout((pfv_t)nca_tw_fire, (twp), \
329 (twp)->lbolt3 - ddi_get_lbolt()); \
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Dtopo_gather.c747 topo_walk_t *twp; in update_configuration_from_topo() local
756 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, gather_topo_cfg, in update_configuration_from_topo()
762 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in update_configuration_from_topo()
764 topo_walk_fini(twp); in update_configuration_from_topo()
772 topo_walk_fini(twp); in update_configuration_from_topo()
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_dimm.c424 topo_walk_t *twp; in gmem_find_dimm_by_sn() local
431 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, in gmem_find_dimm_by_sn()
437 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in gmem_find_dimm_by_sn()
438 topo_walk_fini(twp); in gmem_find_dimm_by_sn()
H A Dgmem_memerr.c138 topo_walk_t *twp; in gmem_find_fault_fru() local
145 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, in gmem_find_fault_fru()
151 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in gmem_find_fault_fru()
152 topo_walk_fini(twp); in gmem_find_fault_fru()
/illumos-gate/usr/src/cmd/fm/modules/common/ses-log-transport/
H A Dses_log_transport.c1074 topo_walk_t *twp; in slt_timeout() local
1093 if ((twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, slt_process_ses_log, in slt_timeout()
1106 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in slt_timeout()
1107 topo_walk_fini(twp); in slt_timeout()
1114 topo_walk_fini(twp); in slt_timeout()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_subr.c589 topo_walk_t *twp; in walk_strands() local
600 twp = topo_mod_walk_init(mod, parent, strand_walker, swdp, &err); in walk_strands()
601 if (twp == NULL) { in walk_strands()
606 err = topo_walk_step(twp, TOPO_WALK_CHILD); in walk_strands()
607 topo_walk_fini(twp); in walk_strands()
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_main.c666 topo_walk_t *twp; in init_auth() local
671 if ((twp = topo_walk_init(thp, in init_auth()
677 (void) topo_walk_step(twp, TOPO_WALK_CHILD); in init_auth()
678 topo_walk_fini(twp); in init_auth()
/illumos-gate/usr/src/cmd/fm/fmtopo/common/
H A Dfmtopo.c970 topo_walk_t *twp; in walk_topo() local
978 if ((twp = topo_walk_init(thp, opt_s, walk_node, NULL, &err)) in walk_topo()
1001 if (topo_walk_step(twp, flag) == TOPO_WALK_ERR) { in walk_topo()
1004 topo_walk_fini(twp); in walk_topo()
1008 topo_walk_fini(twp); in walk_topo()
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c711 topo_walk_t *twp; in platform_config_snapshot() local
750 if ((twp = topo_walk_init(Eft_topo_hdl, FM_FMRI_SCHEME_HC, cfgcollect, in platform_config_snapshot()
756 if (topo_walk_step(twp, TOPO_WALK_CHILD) == TOPO_WALK_ERR) { in platform_config_snapshot()
757 topo_walk_fini(twp); in platform_config_snapshot()
762 topo_walk_fini(twp); in platform_config_snapshot()
/illumos-gate/usr/src/data/terminfo/
H A Dtermcap.src17014 # From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998
H A Dterminfo.src19099 # From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998