Lines Matching refs:csts
1265 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) in nvme_should_reset() argument
1270 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); in nvme_should_reset()
1284 if (!(csts & NVME_CSTS_CFS) && !nssro) in nvme_should_reset()
1290 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts) in nvme_warn_reset() argument
1301 csts, pci_status); in nvme_warn_reset()
1305 csts, result); in nvme_warn_reset()
1307 if (csts != ~0) in nvme_warn_reset()
1323 u32 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_timeout() local
1339 if (nvme_should_reset(dev, csts)) { in nvme_timeout()
1340 nvme_warn_reset(dev, csts); in nvme_timeout()
2626 u32 csts; in nvme_pci_ctrl_is_dead() local
2633 csts = readl(dev->bar + NVME_REG_CSTS); in nvme_pci_ctrl_is_dead()
2634 return (csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY); in nvme_pci_ctrl_is_dead()