Lines Matching defs:sts
99 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY)
100 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL)
101 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR)
102 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT)
103 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts))
104 #define sbefifo_eot_set(sts) (((sts) & SBEFIFO_STS_EOT_MASK) >> SBEFIFO_STS_EOT_SHIFT)
456 u32 addr, sts = 0;
466 rc = sbefifo_regr(sbefifo, addr, &sts);
471 if (!up && sbefifo_parity_err(sts)) {
475 ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts));
483 up ? "UP" : "DOWN", jiffies_to_msecs(timeout), sts);
486 dev_vdbg(dev, "End of wait status: %08x\n", sts);
489 *status = sts;