Lines Matching refs:rout
22 #define MBOX_READ_RESP_BUF(rout) \ argument
23 MBOX_READL(MBOX_RESP_BUF + ((rout) * sizeof(u32)))
28 static __always_inline int mbox_polling_resp(u32 rout) in mbox_polling_resp() argument
35 if (rout != rin) in mbox_polling_resp()
122 u32 rout; in __mbox_rcv_resp() local
130 rout = MBOX_READL(MBOX_ROUT); in __mbox_rcv_resp()
134 while (rin != rout && (resp_len < resp_buf_max_len)) { in __mbox_rcv_resp()
137 resp_buf[resp_len++] = MBOX_READ_RESP_BUF(rout); in __mbox_rcv_resp()
139 rout++; in __mbox_rcv_resp()
141 rout %= MBOX_RESP_BUFFER_SIZE; in __mbox_rcv_resp()
143 MBOX_WRITEL(rout, MBOX_ROUT); in __mbox_rcv_resp()
157 u32 rout; in mbox_send_cmd_common() local
200 rout = MBOX_READL(MBOX_ROUT); in mbox_send_cmd_common()
205 if (rout != rin) { in mbox_send_cmd_common()
207 resp = MBOX_READ_RESP_BUF(rout); in mbox_send_cmd_common()
208 rout++; in mbox_send_cmd_common()
210 rout %= MBOX_RESP_BUFFER_SIZE; in mbox_send_cmd_common()
212 MBOX_WRITEL(rout, MBOX_ROUT); in mbox_send_cmd_common()
231 ret = mbox_polling_resp(rout); in mbox_send_cmd_common()
237 resp = MBOX_READ_RESP_BUF(rout); in mbox_send_cmd_common()
238 rout++; in mbox_send_cmd_common()
240 rout %= MBOX_RESP_BUFFER_SIZE; in mbox_send_cmd_common()
241 MBOX_WRITEL(rout, MBOX_ROUT); in mbox_send_cmd_common()