Lines Matching defs:rdev
37 static void destroy_cq(struct c4iw_rdev *rdev, struct t4_cq *cq,
61 c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, 0, __func__);
64 dma_free_coherent(&(rdev->lldi.pdev->dev),
67 c4iw_put_cqid(rdev, cq->cqid, uctx);
70 static int create_cq(struct c4iw_rdev *rdev, struct t4_cq *cq,
77 int user = (uctx != &rdev->uctx);
85 cq->cqid = c4iw_get_cqid(rdev, uctx);
98 cq->queue = dma_alloc_coherent(&rdev->lldi.pdev->dev, cq->memsize,
142 rdev->lldi.ciq_ids[cq->vector]));
155 ret = c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, 0, __func__);
160 cq->gts = rdev->lldi.gts_reg;
161 cq->rdev = rdev;
163 cq->bar2_va = c4iw_bar2_addrs(rdev, cq->cqid, CXGB4_BAR2_QTYPE_INGRESS,
168 pci_name(rdev->lldi.pdev), cq->cqid);
174 dma_free_coherent(&rdev->lldi.pdev->dev, cq->memsize, cq->queue,
179 c4iw_put_cqid(rdev, cq->cqid, uctx);
990 destroy_cq(&chp->rhp->rdev, &chp->cq,
991 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx,
1020 if (vector >= rhp->rdev.lldi.nciq)
1056 hwentries = min(entries * 2, rhp->rdev.hw_queue.t4_max_iq_size);
1078 ret = create_cq(&rhp->rdev, &chp->cq,
1079 ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
1105 uresp.qid_mask = rhp->rdev.cqmask;
1149 destroy_cq(&chp->rhp->rdev, &chp->cq,
1150 ucontext ? &ucontext->uctx : &rhp->rdev.uctx,