Lines Matching refs:fifo_sts
77 static u32 sprd_mbox_get_fifo_len(struct sprd_mbox_priv *priv, u32 fifo_sts) in sprd_mbox_get_fifo_len() argument
79 u32 wr_pos = (fifo_sts >> SPRD_OUTBOX_FIFO_WR_SHIFT) & in sprd_mbox_get_fifo_len()
81 u32 rd_pos = (fifo_sts >> SPRD_OUTBOX_FIFO_RD_SHIFT) & in sprd_mbox_get_fifo_len()
90 if (fifo_sts & SPRD_OUTBOX_FIFO_FULL) in sprd_mbox_get_fifo_len()
106 u32 fifo_sts, fifo_len, msg[2]; in do_outbox_isr() local
109 fifo_sts = readl(base + SPRD_MBOX_FIFO_STS); in do_outbox_isr()
111 fifo_len = sprd_mbox_get_fifo_len(priv, fifo_sts); in do_outbox_isr()
157 u32 fifo_sts, send_sts, busy, id; in sprd_mbox_inbox_isr() local
159 fifo_sts = readl(priv->inbox_base + SPRD_MBOX_FIFO_STS); in sprd_mbox_inbox_isr()
162 send_sts = (fifo_sts & SPRD_INBOX_FIFO_DELIVER_MASK) >> in sprd_mbox_inbox_isr()
179 busy = fifo_sts & SPRD_INBOX_FIFO_BUSY_MASK; in sprd_mbox_inbox_isr()
185 writel(fifo_sts & in sprd_mbox_inbox_isr()