Lines Matching full:depth
94 sq->depth = cmdq->max_outstandings * sq->wqebb_cnt; in erdma_cmdq_sq_init()
96 sq->qbuf = dma_alloc_coherent(&dev->pdev->dev, sq->depth << SQEBB_SHIFT, in erdma_cmdq_sq_init()
111 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_DEPTH_REG, sq->depth); in erdma_cmdq_sq_init()
117 dma_free_coherent(&dev->pdev->dev, sq->depth << SQEBB_SHIFT, in erdma_cmdq_sq_init()
128 cq->depth = cmdq->sq.depth; in erdma_cmdq_cq_init()
129 cq->qbuf = dma_alloc_coherent(&dev->pdev->dev, cq->depth << CQE_SHIFT, in erdma_cmdq_cq_init()
151 dma_free_coherent(&dev->pdev->dev, cq->depth << CQE_SHIFT, cq->qbuf, in erdma_cmdq_cq_init()
173 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_EQ_DEPTH_REG, eq->depth); in erdma_cmdq_eq_init()
210 dma_free_coherent(&dev->pdev->dev, cmdq->cq.depth << CQE_SHIFT, in erdma_cmdq_init()
216 dma_free_coherent(&dev->pdev->dev, cmdq->sq.depth << SQEBB_SHIFT, in erdma_cmdq_init()
239 dma_free_coherent(&dev->pdev->dev, cmdq->sq.depth << SQEBB_SHIFT, in erdma_cmdq_destroy()
244 dma_free_coherent(&dev->pdev->dev, cmdq->cq.depth << CQE_SHIFT, in erdma_cmdq_destroy()
253 cmdq->cq.depth, CQE_SHIFT); in get_next_valid_cmdq_cqe()
257 return owner ^ !!(cmdq->cq.ci & cmdq->cq.depth) ? cqe : NULL; in get_next_valid_cmdq_cqe()
270 wqe = get_queue_entry(cmdq->sq.qbuf, cmdq->sq.pi, cmdq->sq.depth, in push_cmdq_sqe()
302 sqe = get_queue_entry(cmdq->sq.qbuf, sqe_idx, cmdq->sq.depth, in erdma_poll_single_cmd_completion()