Lines Matching refs:ctrlr
427 while (!qpair->ctrlr->resetting && LIST_FIRST(&qpair->free_tr)
783 qpair->ctrlr->enabled_io_qpairs++;
814 qpair->ctrlr->enabled_io_qpairs--;
821 static int nvme_ctrlr_reserve_sq_in_cmb(struct nvme_ctrlr *ctrlr,
828 round_offset = ctrlr->cmb_current_offset;
831 if (round_offset + length > ctrlr->cmb_size)
835 ctrlr->cmb_current_offset = round_offset + length;
843 int nvme_qpair_construct(struct nvme_ctrlr *ctrlr, struct nvme_qpair *qpair,
863 qpair->ctrlr = ctrlr;
865 if (ctrlr->opts.use_cmb_sqs) {
867 * Reserve room for the submission queue in ctrlr
870 ret = nvme_ctrlr_reserve_sq_in_cmb(ctrlr, entries,
875 qpair->cmd = ctrlr->cmb_bar_virt_addr + offset;
876 qpair->cmd_bus_addr = ctrlr->cmb_bar_phys_addr + offset;
917 doorbell_base = &ctrlr->regs->doorbell[0].sq_tdbl;
919 (2 * qpair->id + 0) * ctrlr->doorbell_stride_u32;
921 (2 * qpair->id + 1) * ctrlr->doorbell_stride_u32;
972 if (!qpair->ctrlr)
992 qpair->ctrlr = NULL;
999 if (!qpair->enabled && !qpair->ctrlr->resetting)
1010 struct nvme_ctrlr *ctrlr = qpair->ctrlr;
1014 if (ctrlr->failed) {
1077 if (ctrlr->flags & NVME_CTRLR_SGL_SUPPORTED)