Lines Matching refs:sts
97 #define sbefifo_empty(sts) ((sts) & SBEFIFO_STS_EMPTY) argument
98 #define sbefifo_full(sts) ((sts) & SBEFIFO_STS_FULL) argument
99 #define sbefifo_parity_err(sts) ((sts) & SBEFIFO_STS_PARITY_ERR) argument
100 #define sbefifo_populated(sts) (((sts) & SBEFIFO_STS_ECNT_MASK) >> SBEFIFO_STS_ECNT_SHIFT) argument
101 #define sbefifo_vacant(sts) (SBEFIFO_FIFO_DEPTH - sbefifo_populated(sts)) argument
102 #define sbefifo_eot_set(sts) (((sts) & SBEFIFO_STS_EOT_MASK) >> SBEFIFO_STS_EOT_SHIFT) argument
441 u32 addr, sts = 0; in sbefifo_wait() local
451 rc = sbefifo_regr(sbefifo, addr, &sts); in sbefifo_wait()
456 if (!up && sbefifo_parity_err(sts)) { in sbefifo_wait()
460 ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts)); in sbefifo_wait()
465 dev_err(dev, "%s FIFO Timeout ! status=%08x\n", up ? "UP" : "DOWN", sts); in sbefifo_wait()
468 dev_vdbg(dev, "End of wait status: %08x\n", sts); in sbefifo_wait()
470 *status = sts; in sbefifo_wait()