summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 11:45:07 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 11:45:07 +0000
commit3e6cb06177edaa5d509c4f5289cad21d79701c87 (patch)
tree1fc038971fffaa8b8eab729ee63cec0274f112ec /sys
parent8516b1f22f0063f415e91f9e6848e1cf5b4f559f (diff)
rename idx to id in nvme_q_alloc
make it a u_int16_t like the hw while here.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/nvme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 78333b814aa..de043b49f99 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.16 2016/04/13 11:42:04 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.17 2016/04/13 11:45:06 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -64,7 +64,7 @@ void nvme_empty_done(struct nvme_softc *, struct nvme_ccb *,
struct nvme_cqe *);
struct nvme_queue *
- nvme_q_alloc(struct nvme_softc *, u_int, u_int, u_int);
+ nvme_q_alloc(struct nvme_softc *, u_int16_t, u_int, u_int);
void nvme_q_submit(struct nvme_softc *,
struct nvme_queue *, struct nvme_ccb *,
void (*)(struct nvme_softc *, struct nvme_ccb *, void *));
@@ -585,7 +585,7 @@ nvme_ccbs_free(struct nvme_softc *sc)
}
struct nvme_queue *
-nvme_q_alloc(struct nvme_softc *sc, u_int idx, u_int entries, u_int dstrd)
+nvme_q_alloc(struct nvme_softc *sc, u_int16_t id, u_int entries, u_int dstrd)
{
struct nvme_queue *q;
@@ -608,8 +608,8 @@ nvme_q_alloc(struct nvme_softc *sc, u_int idx, u_int entries, u_int dstrd)
mtx_init(&q->q_sq_mtx, IPL_BIO);
mtx_init(&q->q_cq_mtx, IPL_BIO);
- q->q_sqtdbl = NVME_SQTDBL(idx, dstrd);
- q->q_cqhdbl = NVME_CQHDBL(idx, dstrd);
+ q->q_sqtdbl = NVME_SQTDBL(id, dstrd);
+ q->q_cqhdbl = NVME_CQHDBL(id, dstrd);
q->q_entries = entries;
q->q_sq_tail = 0;
q->q_cq_head = 0;