Lines Matching refs:lldi

184 	struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev);  in send_act_open_req()  local
185 int t4 = is_t4(lldi->adapter_type); in send_act_open_req()
205 if (is_t4(lldi->adapter_type)) { in send_act_open_req()
267 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req6() local
268 int t4 = is_t4(lldi->adapter_type); in send_act_open_req6()
693 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in free_atid() local
696 cxgb4_free_atid(lldi->tids, csk->atid); in free_atid()
709 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_establish() local
710 struct tid_info *t = lldi->tids; in do_act_establish()
733 cxgb4_insert_tid(lldi->tids, csk, tid); in do_act_establish()
756 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
803 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in csk_act_open_retry_timer() local
806 int t4 = is_t4(lldi->adapter_type), size, size6; in csk_act_open_retry_timer()
862 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_open_rpl() local
863 struct tid_info *t = lldi->tids; in do_act_open_rpl()
883 cxgb4_remove_tid(lldi->tids, csk->port_id, GET_TID(rpl)); in do_act_open_rpl()
907 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_peer_close() local
908 struct tid_info *t = lldi->tids; in do_peer_close()
928 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_close_con_rpl() local
929 struct tid_info *t = lldi->tids; in do_close_con_rpl()
967 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_req_rss() local
968 struct tid_info *t = lldi->tids; in do_abort_req_rss()
1015 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_rpl_rss() local
1016 struct tid_info *t = lldi->tids; in do_abort_rpl_rss()
1040 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data() local
1041 struct tid_info *t = lldi->tids; in do_rx_data()
1062 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_hdr() local
1063 struct tid_info *t = lldi->tids; in do_rx_iscsi_hdr()
1117 if (is_t4(lldi->adapter_type)) in do_rx_iscsi_hdr()
1167 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data_ddp() local
1168 struct tid_info *t = lldi->tids; in do_rx_data_ddp()
1252 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_fw4_ack() local
1253 struct tid_info *t = lldi->tids; in do_fw4_ack()
1272 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_set_tcb_rpl() local
1273 struct tid_info *t = lldi->tids; in do_set_tcb_rpl()
1325 struct cxgb4_lld_info *lldi; in release_offload_resources() local
1350 lldi = cxgbi_cdev_priv(csk->cdev); in release_offload_resources()
1351 cxgb4_remove_tid(lldi->tids, 0, csk->tid); in release_offload_resources()
1362 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in init_act_open() local
1369 int t4 = is_t4(lldi->adapter_type); in init_act_open()
1393 csk->atid = cxgb4_alloc_atid(lldi->tids, csk); in init_act_open()
1401 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, 0); in init_act_open()
1435 cxgb4_best_mtu(lldi->mtus, csk->mtu, &csk->mss_idx); in init_act_open()
1439 step = lldi->ntxq / lldi->nchan; in init_act_open()
1441 step = lldi->nrxq / lldi->nchan; in init_act_open()
1442 csk->rss_qid = lldi->rxq_ids[cxgb4_port_idx(ndev) * step]; in init_act_open()
1443 csk->wr_cred = lldi->wr_cred - in init_act_open()
1526 static inline void ulp_mem_io_set_hdr(struct cxgb4_lld_info *lldi, in ulp_mem_io_set_hdr() argument
1534 if (is_t4(lldi->adapter_type)) in ulp_mem_io_set_hdr()
1555 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in ddp_ppod_write_idata() local
1575 ulp_mem_io_set_hdr(lldi, req, wr_len, dlen, pm_addr); in ddp_ppod_write_idata()
1691 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_ddp_init() local
1703 err = cxgbi_ddp_init(cdev, lldi->vr->iscsi.start, in cxgb4i_ddp_init()
1704 lldi->vr->iscsi.start + lldi->vr->iscsi.size - 1, in cxgb4i_ddp_init()
1705 lldi->iscsi_iolen, lldi->iscsi_iolen); in cxgb4i_ddp_init()
1713 cxgb4_iscsi_init(lldi->ports[0], tagmask, pgsz_factor); in cxgb4i_ddp_init()
1726 ddp->rsvd_tag_mask, ddp->max_txsz, lldi->iscsi_iolen, in cxgb4i_ddp_init()
1727 ddp->max_rxsz, lldi->iscsi_iolen); in cxgb4i_ddp_init()
1734 static void *t4_uld_add(const struct cxgb4_lld_info *lldi) in t4_uld_add() argument
1740 cdev = cxgbi_device_register(sizeof(*lldi), lldi->nports); in t4_uld_add()
1742 pr_info("t4 device 0x%p, register failed.\n", lldi); in t4_uld_add()
1746 cdev, lldi->adapter_type, lldi->nports, in t4_uld_add()
1747 lldi->ports[0]->name, lldi->nchan, lldi->ntxq, in t4_uld_add()
1748 lldi->nrxq, lldi->wr_cred); in t4_uld_add()
1749 for (i = 0; i < lldi->nrxq; i++) in t4_uld_add()
1752 cdev, i, lldi->rxq_ids[i]); in t4_uld_add()
1754 memcpy(cxgbi_cdev_priv(cdev), lldi, sizeof(*lldi)); in t4_uld_add()
1756 cdev->pdev = lldi->pdev; in t4_uld_add()
1757 cdev->ports = lldi->ports; in t4_uld_add()
1758 cdev->nports = lldi->nports; in t4_uld_add()
1759 cdev->mtus = lldi->mtus; in t4_uld_add()
1768 cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0])) in t4_uld_add()
1771 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()
1790 pi = netdev_priv(lldi->ports[i]); in t4_uld_add()