Lines Matching refs:rdev

190 static int c4iw_l2t_send(struct c4iw_rdev *rdev, struct sk_buff *skb,
195 if (c4iw_fatal_error(rdev)) {
200 error = cxgb4_l2t_send(rdev->lldi.ports[0], skb, l2e);
206 int c4iw_ofld_send(struct c4iw_rdev *rdev, struct sk_buff *skb)
210 if (c4iw_fatal_error(rdev)) {
215 error = cxgb4_ofld_send(rdev->lldi.ports[0], skb);
221 static void release_tid(struct c4iw_rdev *rdev, u32 hwtid, struct sk_buff *skb)
232 c4iw_ofld_send(rdev, skb);
238 ep->emss = ep->com.dev->rdev.lldi.mtus[GET_TCPOPT_MSS(opt)] -
302 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid);
367 for (i = 0; i < dev->rdev.lldi.nports; i++)
368 if (dev->rdev.lldi.ports[i] == egress_dev)
446 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid);
458 struct c4iw_rdev *rdev = handle;
461 PDBG("%s rdev %p\n", __func__, rdev);
463 c4iw_ofld_send(rdev, skb);
482 (ep->com.dev->rdev.lldi.pf));
507 c4iw_ofld_send(&ep->com.dev->rdev, skb);
529 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
545 t4_set_arp_err_handler(skb, &ep->com.dev->rdev, abort_arp_failure);
551 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
573 memcpy(pm_msg->if_name, dev->rdev.lldi.ports[0]->name,
612 int sizev4 = is_t4(ep->com.dev->rdev.lldi.adapter_type) ?
615 int sizev6 = is_t4(ep->com.dev->rdev.lldi.adapter_type) ?
642 best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx,
675 if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
682 if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) {
695 ep->com.dev->rdev.lldi.ports[0],
717 ep->com.dev->rdev.lldi.ports[0],
741 ep->com.dev->rdev.lldi.ports[0],
767 ep->com.dev->rdev.lldi.ports[0],
777 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
867 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
952 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
1037 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
1046 struct tid_info *t = dev->rdev.lldi.tids;
1264 c4iw_ofld_send(&ep->com.dev->rdev, skb);
1391 ep->com.dev->rdev.lldi.max_ordird_qp)
1661 struct tid_info *t = dev->rdev.lldi.tids;
1714 struct tid_info *t = dev->rdev.lldi.tids;
1756 ep->com.dev->rdev.lldi.ports[0],
1771 best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx,
1797 TX_QUEUE(ep->com.dev->rdev.lldi.tx_modq[ep->tx_chan]) |
1811 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
1886 ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
1893 step = cdev->rdev.lldi.ntxq /
1894 cdev->rdev.lldi.nchan;
1896 step = cdev->rdev.lldi.nrxq /
1897 cdev->rdev.lldi.nchan;
1899 ep->rss_qid = cdev->rdev.lldi.rxq_ids[
1905 ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
1912 step = cdev->rdev.lldi.ntxq /
1913 cdev->rdev.lldi.nchan;
1916 step = cdev->rdev.lldi.nrxq /
1917 cdev->rdev.lldi.nchan;
1918 ep->rss_qid = cdev->rdev.lldi.rxq_ids[
1956 ep->atid = cxgb4_alloc_atid(ep->com.dev->rdev.lldi.tids, ep);
2007 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid);
2027 struct tid_info *t = dev->rdev.lldi.tids;
2044 dev_warn(&dev->rdev.lldi.pdev->dev,
2060 mutex_lock(&dev->rdev.stats.lock);
2061 dev->rdev.stats.tcam_full++;
2062 mutex_unlock(&dev->rdev.stats.lock);
2064 dev->rdev.lldi.enable_fw_ofld_conn) {
2102 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, GET_TID(rpl));
2116 struct tid_info *t = dev->rdev.lldi.tids;
2135 struct tid_info *t = dev->rdev.lldi.tids;
2160 if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
2171 best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx,
2212 if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) {
2229 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t);
2239 release_tid(&dev->rdev, hwtid, skb);
2280 struct tid_info *t = dev->rdev.lldi.tids;
2400 struct tid_info *t = dev->rdev.lldi.tids;
2429 struct tid_info *t = dev->rdev.lldi.tids;
2517 struct tid_info *t = dev->rdev.lldi.tids;
2522 dev_warn(&dev->rdev.lldi.pdev->dev,
2616 c4iw_ofld_send(&ep->com.dev->rdev, rpl_skb);
2622 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid);
2637 struct tid_info *t = dev->rdev.lldi.tids;
2680 struct tid_info *t = dev->rdev.lldi.tids;
2711 struct tid_info *t = dev->rdev.lldi.tids;
2805 ep->ord <= h->rdev.lldi.max_ordird_qp) {
2879 ind = in_dev_get(dev->rdev.lldi.ports[0]);
2925 if (get_lladdr(dev->rdev.lldi.ports[0], &addr, IFA_F_TENTATIVE)) {
2986 ep->atid = cxgb4_alloc_atid(dev->rdev.lldi.tids, ep);
3106 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid);
3121 err = cxgb4_create_server6(ep->com.dev->rdev.lldi.ports[0],
3124 ep->com.dev->rdev.lldi.rxq_ids[0]);
3126 err = c4iw_wait_for_reply(&ep->com.dev->rdev,
3142 if (dev->rdev.lldi.enable_fw_ofld_conn) {
3145 ep->com.dev->rdev.lldi.ports[0], ep->stid,
3147 ep->com.dev->rdev.lldi.rxq_ids[0], 0, 0);
3155 err = cxgb4_create_server(ep->com.dev->rdev.lldi.ports[0],
3157 0, ep->com.dev->rdev.lldi.rxq_ids[0]);
3159 err = c4iw_wait_for_reply(&ep->com.dev->rdev,
3198 if (dev->rdev.lldi.enable_fw_ofld_conn &&
3200 ep->stid = cxgb4_alloc_sftid(dev->rdev.lldi.tids,
3203 ep->stid = cxgb4_alloc_stid(dev->rdev.lldi.tids,
3254 cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid,
3273 if (ep->com.dev->rdev.lldi.enable_fw_ofld_conn &&
3276 ep->com.dev->rdev.lldi.ports[0], ep->stid,
3277 ep->com.dev->rdev.lldi.rxq_ids[0], 0);
3281 ep->com.dev->rdev.lldi.ports[0], ep->stid,
3282 ep->com.dev->rdev.lldi.rxq_ids[0], 0);
3285 err = c4iw_wait_for_reply(&ep->com.dev->rdev, &ep->com.wr_wait,
3289 cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid,
3302 struct c4iw_rdev *rdev;
3309 rdev = &ep->com.dev->rdev;
3310 if (c4iw_fatal_error(rdev)) {
3375 ep = (struct c4iw_ep *)lookup_atid(dev->rdev.lldi.tids,
3401 mutex_lock(&dev->rdev.stats.lock);
3402 dev->rdev.stats.act_ofld_conn_fails++;
3403 mutex_unlock(&dev->rdev.stats.lock);
3407 cxgb4_free_atid(dev->rdev.lldi.tids, atid);
3424 mutex_lock(&dev->rdev.stats.lock);
3425 dev->rdev.stats.pas_ofld_conn_fails++;
3426 mutex_unlock(&dev->rdev.stats.lock);
3502 eth_hdr_len = is_t4(dev->rdev.lldi.adapter_type) ?
3572 ret = cxgb4_ofld_send(dev->rdev.lldi.ports[0], req_skb);
3626 lep = (struct c4iw_ep *)lookup_stid(dev->rdev.lldi.tids, stid);
3632 eth_hdr_len = is_t4(dev->rdev.lldi.adapter_type) ?
3673 e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
3680 e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
3692 step = dev->rdev.lldi.nrxq / dev->rdev.lldi.nchan;
3693 rss_qid = dev->rdev.lldi.rxq_ids[pi->port_id * step];
3698 dev->rdev.lldi.ports[0],
3918 struct tid_info *t = dev->rdev.lldi.tids;
3929 dev_warn(&dev->rdev.lldi.pdev->dev,