Lines Matching refs:dbbuf_dbs
147 u32 *dbbuf_dbs; member
248 if (dev->dbbuf_dbs) { in nvme_dbbuf_dma_alloc()
253 memset(dev->dbbuf_dbs, 0, mem_size); in nvme_dbbuf_dma_alloc()
258 dev->dbbuf_dbs = dma_alloc_coherent(dev->dev, mem_size, in nvme_dbbuf_dma_alloc()
261 if (!dev->dbbuf_dbs) in nvme_dbbuf_dma_alloc()
268 dev->dbbuf_dbs, dev->dbbuf_dbs_dma_addr); in nvme_dbbuf_dma_alloc()
269 dev->dbbuf_dbs = NULL; in nvme_dbbuf_dma_alloc()
280 if (dev->dbbuf_dbs) { in nvme_dbbuf_dma_free()
282 dev->dbbuf_dbs, dev->dbbuf_dbs_dma_addr); in nvme_dbbuf_dma_free()
283 dev->dbbuf_dbs = NULL; in nvme_dbbuf_dma_free()
295 if (!dev->dbbuf_dbs || !qid) in nvme_dbbuf_init()
298 nvmeq->dbbuf_sq_db = &dev->dbbuf_dbs[sq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
299 nvmeq->dbbuf_cq_db = &dev->dbbuf_dbs[cq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
320 if (!dev->dbbuf_dbs) in nvme_dbbuf_set()