Lines Matching refs:csts
1283 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1288 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1302 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1308 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1319 csts, pci_status); in nvme_warn_reset()
1323 csts, result); in nvme_warn_reset()
1325 if (csts != ~0) in nvme_warn_reset()
1341 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1353 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1354 nvme_warn_reset(dev, csts); in nvme_timeout()
2688 u32 csts; in nvme_dev_disable() local
2691 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_dev_disable()
2693 csts = ~0; in nvme_dev_disable()
2700 dead = !!((csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY) || in nvme_dev_disable()