Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_dev.c52 u32 csts = readl(fdev->bar + NVME_REG_CSTS); in fun_wait_ready() local
54 if (csts == ~0) { in fun_wait_ready()
55 dev_err(fdev->dev, "CSTS register read %#x\n", csts); in fun_wait_ready()
59 if ((csts & NVME_CSTS_RDY) == bit) in fun_wait_ready()
79 u32 csts = readl(fdev->bar + NVME_REG_CSTS); in fun_check_csts_rdy() local
80 u32 actual_rdy = csts & NVME_CSTS_RDY; in fun_check_csts_rdy()
82 if (csts == ~0) { in fun_check_csts_rdy()
83 dev_err(fdev->dev, "CSTS register read %#x\n", csts); in fun_check_csts_rdy()
332 u32 csts = readl(fdev->bar + NVME_REG_CSTS); in fun_adminq_stopped() local
334 return (csts & (NVME_CSTS_CFS | NVME_CSTS_RDY)) != NVME_CSTS_RDY; in fun_adminq_stopped()
/openbmc/linux/drivers/gpu/drm/gma500/
H A Dopregion.c59 u32 csts; /* notification status */ member
247 acpi->csts = 0; in psb_intel_opregion_video_event()
268 opregion->acpi->csts = 0; in psb_intel_opregion_init()
/openbmc/qemu/include/block/
H A Dnvme.h13 uint32_t csts; member
42 NVME_REG_CSTS = offsetof(NvmeBar, csts),
222 #define NVME_CSTS_RDY(csts) ((csts >> CSTS_RDY_SHIFT) & CSTS_RDY_MASK) argument
223 #define NVME_CSTS_CFS(csts) ((csts >> CSTS_CFS_SHIFT) & CSTS_CFS_MASK) argument
224 #define NVME_CSTS_SHST(csts) ((csts >> CSTS_SHST_SHIFT) & CSTS_SHST_MASK) argument
225 #define NVME_CSTS_NSSRO(csts) ((csts >> CSTS_NSSRO_SHIFT) & CSTS_NSSRO_MASK) argument
/openbmc/linux/drivers/nvme/target/
H A Dcore.c1176 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl()
1183 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl()
1187 ctrl->csts = NVME_CSTS_RDY; in nvmet_start_ctrl()
1204 ctrl->csts &= ~NVME_CSTS_RDY; in nvmet_clear_ctrl()
1222 ctrl->csts |= NVME_CSTS_SHST_CMPLT; in nvmet_update_cc()
1225 ctrl->csts &= ~NVME_CSTS_SHST_CMPLT; in nvmet_update_cc()
1297 if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) { in nvmet_check_ctrl_status()
1523 if (!(ctrl->csts & NVME_CSTS_CFS)) { in nvmet_ctrl_fatal_error()
1524 ctrl->csts |= NVME_CSTS_CFS; in nvmet_ctrl_fatal_error()
H A Dfabrics-cmd.c65 val = ctrl->csts; in nvmet_execute_prop_get()
H A Ddiscovery.c359 if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) { in nvmet_parse_discovery_cmd()
H A Dnvmet.h190 u32 csts; member
/openbmc/linux/drivers/nvme/host/
H A Dpci.c1227 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1232 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1246 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1252 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1263 csts, pci_status); in nvme_warn_reset()
1267 csts, result); in nvme_warn_reset()
1269 if (csts != ~0) in nvme_warn_reset()
1285 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1300 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1301 nvme_warn_reset(dev, csts); in nvme_timeout()
[all …]
H A Dapple.c800 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_disable() local
806 if (!(csts & NVME_CSTS_RDY)) in apple_nvme_disable()
808 if (csts & NVME_CSTS_CFS) in apple_nvme_disable()
882 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_timeout() local
912 if (!apple_rtkit_is_crashed(anv->rtk) && !(csts & NVME_CSTS_CFS)) { in apple_nvme_timeout()
H A Dcore.c2179 u32 csts; in nvme_wait_ready() local
2182 while ((ret = ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) == 0) { in nvme_wait_ready()
2183 if (csts == ~0) in nvme_wait_ready()
2185 if ((csts & mask) == val) in nvme_wait_ready()
2194 op, csts); in nvme_wait_ready()
4101 u32 csts; in nvme_ctrl_pp_status() local
4103 if (ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) in nvme_ctrl_pp_status()
4106 if (csts == ~0) in nvme_ctrl_pp_status()
4109 return ((ctrl->ctrl_config & NVME_CC_ENABLE) && (csts & NVME_CSTS_PP)); in nvme_ctrl_pp_status()
/openbmc/linux/drivers/dma/
H A Dtegra210-adma.c442 u32 csts; in tegra_adma_is_paused() local
444 csts = tdma_ch_read(tdc, ADMA_CH_STATUS); in tegra_adma_is_paused()
445 csts &= ADMA_CH_STATUS_XFER_PAUSED; in tegra_adma_is_paused()
447 return csts ? true : false; in tegra_adma_is_paused()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_opregion.c82 u32 csts; /* notification status */ member
668 acpi->csts = 0; in intel_opregion_video_event()
1176 opregion->acpi->csts = 0; in intel_opregion_resume_display()
/openbmc/u-boot/drivers/nvme/
H A Dnvme.c61 if ((readl(&dev->bar->csts) & NVME_CSTS_RDY) == bit) in nvme_wait_ready()
777 if (readl(&ndev->bar->csts) == -1) { in nvme_probe()
H A Dnvme.h569 __u32 csts; /* Controller Status */ member
/openbmc/qemu/hw/nvme/
H A Dctrl.c1526 stl_le_p(&n->bar.csts, NVME_CSTS_FAILED); in nvme_post_cqes()
7413 stl_le_p(&n->bar.csts, NVME_CSTS_FAILED); in nvme_process_sq()
7559 stl_le_p(&n->bar.csts, sctrl->scs ? 0 : NVME_CSTS_FAILED); in nvme_ctrl_reset()
7561 stl_le_p(&n->bar.csts, 0); in nvme_ctrl_reset()
7705 uint32_t csts = ldl_le_p(&n->bar.csts); in nvme_write_bar() local
7758 csts &= ~(CSTS_SHST_MASK << CSTS_SHST_SHIFT); in nvme_write_bar()
7759 csts |= NVME_CSTS_SHST_COMPLETE; in nvme_write_bar()
7762 csts &= ~(CSTS_SHST_MASK << CSTS_SHST_SHIFT); in nvme_write_bar()
7768 csts = NVME_CSTS_FAILED; in nvme_write_bar()
7771 csts = NVME_CSTS_READY; in nvme_write_bar()
[all …]
/openbmc/qemu/block/
H A Dnvme.c817 while (NVME_CSTS_RDY(le32_to_cpu(regs->csts))) { in nvme_init()
858 while (!NVME_CSTS_RDY(le32_to_cpu(regs->csts))) { in nvme_init()