| /linux/drivers/net/ethernet/fungible/funcore/ |
| H A D | fun_dev.c | 52 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()
|
| /linux/drivers/nvme/target/ |
| H A D | core.c | 1421 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl() 1428 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl() 1432 ctrl->csts = NVME_CSTS_RDY; in nvmet_start_ctrl() 1449 ctrl->csts &= ~NVME_CSTS_RDY; in nvmet_update_cc() 1467 ctrl->csts |= NVME_CSTS_SHST_CMPLT; in nvmet_init_cap() 1470 ctrl->csts &= ~NVME_CSTS_SHST_CMPLT; in nvmet_init_cap() 1544 if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) { in nvmet_check_ctrl_status() 1825 if (!(ctrl->csts & NVME_CSTS_CFS)) { in nvmet_find_get_subsys() 1826 ctrl->csts |= NVME_CSTS_CFS; in nvmet_find_get_subsys()
|
| H A D | pci-epf.c | 173 u32 csts; member 1842 tctrl->csts = 0; in nvmet_pci_epf_enable_ctrl() 1843 ctrl->csts = 0; in nvmet_pci_epf_enable_ctrl() 1844 nvmet_pci_epf_bar_write32(ctrl, NVME_REG_CSTS, ctrl->csts); in nvmet_pci_epf_enable_ctrl() 1909 ctrl->csts = NVME_CSTS_RDY; in nvmet_pci_epf_disable_ctrl() 1946 ctrl->csts &= ~NVME_CSTS_RDY; in nvmet_pci_epf_poll_cc_work() 1948 ctrl->csts |= NVME_CSTS_SHST_CMPLT; in nvmet_pci_epf_poll_cc_work() 1984 ctrl->csts &= ~NVME_CSTS_SHST_CMPLT; in nvmet_pci_epf_init_bar() 1987 nvmet_pci_epf_bar_write32(ctrl, NVME_REG_CSTS, ctrl->csts); in nvmet_pci_epf_init_bar()
|
| H A D | fabrics-cmd.c | 69 val = ctrl->csts; in nvmet_execute_prop_get() 72 val = NVME_CAP_TIMEOUT(ctrl->csts); in nvmet_execute_prop_get()
|
| H A D | debugfs.c | 84 if (!(ctrl->csts & state)) in nvmet_ctrl_state_show()
|
| H A D | nvmet.h | 272 u32 csts; 269 u32 csts; global() member
|
| /linux/drivers/nvme/host/ |
| H A D | pci.c | 2055 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_suspend_queue() 2060 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_suspend_queue() 2074 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_suspend_io_queues() 2080 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) 2091 csts, pci_status); in nvme_reap_pending_cqes() 2095 csts, result); in nvme_cmb_qdepth() 2097 if (csts != ~0) in nvme_cmb_qdepth() 2114 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_cmb_qdepth() 2140 if (nvme_should_reset(dev, csts)) { in nvme_alloc_sq_cmds() 2141 nvme_warn_reset(dev, csts); in nvme_alloc_sq_cmds() 1835 nvme_should_reset(struct nvme_dev * dev,u32 csts) nvme_should_reset() argument 1860 nvme_warn_reset(struct nvme_dev * dev,u32 csts) nvme_warn_reset() argument 1894 u32 csts = readl(dev->bar + NVME_REG_CSTS); nvme_timeout() local 3302 u32 csts; nvme_pci_ctrl_is_dead() local [all...] |
| H A D | apple.c | 860 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_disable() 866 if (!(csts & NVME_CSTS_RDY)) in apple_nvme_disable() 868 if (csts & NVME_CSTS_CFS) in apple_nvme_disable() 942 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_timeout() 972 if (!apple_rtkit_is_crashed(anv->rtk) && !(csts & NVME_CSTS_CFS)) { in apple_nvme_timeout() 855 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); apple_nvme_disable() local 937 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); apple_nvme_timeout() local
|
| H A D | core.c | 2746 u32 csts; in nvme_wait_ready() 2749 while ((ret = ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) == 0) { 2750 if (csts == ~0) in nvme_disable_ctrl() 2752 if ((csts & mask) == val) in nvme_disable_ctrl() 2761 op, csts); in nvme_disable_ctrl() 4861 u32 csts; in nvme_get_fw_slot_info() 4863 if (ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) in nvme_get_fw_slot_info() 4866 if (csts == ~0) in nvme_fw_act_work() 4869 return ((ctrl->ctrl_config & NVME_CC_ENABLE) && (csts & NVME_CSTS_PP)); in nvme_fw_act_work() 2727 u32 csts; nvme_wait_ready() local 4824 u32 csts; nvme_ctrl_pp_status() local
|
| /linux/drivers/dma/ |
| H A D | tegra210-adma.c | 555 u32 csts; in tegra_adma_is_paused() local 557 csts = tdma_ch_read(tdc, ADMA_CH_STATUS); in tegra_adma_is_paused() 558 csts &= ADMA_CH_STATUS_XFER_PAUSED; in tegra_adma_is_paused() 560 return csts ? true : false; in tegra_adma_is_paused()
|