Home
last modified time | relevance | path

Searched refs:csts (Results 1 – 9 of 9) sorted by relevance

/freebsd/usr.sbin/nvmfd/
H A Dcontroller.c21 uint32_t csts; member
44 c->csts &= ~NVMEM(NVME_CSTS_REG_SHST); in update_cc()
45 c->csts |= NVMEF(NVME_CSTS_REG_SHST, NVME_SHST_COMPLETE); in update_cc()
52 c->csts = 0; in update_cc()
55 c->csts |= NVMEF(NVME_CSTS_REG_RDY, 1); in update_cc()
87 rsp.value.u32.low = htole32(c->csts); in handle_property_get()
/freebsd/sys/dev/nvme/
H A Dnvme_ctrlr.c268 uint32_t csts; in nvme_ctrlr_wait_for_ready() local
271 csts = nvme_mmio_read_4(ctrlr, csts); in nvme_ctrlr_wait_for_ready()
272 if (csts == NVME_GONE) /* Hot unplug. */ in nvme_ctrlr_wait_for_ready()
274 if (NVMEV(NVME_CSTS_REG_RDY, csts) == desired_val) in nvme_ctrlr_wait_for_ready()
293 uint32_t csts; in nvme_ctrlr_disable() local
298 csts = nvme_mmio_read_4(ctrlr, csts); in nvme_ctrlr_disable()
301 rdy = NVMEV(NVME_CSTS_REG_RDY, csts); in nvme_ctrlr_disable()
338 uint32_t csts; in nvme_ctrlr_enable() local
345 csts = nvme_mmio_read_4(ctrlr, csts); in nvme_ctrlr_enable()
348 rdy = NVMEV(NVME_CSTS_REG_RDY, csts); in nvme_ctrlr_enable()
[all …]
H A Dnvme_qpair.c1051 uint32_t csts; in nvme_qpair_timeout() local
1095 csts = nvme_mmio_read_4(ctrlr, csts); in nvme_qpair_timeout()
1096 cfs = NVMEV(NVME_CSTS_REG_CFS, csts); in nvme_qpair_timeout()
1097 if (csts == NVME_GONE || cfs == 1) { in nvme_qpair_timeout()
1109 (csts == 0xffffffff) ? " and possible hot unplug" : in nvme_qpair_timeout()
H A Dnvme.h177 #define NVME_CSTS_GET_SHST(csts) \ argument
178 NVMEV(NVME_CSTS_REG_SHST, csts)
747 uint32_t csts; /* controller status */ member
/freebsd/sbin/nvmecontrol/
H A Dfabrics.c224 uint64_t cap, cc, csts; in connect_discovery_adminq() local
288 error = nvmf_read_property(qp, NVMF_PROP_CSTS, 4, &csts); in connect_discovery_adminq()
292 if (NVMEV(NVME_CSTS_REG_RDY, csts) != 0) in connect_discovery_adminq()
315 uint64_t cap, cc, csts; in connect_nvm_adminq() local
386 error = nvmf_read_property(qp, NVMF_PROP_CSTS, 4, &csts); in connect_nvm_adminq()
393 if (NVMEV(NVME_CSTS_REG_RDY, csts) != 0) in connect_nvm_adminq()
/freebsd/sys/dev/nvmf/controller/
H A Dnvmft_controller.c345 if (NVMEV(NVME_CSTS_REG_SHST, ctrlr->csts) == NVME_SHST_OCCURRING) { in nvmft_controller_shutdown()
346 ctrlr->csts &= ~NVMEM(NVME_CSTS_REG_SHST); in nvmft_controller_shutdown()
347 ctrlr->csts |= NVMEF(NVME_CSTS_REG_SHST, NVME_SHST_COMPLETE); in nvmft_controller_shutdown()
350 if (NVMEV(NVME_CSTS_REG_CFS, ctrlr->csts) == 0) { in nvmft_controller_shutdown()
351 ctrlr->csts &= ~NVMEM(NVME_CSTS_REG_RDY); in nvmft_controller_shutdown()
362 if (ctrlr->admin_closed || NVMEV(NVME_CSTS_REG_CFS, ctrlr->csts) != 0) in nvmft_controller_shutdown()
476 ctrlr->csts |= NVMEF(NVME_CSTS_REG_CFS, 1); in nvmft_controller_error()
830 ctrlr->csts &= ~NVMEM(NVME_CSTS_REG_SHST); in update_cc()
831 ctrlr->csts |= NVMEF(NVME_CSTS_REG_SHST, NVME_SHST_OCCURRING); in update_cc()
845 ctrlr->csts |= NVMEF(NVME_CSTS_REG_RDY, 1); in update_cc()
[all …]
H A Dnvmft_var.h62 uint32_t csts; member
/freebsd/usr.sbin/bhyve/
H A Dpci_nvme.c1053 sc->regs.csts = 0; in pci_nvme_reset_locked()
1080 sc->regs.csts |= NVME_CSTS_CFS; in pci_nvme_init_controller()
1089 sc->regs.csts |= NVME_CSTS_CFS; in pci_nvme_init_controller()
1100 sc->regs.csts |= NVME_CSTS_CFS; in pci_nvme_init_controller()
1109 sc->regs.csts |= NVME_CSTS_CFS; in pci_nvme_init_controller()
2303 NVME_CC_GET_EN(sc->regs.cc) && !(NVME_CSTS_GET_RDY(sc->regs.csts))) in pci_nvme_release_ioreq()
2304 sc->regs.csts |= NVME_CSTS_RDY; in pci_nvme_release_ioreq()
2957 if ((sc->regs.csts & NVME_CSTS_RDY) == 0) { in pci_nvme_write_bar_0()
3021 sc->regs.csts &= ~NVMEM(NVME_CSTS_REG_SHST); in pci_nvme_write_bar_0()
3022 sc->regs.csts |= NVMEF(NVME_CSTS_REG_SHST, in pci_nvme_write_bar_0()
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dpci_gvt-d-opregion.h65 uint32_t csts; ///< Offset 0x104 Status member