Home
last modified time | relevance | path

Searched refs:nvmeq (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/nvme/
H A Dnvme.c144 static u16 nvme_read_completion_status(struct nvme_queue *nvmeq, u16 index) in nvme_read_completion_status() argument
152 ulong start = (ulong)&nvmeq->cqes[0]; in nvme_read_completion_status()
157 return readw(&(nvmeq->cqes[index].status)); in nvme_read_completion_status()
166 static void nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd) in nvme_submit_cmd() argument
168 u16 tail = nvmeq->sq_tail; in nvme_submit_cmd()
170 memcpy(&nvmeq->sq_cmds[tail], cmd, sizeof(*cmd)); in nvme_submit_cmd()
171 flush_dcache_range((ulong)&nvmeq->sq_cmds[tail], in nvme_submit_cmd()
172 (ulong)&nvmeq->sq_cmds[tail] + sizeof(*cmd)); in nvme_submit_cmd()
174 if (++tail == nvmeq->q_depth) in nvme_submit_cmd()
176 writel(tail, nvmeq->q_db); in nvme_submit_cmd()
[all …]
/OK3568_Linux_fs/kernel/drivers/nvme/host/
H A Dpci.c228 struct nvme_queue *nvmeq; member
286 struct nvme_queue *nvmeq, int qid) in nvme_dbbuf_init() argument
291 nvmeq->dbbuf_sq_db = &dev->dbbuf_dbs[sq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
292 nvmeq->dbbuf_cq_db = &dev->dbbuf_dbs[cq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
293 nvmeq->dbbuf_sq_ei = &dev->dbbuf_eis[sq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
294 nvmeq->dbbuf_cq_ei = &dev->dbbuf_eis[cq_idx(qid, dev->db_stride)]; in nvme_dbbuf_init()
297 static void nvme_dbbuf_free(struct nvme_queue *nvmeq) in nvme_dbbuf_free() argument
299 if (!nvmeq->qid) in nvme_dbbuf_free()
302 nvmeq->dbbuf_sq_db = NULL; in nvme_dbbuf_free()
303 nvmeq->dbbuf_cq_db = NULL; in nvme_dbbuf_free()
[all …]