Lines Matching refs:lld

597 static void uld_init(struct adapter *adap, struct cxgb4_lld_info *lld)  in uld_init()  argument
601 lld->pdev = adap->pdev; in uld_init()
602 lld->pf = adap->pf; in uld_init()
603 lld->l2t = adap->l2t; in uld_init()
604 lld->tids = &adap->tids; in uld_init()
605 lld->ports = adap->port; in uld_init()
606 lld->vr = &adap->vres; in uld_init()
607 lld->mtus = adap->params.mtus; in uld_init()
608 lld->nchan = adap->params.nports; in uld_init()
609 lld->nports = adap->params.nports; in uld_init()
610 lld->wr_cred = adap->params.ofldq_wr_cred; in uld_init()
611 lld->crypto = adap->params.crypto; in uld_init()
612 lld->iscsi_iolen = MAXRXDATA_G(t4_read_reg(adap, TP_PARA_REG2_A)); in uld_init()
613 lld->iscsi_tagmask = t4_read_reg(adap, ULP_RX_ISCSI_TAGMASK_A); in uld_init()
614 lld->iscsi_pgsz_order = t4_read_reg(adap, ULP_RX_ISCSI_PSZ_A); in uld_init()
615 lld->iscsi_llimit = t4_read_reg(adap, ULP_RX_ISCSI_LLIMIT_A); in uld_init()
616 lld->iscsi_ppm = &adap->iscsi_ppm; in uld_init()
617 lld->adapter_type = adap->params.chip; in uld_init()
618 lld->cclk_ps = 1000000000 / adap->params.vpd.cclk; in uld_init()
619 lld->udb_density = 1 << adap->params.sge.eq_qpp; in uld_init()
620 lld->ucq_density = 1 << adap->params.sge.iq_qpp; in uld_init()
621 lld->sge_host_page_size = 1 << (adap->params.sge.hps + 10); in uld_init()
622 lld->filt_mode = adap->params.tp.vlan_pri_map; in uld_init()
625 lld->tx_modq[i] = i; in uld_init()
626 lld->gts_reg = adap->regs + MYPF_REG(SGE_PF_GTS_A); in uld_init()
627 lld->db_reg = adap->regs + MYPF_REG(SGE_PF_KDOORBELL_A); in uld_init()
628 lld->fw_vers = adap->params.fw_vers; in uld_init()
629 lld->dbfifo_int_thresh = dbfifo_int_thresh; in uld_init()
630 lld->sge_ingpadboundary = adap->sge.fl_align; in uld_init()
631 lld->sge_egrstatuspagesize = adap->sge.stat_len; in uld_init()
632 lld->sge_pktshift = adap->sge.pktshift; in uld_init()
633 lld->ulp_crypto = adap->params.crypto; in uld_init()
634 lld->enable_fw_ofld_conn = adap->flags & CXGB4_FW_OFLD_CONN; in uld_init()
635 lld->max_ordird_qp = adap->params.max_ordird_qp; in uld_init()
636 lld->max_ird_adapter = adap->params.max_ird_adapter; in uld_init()
637 lld->ulptx_memwrite_dsgl = adap->params.ulptx_memwrite_dsgl; in uld_init()
638 lld->nodeid = dev_to_node(adap->pdev_dev); in uld_init()
639 lld->fr_nsmr_tpte_wr_support = adap->params.fr_nsmr_tpte_wr_support; in uld_init()
640 lld->write_w_imm_support = adap->params.write_w_imm_support; in uld_init()
641 lld->write_cmpl_support = adap->params.write_cmpl_support; in uld_init()