Lines Matching refs:csts
1183 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1188 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1202 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1208 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1219 csts, pci_status); in nvme_warn_reset()
1223 csts, result); in nvme_warn_reset()
1233 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1245 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1246 nvme_warn_reset(dev, csts); in nvme_timeout()
2433 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_dev_disable() local
2440 dead = !!((csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY) || in nvme_dev_disable()