Lines Matching defs:cl_ep
3333 tl_endpt_t *acc_ep = NULL, *cl_ep = NULL;
3517 cl_ep = tip->ti_tep;
3538 if (cl_ep != NULL) {
3539 if (tl_noclose(cl_ep)) {
3554 if (!IS_SOCKET(cl_ep) || tl_disable_early_connect ||
3555 cl_ep->te_state == -1)
3556 cl_ep = NULL;
3560 if (cl_ep != NULL) {
3565 if (cl_ep->te_state != TS_WCON_CREQ &&
3566 (cl_ep->te_state != TS_DATA_XFER &&
3567 IS_SOCKET(cl_ep))) {
3589 if (cl_ep->te_flag & TL_SETCRED) {
3592 } else if (cl_ep->te_flag & TL_SETUCRED) {
3607 tl_closeok(cl_ep);
3644 tl_closeok(cl_ep);
3666 tl_closeok(cl_ep);
3678 if (cl_ep == NULL) {
3714 if (! IS_SOCKET(cl_ep) || tl_disable_early_connect) {
3724 tl_closeok(cl_ep);
3736 if (cl_ep->te_flag & (TL_SETCRED|TL_SETUCRED)) {
3741 acc_ep->te_credp, acc_ep->te_cpid, cl_ep->te_flag,
3742 cl_ep->te_credp);
3767 ASSERT(cl_ep->te_refcnt >= 2);
3769 ASSERT(cl_ep->te_conp == NULL);
3771 cl_ep->te_conp = acc_ep;
3772 acc_ep->te_conp = cl_ep;
3773 ASSERT(cl_ep->te_ser == tep->te_ser);
3775 mutex_enter(&cl_ep->te_ser_lock);
3776 if (cl_ep->te_ser_count > 0) {
3784 tl_serializer_refrele(cl_ep->te_ser);
3785 cl_ep->te_ser = acc_ep->te_ser;
3787 mutex_exit(&cl_ep->te_ser_lock);
3795 tl_serializer_refhold(cl_ep->te_ser);
3797 acc_ep->te_ser = cl_ep->te_ser;
3800 TL_REMOVE_PEER(cl_ep->te_oconp);
3819 acc_ep->te_wq->q_next = cl_ep->te_rq;
3820 cl_ep->te_wq->q_next = acc_ep->te_rq;
3828 if (IS_SOCKET(cl_ep) && !tl_disable_early_connect) {
3829 enableok(cl_ep->te_wq);
3830 TL_QENABLE(cl_ep);
3837 cl_ep->te_state = NEXTSTATE(TE_CONN_CON, cl_ep->te_state);
3838 putnext(cl_ep->te_rq, ccmp);
3842 cl_ep->te_flag |= TL_ACCEPTED;
3850 tl_closeok(cl_ep);