Lines Matching refs:csts
1197 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1203 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1217 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1223 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1234 csts, pci_status); in nvme_warn_reset()
1238 csts, result); in nvme_warn_reset()
1248 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1260 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1261 nvme_warn_reset(dev, csts); in nvme_timeout()
2421 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_dev_disable() local
2428 dead = !!((csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY) || in nvme_dev_disable()