Searched refs:wr_pos (Results 1 – 1 of 1) sorted by relevance
80 u32 wr_pos = (fifo_sts >> SPRD_OUTBOX_FIFO_WR_SHIFT) & in sprd_mbox_get_fifo_len() local90 if (wr_pos == rd_pos) { in sprd_mbox_get_fifo_len()95 } else if (wr_pos > rd_pos) { in sprd_mbox_get_fifo_len()96 fifo_len = wr_pos - rd_pos; in sprd_mbox_get_fifo_len()98 fifo_len = priv->outbox_fifo_depth - rd_pos + wr_pos; in sprd_mbox_get_fifo_len()