Lines Matching refs:tdev

139 static int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2e)
144 rdev = (struct cxio_rdev *)tdev->ulp;
149 error = l2t_send(tdev, skb, l2e);
155 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb)
160 rdev = (struct cxio_rdev *)tdev->ulp;
165 error = cxgb3_ofld_send(tdev, skb);
171 static void release_tid(struct t3cdev *tdev, u32 hwtid, struct sk_buff *skb)
182 iwch_cxgb3_ofld_send(tdev, skb);
204 return iwch_cxgb3_ofld_send(ep->com.tdev, skb);
225 return iwch_cxgb3_ofld_send(ep->com.tdev, skb);
231 ep->emss = T3C_DATA(ep->com.tdev)->mtus[G_TCPOPT_MSS(opt)] - 40;
287 cxgb3_remove_tid(ep->com.tdev, (void *)ep, ep->hwtid);
289 l2t_release(ep->com.tdev, ep->l2t);
404 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
426 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
445 mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst));
471 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
528 iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
579 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
630 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
633 static int act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
645 cxgb3_insert_tid(ep->com.tdev, &t3c_client, ep, tid);
653 cxgb3_free_atid(ep->com.tdev, ep->atid);
810 iwch_cxgb3_ofld_send(ep->com.tdev, skb);
1044 static int rx_data(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1090 static int tx_ack(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1137 static int abort_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1182 static int act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1191 if (ep->com.tdev->type != T3A && act_open_has_tid(rpl->status))
1192 release_tid(ep->com.tdev, GET_TID(rpl), NULL);
1193 cxgb3_free_atid(ep->com.tdev, ep->atid);
1195 l2t_release(ep->com.tdev, ep->l2t);
1225 return iwch_cxgb3_ofld_send(ep->com.tdev, skb);
1228 static int pass_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1258 return iwch_cxgb3_ofld_send(ep->com.tdev, skb);
1261 static int close_listsrv_rpl(struct t3cdev *tdev, struct sk_buff *skb,
1285 mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst));
1307 iwch_l2t_send(ep->com.tdev, skb, ep->l2t);
1312 static void reject_cr(struct t3cdev *tdev, u32 hwtid, __be32 peer_ip,
1315 PDBG("%s t3cdev %p tid %u peer_ip %x\n", __func__, tdev, hwtid,
1321 if (tdev->type != T3A)
1322 release_tid(tdev, hwtid, skb);
1336 iwch_cxgb3_ofld_send(tdev, skb);
1340 static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1363 if (tdev->ctl(tdev, GET_IFF_FROM_MAC, &tim) < 0 || !tim.dev) {
1370 rt = find_route(tdev,
1381 l2t = t3_l2t_get(tdev, dst, NULL, &req->peer_ip);
1392 l2t_release(tdev, l2t);
1397 child_ep->com.tdev = tdev;
1412 cxgb3_insert_tid(tdev, &t3c_client, child_ep, hwtid);
1416 reject_cr(tdev, hwtid, req->peer_ip, skb);
1421 static int pass_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1439 static int peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1530 static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1544 t3_l2t_send_event(ep->com.tdev, ep->l2t);
1634 iwch_cxgb3_ofld_send(ep->com.tdev, rpl_skb);
1641 static int close_con_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1695 static int terminate(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1712 static int ec_status(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
1925 ep->com.tdev = h->rdev.t3cdev_p;
1954 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst, NULL,
1978 cxgb3_free_atid(ep->com.tdev, ep->atid);
2007 ep->com.tdev = h->rdev.t3cdev_p;
2037 cxgb3_free_stid(ep->com.tdev, ep->stid);
2061 cxgb3_free_stid(ep->com.tdev, ep->stid);
2075 struct t3cdev *tdev;
2083 tdev = (struct t3cdev *)ep->com.tdev;
2084 rdev = (struct cxio_rdev *)tdev->ulp;
2151 l2t_release(ep->com.tdev, ep->l2t);
2184 struct t3cdev *tdev;
2189 tdev = *((struct t3cdev **) (skb->cb + sizeof(void *)));
2190 ret = work_handlers[G_OPCODE(ntohl((__force __be32)skb->csum))](tdev, skb, ep);
2203 static int sched(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
2210 * Save ctx and tdev in the skb->cb area.
2213 *((struct t3cdev **) (skb->cb + sizeof(void *))) = tdev;
2223 static int set_tcb_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)