• Home
  • Raw
  • Download

Lines Matching refs:va

112 	return eq->q.va + (eq->q.tail * sizeof(struct ocrdma_eqe));  in ocrdma_get_eqe()
123 (dev->mq.cq.va + (dev->mq.cq.tail * sizeof(struct ocrdma_mcqe))); in ocrdma_get_mcqe()
137 return dev->mq.sq.va + (dev->mq.sq.head * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe()
147 return dev->mq.sq.va + (dev->mqe_ctx.tag * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe_rsp()
369 dma_free_coherent(&dev->nic_info.pdev->dev, q->size, q->va, q->dma); in ocrdma_free_q()
379 q->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, q->size, in ocrdma_alloc_q()
381 if (!q->va) in ocrdma_alloc_q()
383 memset(q->va, 0, q->size); in ocrdma_alloc_q()
535 cmd->pgsz_pgcnt |= PAGES_4K_SPANNED(cq->va, cq->size); in ocrdma_mbx_mq_cq_create()
571 num_pages = PAGES_4K_SPANNED(mq->va, mq->size); in ocrdma_mbx_create_mq()
1285 struct ocrdma_rdma_stats_req *req = dev->stats_mem.va; in ocrdma_mbx_rdma_stats()
1314 status = ocrdma_nonemb_mbx_cmd(dev, mqe, dev->stats_mem.va); in ocrdma_mbx_rdma_stats()
1338 dma.va = dma_alloc_coherent(&dev->nic_info.pdev->dev, in ocrdma_mbx_get_ctrl_attribs()
1340 if (!dma.va) in ocrdma_mbx_get_ctrl_attribs()
1351 memset(dma.va, 0, dma.size); in ocrdma_mbx_get_ctrl_attribs()
1352 ocrdma_init_mch((struct ocrdma_mbx_hdr *)dma.va, in ocrdma_mbx_get_ctrl_attribs()
1357 status = ocrdma_nonemb_mbx_cmd(dev, mqe, dma.va); in ocrdma_mbx_get_ctrl_attribs()
1359 ctrl_attr_rsp = (struct ocrdma_get_ctrl_attribs_rsp *)dma.va; in ocrdma_mbx_get_ctrl_attribs()
1368 dma_free_coherent(&dev->nic_info.pdev->dev, dma.size, dma.va, dma.pa); in ocrdma_mbx_get_ctrl_attribs()
1678 dev->av_tbl.pbl.va = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, in ocrdma_mbx_create_ah_tbl()
1681 if (dev->av_tbl.pbl.va == NULL) in ocrdma_mbx_create_ah_tbl()
1684 dev->av_tbl.va = dma_alloc_coherent(&pdev->dev, dev->av_tbl.size, in ocrdma_mbx_create_ah_tbl()
1686 if (dev->av_tbl.va == NULL) in ocrdma_mbx_create_ah_tbl()
1690 memset(dev->av_tbl.va, 0, dev->av_tbl.size); in ocrdma_mbx_create_ah_tbl()
1692 pbes = (struct ocrdma_pbe *)dev->av_tbl.pbl.va; in ocrdma_mbx_create_ah_tbl()
1709 dma_free_coherent(&pdev->dev, dev->av_tbl.size, dev->av_tbl.va, in ocrdma_mbx_create_ah_tbl()
1711 dev->av_tbl.va = NULL; in ocrdma_mbx_create_ah_tbl()
1713 dma_free_coherent(&pdev->dev, PAGE_SIZE, dev->av_tbl.pbl.va, in ocrdma_mbx_create_ah_tbl()
1715 dev->av_tbl.pbl.va = NULL; in ocrdma_mbx_create_ah_tbl()
1727 if (dev->av_tbl.va == NULL) in ocrdma_mbx_delete_ah_tbl()
1736 dma_free_coherent(&pdev->dev, dev->av_tbl.size, dev->av_tbl.va, in ocrdma_mbx_delete_ah_tbl()
1738 dev->av_tbl.va = NULL; in ocrdma_mbx_delete_ah_tbl()
1739 dma_free_coherent(&pdev->dev, PAGE_SIZE, dev->av_tbl.pbl.va, in ocrdma_mbx_delete_ah_tbl()
1819 cq->va = dma_alloc_coherent(&pdev->dev, cq->len, &cq->pa, GFP_KERNEL); in ocrdma_mbx_create_cq()
1820 if (!cq->va) { in ocrdma_mbx_create_cq()
1824 memset(cq->va, 0, cq->len); in ocrdma_mbx_create_cq()
1883 dma_free_coherent(&pdev->dev, cq->len, cq->va, cq->pa); in ocrdma_mbx_create_cq()
1906 dma_free_coherent(&dev->nic_info.pdev->dev, cq->len, cq->va, cq->pa); in ocrdma_mbx_destroy_cq()
1997 cmd->va_loaddr = (u32) hwmr->va; in ocrdma_mbx_reg_mr()
1998 cmd->va_hiaddr = (u32) upper_32_bits(hwmr->va); in ocrdma_mbx_reg_mr()
2214 qp->sq.va = dma_alloc_coherent(&pdev->dev, len, &pa, GFP_KERNEL); in ocrdma_set_create_qp_sq_cmd()
2215 if (!qp->sq.va) in ocrdma_set_create_qp_sq_cmd()
2217 memset(qp->sq.va, 0, len); in ocrdma_set_create_qp_sq_cmd()
2265 qp->rq.va = dma_alloc_coherent(&pdev->dev, len, &pa, GFP_KERNEL); in ocrdma_set_create_qp_rq_cmd()
2266 if (!qp->rq.va) in ocrdma_set_create_qp_rq_cmd()
2268 memset(qp->rq.va, 0, len); in ocrdma_set_create_qp_rq_cmd()
2464 if (qp->rq.va) in ocrdma_mbx_create_qp()
2465 dma_free_coherent(&pdev->dev, qp->rq.len, qp->rq.va, qp->rq.pa); in ocrdma_mbx_create_qp()
2468 dma_free_coherent(&pdev->dev, qp->sq.len, qp->sq.va, qp->sq.pa); in ocrdma_mbx_create_qp()
2747 if (qp->sq.va) in ocrdma_mbx_destroy_qp()
2748 dma_free_coherent(&pdev->dev, qp->sq.len, qp->sq.va, qp->sq.pa); in ocrdma_mbx_destroy_qp()
2749 if (!qp->srq && qp->rq.va) in ocrdma_mbx_destroy_qp()
2750 dma_free_coherent(&pdev->dev, qp->rq.len, qp->rq.va, qp->rq.pa); in ocrdma_mbx_destroy_qp()
2785 srq->rq.va = dma_alloc_coherent(&pdev->dev, len, &pa, GFP_KERNEL); in ocrdma_mbx_create_srq()
2786 if (!srq->rq.va) { in ocrdma_mbx_create_srq()
2825 dma_free_coherent(&pdev->dev, srq->rq.len, srq->rq.va, pa); in ocrdma_mbx_create_srq()
2885 if (srq->rq.va) in ocrdma_mbx_destroy_srq()
2887 srq->rq.va, srq->rq.pa); in ocrdma_mbx_destroy_srq()
3061 av = dev->av_tbl.va; in ocrdma_alloc_av()