Searched refs:nvmeq (Results 1 – 1 of 1) sorted by relevance
128 static u16 nvme_read_completion_status(struct nvme_queue *nvmeq, u16 index) in nvme_read_completion_status() argument130 u64 start = (ulong)&nvmeq->cqes[index]; in nvme_read_completion_status()135 return le16_to_cpu(readw(&(nvmeq->cqes[index].status))); in nvme_read_completion_status()144 static void nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd) in nvme_submit_cmd() argument146 u16 tail = nvmeq->sq_tail; in nvme_submit_cmd()148 memcpy(&nvmeq->sq_cmds[tail], cmd, sizeof(*cmd)); in nvme_submit_cmd()149 flush_dcache_range((ulong)&nvmeq->sq_cmds[tail], in nvme_submit_cmd()150 (ulong)&nvmeq->sq_cmds[tail] + sizeof(*cmd)); in nvme_submit_cmd()152 if (++tail == nvmeq->q_depth) in nvme_submit_cmd()154 writel(tail, nvmeq->q_db); in nvme_submit_cmd()[all …]