Lines Matching refs:lldi
210 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req() local
230 if (is_t4(lldi->adapter_type)) { in send_act_open_req()
253 } else if (is_t5(lldi->adapter_type)) { in send_act_open_req()
319 CHELSIO_CHIP_VERSION(lldi->adapter_type), csk, in send_act_open_req()
329 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req6() local
349 if (is_t4(lldi->adapter_type)) { in send_act_open_req6()
374 } else if (is_t5(lldi->adapter_type)) { in send_act_open_req6()
430 CHELSIO_CHIP_VERSION(lldi->adapter_type), csk, csk->state, in send_act_open_req6()
717 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_make_tx_data_wr() local
725 u32 force = is_t5(lldi->adapter_type) ? TX_FORCE_V(!submode) : in cxgb4i_make_tx_data_wr()
881 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in free_atid() local
884 cxgb4_free_atid(lldi->tids, csk->atid); in free_atid()
897 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_establish() local
898 struct tid_info *t = lldi->tids; in do_act_establish()
921 cxgb4_insert_tid(lldi->tids, csk, tid, csk->csk_family); in do_act_establish()
944 csk->advmss = lldi->mtus[TCPOPT_MSS_G(tcp_opt)] - 40; in do_act_establish()
991 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in csk_act_open_retry_timer() local
994 int t4 = is_t4(lldi->adapter_type), size, size6; in csk_act_open_retry_timer()
1050 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_act_open_rpl() local
1051 struct tid_info *t = lldi->tids; in do_act_open_rpl()
1071 cxgb4_remove_tid(lldi->tids, csk->port_id, GET_TID(rpl), in do_act_open_rpl()
1096 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_peer_close() local
1097 struct tid_info *t = lldi->tids; in do_peer_close()
1117 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_close_con_rpl() local
1118 struct tid_info *t = lldi->tids; in do_close_con_rpl()
1156 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_req_rss() local
1157 struct tid_info *t = lldi->tids; in do_abort_req_rss()
1204 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_abort_rpl_rss() local
1205 struct tid_info *t = lldi->tids; in do_abort_rpl_rss()
1228 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data() local
1229 struct tid_info *t = lldi->tids; in do_rx_data()
1250 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_hdr() local
1251 struct tid_info *t = lldi->tids; in do_rx_iscsi_hdr()
1293 if ((CHELSIO_CHIP_VERSION(lldi->adapter_type) <= CHELSIO_T5) && in do_rx_iscsi_hdr()
1306 if (is_t4(lldi->adapter_type)) in do_rx_iscsi_hdr()
1353 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_data() local
1354 struct tid_info *t = lldi->tids; in do_rx_iscsi_data()
1451 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_data_ddp() local
1452 struct tid_info *t = lldi->tids; in do_rx_data_ddp()
1515 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_rx_iscsi_cmp() local
1516 struct tid_info *t = lldi->tids; in do_rx_iscsi_cmp()
1607 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_fw4_ack() local
1608 struct tid_info *t = lldi->tids; in do_fw4_ack()
1627 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in do_set_tcb_rpl() local
1628 struct tid_info *t = lldi->tids; in do_set_tcb_rpl()
1686 struct cxgb4_lld_info *lldi; in release_offload_resources() local
1712 lldi = cxgbi_cdev_priv(csk->cdev); in release_offload_resources()
1713 cxgb4_remove_tid(lldi->tids, 0, csk->tid, in release_offload_resources()
1768 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in init_act_open() local
1806 csk->atid = cxgb4_alloc_atid(lldi->tids, csk); in init_act_open()
1819 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, priority); in init_act_open()
1821 csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, 0); in init_act_open()
1834 if (is_t4(lldi->adapter_type)) { in init_act_open()
1837 } else if (is_t5(lldi->adapter_type)) { in init_act_open()
1859 cxgb4_best_mtu(lldi->mtus, csk->mtu, &csk->mss_idx); in init_act_open()
1862 step = lldi->ntxq / lldi->nchan; in init_act_open()
1864 step = lldi->nrxq / lldi->nchan; in init_act_open()
1867 csk->rss_qid = lldi->rxq_ids[rxq_idx]; in init_act_open()
1883 csk->wr_cred = lldi->wr_cred - in init_act_open()
1974 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in ulp_mem_io_set_hdr() local
1981 ULP_MEMIO_ORDER_V(is_t4(lldi->adapter_type)) | in ulp_mem_io_set_hdr()
1982 T5_ULP_MEMIO_IMM_V(!is_t4(lldi->adapter_type))); in ulp_mem_io_set_hdr()
2153 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(cdev); in cxgb4i_ddp_init() local
2158 if (!lldi->vr->iscsi.size) { in cxgb4i_ddp_init()
2167 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgb4i_ddp_init()
2169 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgb4i_ddp_init()
2172 lldi->vr->ppod_edram.start, lldi->vr->ppod_edram.size); in cxgb4i_ddp_init()
2174 err = cxgbi_ddp_ppm_setup(lldi->iscsi_ppm, cdev, &tformat, in cxgb4i_ddp_init()
2175 lldi->vr->iscsi.size, lldi->iscsi_llimit, in cxgb4i_ddp_init()
2176 lldi->vr->iscsi.start, 2, in cxgb4i_ddp_init()
2177 lldi->vr->ppod_edram.start, in cxgb4i_ddp_init()
2178 lldi->vr->ppod_edram.size); in cxgb4i_ddp_init()
2187 lldi->iscsi_iolen - ISCSI_PDU_NONPAYLOAD_LEN); in cxgb4i_ddp_init()
2189 lldi->iscsi_iolen - ISCSI_PDU_NONPAYLOAD_LEN); in cxgb4i_ddp_init()
2210 static void *t4_uld_add(const struct cxgb4_lld_info *lldi) in t4_uld_add() argument
2221 cdev = cxgbi_device_register(sizeof(*lldi), lldi->nports); in t4_uld_add()
2223 pr_info("t4 device 0x%p, register failed.\n", lldi); in t4_uld_add()
2227 cdev, lldi->adapter_type, lldi->nports, in t4_uld_add()
2228 lldi->ports[0]->name, lldi->nchan, lldi->ntxq, in t4_uld_add()
2229 lldi->nrxq, lldi->wr_cred); in t4_uld_add()
2230 for (i = 0; i < lldi->nrxq; i++) in t4_uld_add()
2233 cdev, i, lldi->rxq_ids[i]); in t4_uld_add()
2235 memcpy(cxgbi_cdev_priv(cdev), lldi, sizeof(*lldi)); in t4_uld_add()
2237 cdev->pdev = lldi->pdev; in t4_uld_add()
2238 cdev->ports = lldi->ports; in t4_uld_add()
2239 cdev->nports = lldi->nports; in t4_uld_add()
2240 cdev->mtus = lldi->mtus; in t4_uld_add()
2242 cdev->rx_credit_thres = (CHELSIO_CHIP_VERSION(lldi->adapter_type) <= in t4_uld_add()
2249 cdev->pfvf = FW_PFVF_CMD_PFN_V(lldi->pf); in t4_uld_add()
2251 cdev, lldi->ports[0]->name, cdev->pfvf); in t4_uld_add()
2278 if (!is_t4(lldi->adapter_type) && in t4_uld_add()
2279 (lldi->fw_vers >= 0x10d2b00) && in t4_uld_add()
2296 pi = netdev_priv(lldi->ports[i]); in t4_uld_add()