Lines Matching full:qdma

1037 	addr = (u32 *)(qp->qdma.va + qp->qdma.size) - offset;  in qm_set_qp_disable()
1885 addr = (u64 *)(qp->qdma.va + qp->qdma.size) - QM_RESET_STOP_TX_OFFSET; in hisi_qm_unset_hw_reset()
2384 if (sz != qp->qdma.size) in hisi_qm_uacce_mmap()
2393 ret = dma_mmap_coherent(dev, vma, qp->qdma.va, in hisi_qm_uacce_mmap()
2394 qp->qdma.dma, sz); in hisi_qm_uacce_mmap()
2789 struct qm_dma *qdma; in hisi_qp_memory_uninit() local
2793 qdma = &qm->qp_array[i].qdma; in hisi_qp_memory_uninit()
2794 dma_free_coherent(dev, qdma->size, qdma->va, qdma->dma); in hisi_qp_memory_uninit()
2816 qp->qdma.va = dma_alloc_coherent(dev, dma_size, &qp->qdma.dma, in hisi_qp_memory_init()
2818 if (!qp->qdma.va) in hisi_qp_memory_init()
2821 qp->sqe = qp->qdma.va; in hisi_qp_memory_init()
2822 qp->sqe_dma = qp->qdma.dma; in hisi_qp_memory_init()
2823 qp->cqe = qp->qdma.va + off; in hisi_qp_memory_init()
2824 qp->cqe_dma = qp->qdma.dma + off; in hisi_qp_memory_init()
2825 qp->qdma.size = dma_size; in hisi_qp_memory_init()
2932 if (qm->qdma.va) { in hisi_qm_memory_uninit()
2934 dma_free_coherent(dev, qm->qdma.size, in hisi_qm_memory_uninit()
2935 qm->qdma.va, qm->qdma.dma); in hisi_qm_memory_uninit()
3087 WARN_ON(!qm->qdma.va); in __hisi_qm_start()
3207 memset(qp->qdma.va, 0, qp->qdma.size); in qm_clear_queues()
3210 memset(qm->qdma.va, 0, qm->qdma.size); in qm_clear_queues()
5406 (qm)->type = ((qm)->qdma.va + (off)); \ in hisi_qm_memory_init()
5407 (qm)->type##_dma = (qm)->qdma.dma + (off); \ in hisi_qm_memory_init()
5413 qm->qdma.size = QMC_ALIGN(sizeof(struct qm_eqe) * qm->eq_depth) + in hisi_qm_memory_init()
5417 qm->qdma.va = dma_alloc_coherent(dev, qm->qdma.size, &qm->qdma.dma, in hisi_qm_memory_init()
5419 dev_dbg(dev, "allocate qm dma buf size=%zx)\n", qm->qdma.size); in hisi_qm_memory_init()
5420 if (!qm->qdma.va) { in hisi_qm_memory_init()
5443 dma_free_coherent(dev, qm->qdma.size, qm->qdma.va, qm->qdma.dma); in hisi_qm_memory_init()