Lines Matching refs:tp

93 tcp_offload_listen_start(struct tcpcb *tp)
96 INP_WLOCK_ASSERT(tp->t_inpcb);
98 EVENTHANDLER_INVOKE(tcp_offload_listen_start, tp);
102 tcp_offload_listen_stop(struct tcpcb *tp)
105 INP_WLOCK_ASSERT(tp->t_inpcb);
107 EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp);
111 tcp_offload_input(struct tcpcb *tp, struct mbuf *m)
113 struct toedev *tod = tp->tod;
115 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
116 INP_WLOCK_ASSERT(tp->t_inpcb);
118 tod->tod_input(tod, tp, m);
122 tcp_offload_output(struct tcpcb *tp)
124 struct toedev *tod = tp->tod;
127 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
128 INP_WLOCK_ASSERT(tp->t_inpcb);
130 flags = tcp_outflags[tp->t_state];
134 error = tod->tod_send_rst(tod, tp);
135 } else if ((flags & TH_FIN || tp->t_flags & TF_NEEDFIN) &&
136 (tp->t_flags & TF_SENTFIN) == 0) {
137 error = tod->tod_send_fin(tod, tp);
139 tp->t_flags |= TF_SENTFIN;
141 error = tod->tod_output(tod, tp);
147 tcp_offload_rcvd(struct tcpcb *tp)
149 struct toedev *tod = tp->tod;
151 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
152 INP_WLOCK_ASSERT(tp->t_inpcb);
154 tod->tod_rcvd(tod, tp);
158 tcp_offload_ctloutput(struct tcpcb *tp, int sopt_dir, int sopt_name)
160 struct toedev *tod = tp->tod;
162 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
163 INP_WLOCK_ASSERT(tp->t_inpcb);
165 tod->tod_ctloutput(tod, tp, sopt_dir, sopt_name);
169 tcp_offload_detach(struct tcpcb *tp)
171 struct toedev *tod = tp->tod;
173 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp));
174 INP_WLOCK_ASSERT(tp->t_inpcb);
176 tod->tod_pcb_detach(tod, tp);