Lines Matching refs:qid
52 u16 qid; member
245 int qid, int depth) in nvme_alloc_queue() argument
266 nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride]; in nvme_alloc_queue()
268 nvmeq->qid = qid; in nvme_alloc_queue()
270 dev->queues[qid] = nvmeq; in nvme_alloc_queue()
288 c.delete_queue.qid = cpu_to_le16(id); in nvme_delete_queue()
340 static void nvme_init_queue(struct nvme_queue *nvmeq, u16 qid) in nvme_init_queue() argument
347 nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride]; in nvme_init_queue()
419 static int nvme_alloc_cq(struct nvme_dev *dev, u16 qid, in nvme_alloc_cq() argument
428 c.create_cq.cqid = cpu_to_le16(qid); in nvme_alloc_cq()
436 static int nvme_alloc_sq(struct nvme_dev *dev, u16 qid, in nvme_alloc_sq() argument
445 c.create_sq.sqid = cpu_to_le16(qid); in nvme_alloc_sq()
448 c.create_sq.cqid = cpu_to_le16(qid); in nvme_alloc_sq()
541 static int nvme_create_queue(struct nvme_queue *nvmeq, int qid) in nvme_create_queue() argument
546 nvmeq->cq_vector = qid - 1; in nvme_create_queue()
547 result = nvme_alloc_cq(dev, qid, nvmeq); in nvme_create_queue()
551 result = nvme_alloc_sq(dev, qid, nvmeq); in nvme_create_queue()
555 nvme_init_queue(nvmeq, qid); in nvme_create_queue()
560 nvme_delete_sq(dev, qid); in nvme_create_queue()
562 nvme_delete_cq(dev, qid); in nvme_create_queue()