Lines Matching refs:tp

95 tcp_offload_listen_start(struct tcpcb *tp)
98 INP_WLOCK_ASSERT(tp->t_inpcb);
100 EVENTHANDLER_INVOKE(tcp_offload_listen_start, tp);
104 tcp_offload_listen_stop(struct tcpcb *tp)
107 INP_WLOCK_ASSERT(tp->t_inpcb);
109 EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp);
113 tcp_offload_input(struct tcpcb *tp, struct mbuf *m)
115 struct toedev *tod = tp->tod;
117 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
118 INP_WLOCK_ASSERT(tp->t_inpcb);
120 tod->tod_input(tod, tp, m);
124 tcp_offload_output(struct tcpcb *tp)
126 struct toedev *tod = tp->tod;
129 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
130 INP_WLOCK_ASSERT(tp->t_inpcb);
132 flags = tcp_outflags[tp->t_state];
136 error = tod->tod_send_rst(tod, tp);
137 } else if ((flags & TH_FIN || tp->t_flags & TF_NEEDFIN) &&
138 (tp->t_flags & TF_SENTFIN) == 0) {
139 error = tod->tod_send_fin(tod, tp);
141 tp->t_flags |= TF_SENTFIN;
143 error = tod->tod_output(tod, tp);
149 tcp_offload_rcvd(struct tcpcb *tp)
151 struct toedev *tod = tp->tod;
153 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
154 INP_WLOCK_ASSERT(tp->t_inpcb);
156 tod->tod_rcvd(tod, tp);
160 tcp_offload_ctloutput(struct tcpcb *tp, int sopt_dir, int sopt_name)
162 struct toedev *tod = tp->tod;
164 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
165 INP_WLOCK_ASSERT(tp->t_inpcb);
167 tod->tod_ctloutput(tod, tp, sopt_dir, sopt_name);
171 tcp_offload_tcp_info(struct tcpcb *tp, struct tcp_info *ti)
173 struct toedev *tod = tp->tod;
175 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
176 INP_WLOCK_ASSERT(tp->t_inpcb);
178 tod->tod_tcp_info(tod, tp, ti);
182 tcp_offload_detach(struct tcpcb *tp)
184 struct toedev *tod = tp->tod;
186 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
187 INP_WLOCK_ASSERT(tp->t_inpcb);
189 tod->tod_pcb_detach(tod, tp);