Lines Matching refs:lldi
102 le.poll_sge_ts = cxgb4_read_sge_timestamp(wq->rdev->lldi.ports[0]); in c4iw_log_wr_stats()
130 #define ts2ns(ts) div64_u64((ts) * dev->rdev.lldi.cclk_ps, 1000) in wr_log_show()
383 ret = cxgb4_read_tpte(stagd->devp->rdev.lldi.ports[0], (u32)id<<8, in dump_stag()
386 dev_err(&stagd->devp->rdev.lldi.pdev->dev, in dump_stag()
796 if (rdev->lldi.udb_density != rdev->lldi.ucq_density) { in c4iw_rdev_open()
798 pci_name(rdev->lldi.pdev), rdev->lldi.udb_density, in c4iw_rdev_open()
799 rdev->lldi.ucq_density); in c4iw_rdev_open()
802 if (rdev->lldi.vr->qp.start != rdev->lldi.vr->cq.start || in c4iw_rdev_open()
803 rdev->lldi.vr->qp.size != rdev->lldi.vr->cq.size) { in c4iw_rdev_open()
805 pci_name(rdev->lldi.pdev), rdev->lldi.vr->qp.start, in c4iw_rdev_open()
806 rdev->lldi.vr->qp.size, rdev->lldi.vr->cq.size, in c4iw_rdev_open()
807 rdev->lldi.vr->cq.size); in c4iw_rdev_open()
812 if (rdev->lldi.sge_host_page_size > PAGE_SIZE) { in c4iw_rdev_open()
814 pci_name(rdev->lldi.pdev), in c4iw_rdev_open()
815 rdev->lldi.sge_host_page_size); in c4iw_rdev_open()
819 factor = PAGE_SIZE / rdev->lldi.sge_host_page_size; in c4iw_rdev_open()
820 rdev->qpmask = (rdev->lldi.udb_density * factor) - 1; in c4iw_rdev_open()
821 rdev->cqmask = (rdev->lldi.ucq_density * factor) - 1; in c4iw_rdev_open()
824 pci_name(rdev->lldi.pdev), rdev->lldi.vr->stag.start, in c4iw_rdev_open()
825 rdev->lldi.vr->stag.size, c4iw_num_stags(rdev), in c4iw_rdev_open()
826 rdev->lldi.vr->pbl.start, in c4iw_rdev_open()
827 rdev->lldi.vr->pbl.size, rdev->lldi.vr->rq.start, in c4iw_rdev_open()
828 rdev->lldi.vr->rq.size, in c4iw_rdev_open()
829 rdev->lldi.vr->qp.start, in c4iw_rdev_open()
830 rdev->lldi.vr->qp.size, in c4iw_rdev_open()
831 rdev->lldi.vr->cq.start, in c4iw_rdev_open()
832 rdev->lldi.vr->cq.size, in c4iw_rdev_open()
833 rdev->lldi.vr->srq.size); in c4iw_rdev_open()
835 &rdev->lldi.pdev->resource[2], in c4iw_rdev_open()
836 rdev->lldi.db_reg, rdev->lldi.gts_reg, in c4iw_rdev_open()
843 rdev->stats.stag.total = rdev->lldi.vr->stag.size; in c4iw_rdev_open()
844 rdev->stats.pbl.total = rdev->lldi.vr->pbl.size; in c4iw_rdev_open()
845 rdev->stats.rqt.total = rdev->lldi.vr->rq.size; in c4iw_rdev_open()
846 rdev->stats.srqt.total = rdev->lldi.vr->srq.size; in c4iw_rdev_open()
847 rdev->stats.ocqp.total = rdev->lldi.vr->ocq.size; in c4iw_rdev_open()
848 rdev->stats.qid.total = rdev->lldi.vr->qp.size; in c4iw_rdev_open()
851 T4_MAX_NUM_PD, rdev->lldi.vr->srq.size); in c4iw_rdev_open()
877 rdev->status_page->qp_start = rdev->lldi.vr->qp.start; in c4iw_rdev_open()
878 rdev->status_page->qp_size = rdev->lldi.vr->qp.size; in c4iw_rdev_open()
879 rdev->status_page->cq_start = rdev->lldi.vr->cq.start; in c4iw_rdev_open()
880 rdev->status_page->cq_size = rdev->lldi.vr->cq.size; in c4iw_rdev_open()
881 rdev->status_page->write_cmpl_supported = rdev->lldi.write_cmpl_support; in c4iw_rdev_open()
987 devp->rdev.lldi = *infop; in c4iw_alloc()
991 devp->rdev.lldi.sge_ingpadboundary, in c4iw_alloc()
992 devp->rdev.lldi.sge_egrstatuspagesize); in c4iw_alloc()
995 devp->rdev.lldi.sge_egrstatuspagesize / 64; in c4iw_alloc()
1008 devp->rdev.lldi.sge_egrstatuspagesize; in c4iw_alloc()
1015 devp->rdev.bar2_pa = pci_resource_start(devp->rdev.lldi.pdev, 2); in c4iw_alloc()
1016 if (!is_t4(devp->rdev.lldi.adapter_type)) { in c4iw_alloc()
1018 pci_resource_len(devp->rdev.lldi.pdev, 2)); in c4iw_alloc()
1026 pci_resource_start(devp->rdev.lldi.pdev, 2) + in c4iw_alloc()
1027 pci_resource_len(devp->rdev.lldi.pdev, 2) - in c4iw_alloc()
1028 roundup_pow_of_two(devp->rdev.lldi.vr->ocq.size); in c4iw_alloc()
1030 devp->rdev.lldi.vr->ocq.size); in c4iw_alloc()
1039 devp->rdev.lldi.vr->ocq.start, devp->rdev.lldi.vr->ocq.size, in c4iw_alloc()
1059 devp->avail_ird = devp->rdev.lldi.max_ird_adapter; in c4iw_alloc()
1063 pci_name(devp->rdev.lldi.pdev), in c4iw_alloc()
1087 ctx->lldi = *infop; in c4iw_uld_add()
1090 pci_name(ctx->lldi.pdev), in c4iw_uld_add()
1091 ctx->lldi.nchan, ctx->lldi.nrxq, in c4iw_uld_add()
1092 ctx->lldi.ntxq, ctx->lldi.nports); in c4iw_uld_add()
1098 for (i = 0; i < ctx->lldi.nrxq; i++) in c4iw_uld_add()
1099 pr_debug("rxqid[%u] %u\n", i, ctx->lldi.rxq_ids[i]); in c4iw_uld_add()
1151 skb = copy_gl_to_skb_pkt(gl , rsp, dev->rdev.lldi.sge_pktshift); in recv_rx_pkt()
1194 pci_name(ctx->lldi.pdev), gl->va, in c4iw_uld_rx_handler()
1226 pr_info("%s: Up\n", pci_name(ctx->lldi.pdev)); in c4iw_uld_state_change()
1228 ctx->dev = c4iw_alloc(&ctx->lldi); in c4iw_uld_state_change()
1231 pci_name(ctx->lldi.pdev), in c4iw_uld_state_change()
1242 pr_info("%s: Down\n", pci_name(ctx->lldi.pdev)); in c4iw_uld_state_change()
1248 pr_info("%s: Fatal Error\n", pci_name(ctx->lldi.pdev)); in c4iw_uld_state_change()
1260 pr_info("%s: Detach\n", pci_name(ctx->lldi.pdev)); in c4iw_uld_state_change()
1332 if (cxgb4_dbfifo_count(ctx->dev->rdev.lldi.ports[0], 1) in resume_queues()
1333 < (ctx->dev->rdev.lldi.dbfifo_int_thresh << in resume_queues()
1378 ret = cxgb4_sync_txq_pidx(qp->rhp->rdev.lldi.ports[0], in recover_lost_dbs()
1384 pci_name(ctx->lldi.pdev), qp->wq.sq.qid); in recover_lost_dbs()
1391 ret = cxgb4_sync_txq_pidx(qp->rhp->rdev.lldi.ports[0], in recover_lost_dbs()
1398 pci_name(ctx->lldi.pdev), qp->wq.rq.qid); in recover_lost_dbs()
1408 while (cxgb4_dbfifo_count(qp->rhp->rdev.lldi.ports[0], 1) > 0) { in recover_lost_dbs()
1428 ret = cxgb4_flush_eq_cache(ctx->dev->rdev.lldi.ports[0]); in recover_queues()
1431 pci_name(ctx->lldi.pdev)); in recover_queues()
1493 pci_name(ctx->lldi.pdev), control); in c4iw_uld_control()