Lines Matching defs:csts
1229 static bool nvme_should_reset(struct nvme_dev *dev, u32 csts)
1234 bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO);
1248 if (!(csts & NVME_CSTS_CFS) && !nssro)
1254 static void nvme_warn_reset(struct nvme_dev *dev, u32 csts)
1265 csts, pci_status);
1269 csts, result);
1271 if (csts != ~0)
1287 u32 csts = readl(dev->bar + NVME_REG_CSTS);
1299 if (nvme_should_reset(dev, csts)) {
1300 nvme_warn_reset(dev, csts);
2564 u32 csts;
2571 csts = readl(dev->bar + NVME_REG_CSTS);
2572 return (csts & NVME_CSTS_CFS) || !(csts & NVME_CSTS_RDY);