Lines Matching refs:csts
1217 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1222 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1236 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1242 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1253 csts, pci_status); in nvme_warn_reset()
1257 csts, result); in nvme_warn_reset()
1267 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1279 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1280 nvme_warn_reset(dev, csts); in nvme_timeout()
2482 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_dev_disable() local
2489 dead = !!((csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY) || in nvme_dev_disable()