Lines Matching refs:lldi

211 	struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev);  in send_act_open_req()  local
231 if (is_t4(lldi->adapter_type)) { in send_act_open_req()
254 } else if (is_t5(lldi->adapter_type)) { in send_act_open_req()
320 CHELSIO_CHIP_VERSION(lldi->adapter_type), csk, in send_act_open_req()
330 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req6() local
350 if (is_t4(lldi->adapter_type)) { in send_act_open_req6()
375 } else if (is_t5(lldi->adapter_type)) { in send_act_open_req6()
431 CHELSIO_CHIP_VERSION(lldi->adapter_type), csk, csk->state, in send_act_open_req6()
718 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_make_tx_data_wr() local
726 u32 force = is_t5(lldi->adapter_type) ? TX_FORCE_V(!submode) : in cxgb4i_make_tx_data_wr()
882 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in free_atid() local
885 cxgb4_free_atid(lldi->tids, csk->atid); in free_atid()
898 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_establish() local
899 struct tid_info *t = lldi->tids; in do_act_establish()
922 cxgb4_insert_tid(lldi->tids, csk, tid, csk->csk_family); in do_act_establish()
945 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
992 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in csk_act_open_retry_timer() local
995 int t4 = is_t4(lldi->adapter_type), size, size6; in csk_act_open_retry_timer()
1051 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_open_rpl() local
1052 struct tid_info *t = lldi->tids; in do_act_open_rpl()
1072 cxgb4_remove_tid(lldi->tids, csk->port_id, GET_TID(rpl), in do_act_open_rpl()
1097 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_peer_close() local
1098 struct tid_info *t = lldi->tids; in do_peer_close()
1118 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_close_con_rpl() local
1119 struct tid_info *t = lldi->tids; in do_close_con_rpl()
1157 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_req_rss() local
1158 struct tid_info *t = lldi->tids; in do_abort_req_rss()
1205 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_rpl_rss() local
1206 struct tid_info *t = lldi->tids; in do_abort_rpl_rss()
1229 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data() local
1230 struct tid_info *t = lldi->tids; in do_rx_data()
1251 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_hdr() local
1252 struct tid_info *t = lldi->tids; in do_rx_iscsi_hdr()
1294 if ((CHELSIO_CHIP_VERSION(lldi->adapter_type) <= CHELSIO_T5) && in do_rx_iscsi_hdr()
1307 if (is_t4(lldi->adapter_type)) in do_rx_iscsi_hdr()
1354 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_data() local
1355 struct tid_info *t = lldi->tids; in do_rx_iscsi_data()
1452 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data_ddp() local
1453 struct tid_info *t = lldi->tids; in do_rx_data_ddp()
1516 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_cmp() local
1517 struct tid_info *t = lldi->tids; in do_rx_iscsi_cmp()
1608 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_fw4_ack() local
1609 struct tid_info *t = lldi->tids; in do_fw4_ack()
1628 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_set_tcb_rpl() local
1629 struct tid_info *t = lldi->tids; in do_set_tcb_rpl()
1687 struct cxgb4_lld_info *lldi; in release_offload_resources() local
1713 lldi = cxgbi_cdev_priv(csk->cdev); in release_offload_resources()
1714 cxgb4_remove_tid(lldi->tids, 0, csk->tid, in release_offload_resources()
1769 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in init_act_open() local
1807 csk->atid = cxgb4_alloc_atid(lldi->tids, csk); in init_act_open()
1820 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, priority); in init_act_open()
1822 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, 0); in init_act_open()
1835 if (is_t4(lldi->adapter_type)) { in init_act_open()
1838 } else if (is_t5(lldi->adapter_type)) { in init_act_open()
1860 cxgb4_best_mtu(lldi->mtus, csk->mtu, &csk->mss_idx); in init_act_open()
1863 step = lldi->ntxq / lldi->nchan; in init_act_open()
1865 step = lldi->nrxq / lldi->nchan; in init_act_open()
1868 csk->rss_qid = lldi->rxq_ids[rxq_idx]; in init_act_open()
1884 csk->wr_cred = lldi->wr_cred - in init_act_open()
1975 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in ulp_mem_io_set_hdr() local
1982 ULP_MEMIO_ORDER_V(is_t4(lldi->adapter_type)) | in ulp_mem_io_set_hdr()
1983 T5_ULP_MEMIO_IMM_V(!is_t4(lldi->adapter_type))); in ulp_mem_io_set_hdr()
2154 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_ddp_init() local
2159 if (!lldi->vr->iscsi.size) { in cxgb4i_ddp_init()
2168 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgb4i_ddp_init()
2170 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgb4i_ddp_init()
2173 lldi->vr->ppod_edram.start, lldi->vr->ppod_edram.size); in cxgb4i_ddp_init()
2175 err = cxgbi_ddp_ppm_setup(lldi->iscsi_ppm, cdev, &tformat, in cxgb4i_ddp_init()
2176 lldi->vr->iscsi.size, lldi->iscsi_llimit, in cxgb4i_ddp_init()
2177 lldi->vr->iscsi.start, 2, in cxgb4i_ddp_init()
2178 lldi->vr->ppod_edram.start, in cxgb4i_ddp_init()
2179 lldi->vr->ppod_edram.size); in cxgb4i_ddp_init()
2188 lldi->iscsi_iolen - ISCSI_PDU_NONPAYLOAD_LEN); in cxgb4i_ddp_init()
2190 lldi->iscsi_iolen - ISCSI_PDU_NONPAYLOAD_LEN); in cxgb4i_ddp_init()
2211 static void *t4_uld_add(const struct cxgb4_lld_info *lldi) in t4_uld_add() argument
2222 cdev = cxgbi_device_register(sizeof(*lldi), lldi->nports); in t4_uld_add()
2224 pr_info("t4 device 0x%p, register failed.\n", lldi); in t4_uld_add()
2228 cdev, lldi->adapter_type, lldi->nports, in t4_uld_add()
2229 lldi->ports[0]->name, lldi->nchan, lldi->ntxq, in t4_uld_add()
2230 lldi->nrxq, lldi->wr_cred); in t4_uld_add()
2231 for (i = 0; i < lldi->nrxq; i++) in t4_uld_add()
2234 cdev, i, lldi->rxq_ids[i]); in t4_uld_add()
2236 memcpy(cxgbi_cdev_priv(cdev), lldi, sizeof(*lldi)); in t4_uld_add()
2238 cdev->pdev = lldi->pdev; in t4_uld_add()
2239 cdev->ports = lldi->ports; in t4_uld_add()
2240 cdev->nports = lldi->nports; in t4_uld_add()
2241 cdev->mtus = lldi->mtus; in t4_uld_add()
2243 cdev->rx_credit_thres = (CHELSIO_CHIP_VERSION(lldi->adapter_type) <= in t4_uld_add()
2250 cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf); in t4_uld_add()
2252 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()
2279 if (!is_t4(lldi->adapter_type) && in t4_uld_add()
2280 (lldi->fw_vers >= 0x10d2b00) && in t4_uld_add()
2297 pi = netdev_priv(lldi->ports[i]); in t4_uld_add()