Lines Matching refs:lldi
187 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req() local
188 int t4 = is_t4(lldi->adapter_type); in send_act_open_req()
208 if (is_t4(lldi->adapter_type)) { in send_act_open_req()
274 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req6() local
275 int t4 = is_t4(lldi->adapter_type); in send_act_open_req6()
700 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in free_atid() local
703 cxgb4_free_atid(lldi->tids, csk->atid); in free_atid()
716 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_establish() local
717 struct tid_info *t = lldi->tids; in do_act_establish()
740 cxgb4_insert_tid(lldi->tids, csk, tid); in do_act_establish()
763 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
810 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in csk_act_open_retry_timer() local
813 int t4 = is_t4(lldi->adapter_type), size, size6; in csk_act_open_retry_timer()
869 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_open_rpl() local
870 struct tid_info *t = lldi->tids; in do_act_open_rpl()
890 cxgb4_remove_tid(lldi->tids, csk->port_id, GET_TID(rpl)); in do_act_open_rpl()
914 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_peer_close() local
915 struct tid_info *t = lldi->tids; in do_peer_close()
935 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_close_con_rpl() local
936 struct tid_info *t = lldi->tids; in do_close_con_rpl()
974 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_req_rss() local
975 struct tid_info *t = lldi->tids; in do_abort_req_rss()
1022 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_rpl_rss() local
1023 struct tid_info *t = lldi->tids; in do_abort_rpl_rss()
1047 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data() local
1048 struct tid_info *t = lldi->tids; in do_rx_data()
1069 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_hdr() local
1070 struct tid_info *t = lldi->tids; in do_rx_iscsi_hdr()
1124 if (is_t4(lldi->adapter_type)) in do_rx_iscsi_hdr()
1174 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data_ddp() local
1175 struct tid_info *t = lldi->tids; in do_rx_data_ddp()
1259 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_fw4_ack() local
1260 struct tid_info *t = lldi->tids; in do_fw4_ack()
1279 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_set_tcb_rpl() local
1280 struct tid_info *t = lldi->tids; in do_set_tcb_rpl()
1332 struct cxgb4_lld_info *lldi; in release_offload_resources() local
1357 lldi = cxgbi_cdev_priv(csk->cdev); in release_offload_resources()
1358 cxgb4_remove_tid(lldi->tids, 0, csk->tid); in release_offload_resources()
1369 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in init_act_open() local
1376 int t4 = is_t4(lldi->adapter_type); in init_act_open()
1402 csk->atid = cxgb4_alloc_atid(lldi->tids, csk); in init_act_open()
1410 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, 0); in init_act_open()
1444 cxgb4_best_mtu(lldi->mtus, csk->mtu, &csk->mss_idx); in init_act_open()
1448 step = lldi->ntxq / lldi->nchan; in init_act_open()
1450 step = lldi->nrxq / lldi->nchan; in init_act_open()
1451 csk->rss_qid = lldi->rxq_ids[cxgb4_port_idx(ndev) * step]; in init_act_open()
1467 csk->wr_cred = lldi->wr_cred - in init_act_open()
1550 static inline void ulp_mem_io_set_hdr(struct cxgb4_lld_info *lldi, in ulp_mem_io_set_hdr() argument
1558 if (is_t4(lldi->adapter_type)) in ulp_mem_io_set_hdr()
1579 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in ddp_ppod_write_idata() local
1599 ulp_mem_io_set_hdr(lldi, req, wr_len, dlen, pm_addr); in ddp_ppod_write_idata()
1715 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_ddp_init() local
1727 err = cxgbi_ddp_init(cdev, lldi->vr->iscsi.start, in cxgb4i_ddp_init()
1728 lldi->vr->iscsi.start + lldi->vr->iscsi.size - 1, in cxgb4i_ddp_init()
1729 lldi->iscsi_iolen, lldi->iscsi_iolen); in cxgb4i_ddp_init()
1737 cxgb4_iscsi_init(lldi->ports[0], tagmask, pgsz_factor); in cxgb4i_ddp_init()
1750 ddp->rsvd_tag_mask, ddp->max_txsz, lldi->iscsi_iolen, in cxgb4i_ddp_init()
1751 ddp->max_rxsz, lldi->iscsi_iolen); in cxgb4i_ddp_init()
1758 static void *t4_uld_add(const struct cxgb4_lld_info *lldi) in t4_uld_add() argument
1764 cdev = cxgbi_device_register(sizeof(*lldi), lldi->nports); in t4_uld_add()
1766 pr_info("t4 device 0x%p, register failed.\n", lldi); in t4_uld_add()
1770 cdev, lldi->adapter_type, lldi->nports, in t4_uld_add()
1771 lldi->ports[0]->name, lldi->nchan, lldi->ntxq, in t4_uld_add()
1772 lldi->nrxq, lldi->wr_cred); in t4_uld_add()
1773 for (i = 0; i < lldi->nrxq; i++) in t4_uld_add()
1776 cdev, i, lldi->rxq_ids[i]); in t4_uld_add()
1778 memcpy(cxgbi_cdev_priv(cdev), lldi, sizeof(*lldi)); in t4_uld_add()
1780 cdev->pdev = lldi->pdev; in t4_uld_add()
1781 cdev->ports = lldi->ports; in t4_uld_add()
1782 cdev->nports = lldi->nports; in t4_uld_add()
1783 cdev->mtus = lldi->mtus; in t4_uld_add()
1790 cdev->pfvf = FW_VIID_PFN_G(cxgb4_port_viid(lldi->ports[0])) in t4_uld_add()
1793 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()
1812 pi = netdev_priv(lldi->ports[i]); in t4_uld_add()