Searched refs:rd_pos (Results 1 – 1 of 1) sorted by relevance
81 u32 rd_pos = (fifo_sts >> SPRD_OUTBOX_FIFO_RD_SHIFT) & in sprd_mbox_get_fifo_len() local89 if (wr_pos == rd_pos) { in sprd_mbox_get_fifo_len()94 } else if (wr_pos > rd_pos) { in sprd_mbox_get_fifo_len()95 fifo_len = wr_pos - rd_pos; in sprd_mbox_get_fifo_len()97 fifo_len = priv->outbox_fifo_depth - rd_pos + wr_pos; in sprd_mbox_get_fifo_len()