Lines Matching refs:tp

92 tcp_offload_listen_start(struct tcpcb *tp)
95 INP_WLOCK_ASSERT(tp->t_inpcb);
97 EVENTHANDLER_INVOKE(tcp_offload_listen_start, tp);
101 tcp_offload_listen_stop(struct tcpcb *tp)
104 INP_WLOCK_ASSERT(tp->t_inpcb);
106 EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp);
110 tcp_offload_input(struct tcpcb *tp, struct mbuf *m)
112 struct toedev *tod = tp->tod;
114 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
115 INP_WLOCK_ASSERT(tp->t_inpcb);
117 tod->tod_input(tod, tp, m);
121 tcp_offload_output(struct tcpcb *tp)
123 struct toedev *tod = tp->tod;
126 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
127 INP_WLOCK_ASSERT(tp->t_inpcb);
129 flags = tcp_outflags[tp->t_state];
133 error = tod->tod_send_rst(tod, tp);
134 } else if ((flags & TH_FIN || tp->t_flags & TF_NEEDFIN) &&
135 (tp->t_flags & TF_SENTFIN) == 0) {
136 error = tod->tod_send_fin(tod, tp);
138 tp->t_flags |= TF_SENTFIN;
140 error = tod->tod_output(tod, tp);
146 tcp_offload_rcvd(struct tcpcb *tp)
148 struct toedev *tod = tp->tod;
150 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
151 INP_WLOCK_ASSERT(tp->t_inpcb);
153 tod->tod_rcvd(tod, tp);
157 tcp_offload_ctloutput(struct tcpcb *tp, int sopt_dir, int sopt_name)
159 struct toedev *tod = tp->tod;
161 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
162 INP_WLOCK_ASSERT(tp->t_inpcb);
164 tod->tod_ctloutput(tod, tp, sopt_dir, sopt_name);
168 tcp_offload_detach(struct tcpcb *tp)
170 struct toedev *tod = tp->tod;
172 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
173 INP_WLOCK_ASSERT(tp->t_inpcb);
175 tod->tod_pcb_detach(tod, tp);