Lines Matching refs:ts
586 tun_state_read(void *ptr, union tun_state *ts) in tun_state_read() argument
592 if (mdb_vread(&ts->tunflags, sizeof (ts->tunflags), (uintptr_t)ptr) == in tun_state_read()
593 sizeof (ts->tunflags)) { in tun_state_read()
594 if (ts->tunflags & TCLF_ISCLIENT) { in tun_state_read()
595 if (mdb_vread(&ts->tcl, sizeof (ts->tcl), in tun_state_read()
596 (uintptr_t)ptr) == sizeof (ts->tcl)) { in tun_state_read()
600 if (mdb_vread(&ts->tll, sizeof (ts->tll), in tun_state_read()
601 (uintptr_t)ptr) == sizeof (ts->tll)) { in tun_state_read()
612 union tun_state ts; in sppptun_qinfo() local
614 if (tun_state_read(q->q_ptr, &ts) == -1) in sppptun_qinfo()
617 if (ts.tcl.tcl_flags & TCLF_ISCLIENT) in sppptun_qinfo()
619 ts.tcl.tcl_unit, ts.tcl.tcl_lsessid); in sppptun_qinfo()
621 mdb_snprintf(buf, nbytes, "%s", ts.tll.tll_name); in sppptun_qinfo()
627 union tun_state ts; in sppptun_rnext() local
629 if (tun_state_read(q->q_ptr, &ts) == -1) in sppptun_rnext()
632 if (ts.tcl.tcl_flags & TCLF_ISCLIENT) { in sppptun_rnext()
633 return ((uintptr_t)ts.tcl.tcl_rq); in sppptun_rnext()
636 return ((uintptr_t)ts.tll.tll_defcl); in sppptun_rnext()
643 union tun_state ts; in sppptun_wnext() local
645 if (tun_state_read(q->q_ptr, &ts) == -1) in sppptun_wnext()
648 if (ts.tcl.tcl_flags & TCLF_ISCLIENT) { in sppptun_wnext()
649 if (ts.tcl.tcl_data_tll == NULL) in sppptun_wnext()
651 if (mdb_vread(&ts.tll, sizeof (ts.tll), in sppptun_wnext()
652 (uintptr_t)ts.tcl.tcl_data_tll) != sizeof (ts.tll)) { in sppptun_wnext()
656 return ((uintptr_t)ts.tll.tll_wq); in sppptun_wnext()