Home
last modified time | relevance | path

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

/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()
/linux/drivers/nvme/target/
H A Dcore.c1412 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl()
1419 ctrl->csts = NVME_CSTS_CFS; in nvmet_start_ctrl()
1423 ctrl->csts = NVME_CSTS_RDY; in nvmet_start_ctrl()
1440 ctrl->csts &= ~NVME_CSTS_RDY; in nvmet_update_cc()
1458 ctrl->csts |= NVME_CSTS_SHST_CMPLT; in nvmet_init_cap()
1461 ctrl->csts &= ~NVME_CSTS_SHST_CMPLT; in nvmet_init_cap()
1535 if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) { in nvmet_check_ctrl_status()
1801 if (!(ctrl->csts & NVME_CSTS_CFS)) {
1802 ctrl->csts |= NVME_CSTS_CFS; in nvmet_ctrl_host_traddr()
H A Dpci-epf.c173 u32 csts; member
1820 tctrl->csts = 0; in nvmet_pci_epf_clear_ctrl_config()
1821 ctrl->csts = 0; in nvmet_pci_epf_clear_ctrl_config()
1822 nvmet_pci_epf_bar_write32(ctrl, NVME_REG_CSTS, ctrl->csts); in nvmet_pci_epf_clear_ctrl_config()
1887 ctrl->csts = NVME_CSTS_RDY; in nvmet_pci_epf_enable_ctrl()
1924 ctrl->csts &= ~NVME_CSTS_RDY; in nvmet_pci_epf_disable_ctrl()
1926 ctrl->csts |= NVME_CSTS_SHST_CMPLT; in nvmet_pci_epf_disable_ctrl()
1962 ctrl->csts &= ~NVME_CSTS_SHST_CMPLT; in nvmet_pci_epf_poll_cc_work()
1965 nvmet_pci_epf_bar_write32(ctrl, NVME_REG_CSTS, ctrl->csts); in nvmet_pci_epf_poll_cc_work()
H A Dfabrics-cmd.c65 val = ctrl->csts; in nvmet_execute_prop_get()
68 val = NVME_CAP_TIMEOUT(ctrl->csts); in nvmet_execute_prop_get()
H A Ddebugfs.c84 if (!(ctrl->csts & state)) in nvmet_ctrl_state_show()
H A Dnvmet.h269 u32 csts;
267 u32 csts; global() member
/linux/drivers/nvme/host/
H A Dpci.c1835 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1840 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1854 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1860 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1871 csts, pci_status); in nvme_warn_reset()
1875 csts, result); in nvme_warn_reset()
1877 if (csts != ~0) in nvme_warn_reset()
1894 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1920 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1921 nvme_warn_reset(dev, csts); in nvme_timeout()
3302 u32 csts; nvme_pci_ctrl_is_dead() local
[all...]
H A Dapple.c855 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_disable() local
861 if (!(csts & NVME_CSTS_RDY)) in apple_nvme_disable()
863 if (csts & NVME_CSTS_CFS) in apple_nvme_disable()
937 u32 csts = readl(anv->mmio_nvme + NVME_REG_CSTS); in apple_nvme_timeout() local
967 if (!apple_rtkit_is_crashed(anv->rtk) && !(csts & NVME_CSTS_CFS)) { in apple_nvme_timeout()
H A Dcore.c2727 u32 csts; in nvme_wait_ready()
2730 while ((ret = ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) == 0) { in nvme_wait_ready()
2731 if (csts == ~0) in nvme_wait_ready()
2733 if ((csts & mask) == val) in nvme_wait_ready()
2742 op, csts); in nvme_disable_ctrl()
4824 u32 csts; in nvme_get_fw_slot_info()
4826 if (ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &csts)) in nvme_get_fw_slot_info()
4829 if (csts == ~0) in nvme_get_fw_slot_info()
4832 return ((ctrl->ctrl_config & NVME_CC_ENABLE) && (csts & NVME_CSTS_PP)); in nvme_get_fw_slot_info()
2718 u32 csts; nvme_wait_ready() local
4806 u32 csts; nvme_ctrl_pp_status() local
/linux/drivers/dma/
H A Dtegra210-adma.c555 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()