Searched refs:MBOX_CMD_BUFFER_SIZE (Results 1 – 2 of 2) sorted by relevance
54 cin = MBOX_READL(MBOX_CIN) % MBOX_CMD_BUFFER_SIZE; in mbox_fill_cmd_circular_buff()55 cout = MBOX_READL(MBOX_COUT) % MBOX_CMD_BUFFER_SIZE; in mbox_fill_cmd_circular_buff()60 if (((cin + 1) % MBOX_CMD_BUFFER_SIZE) == cout || in mbox_fill_cmd_circular_buff()61 ((MBOX_CMD_BUFFER_SIZE - cin + cout - 1) % in mbox_fill_cmd_circular_buff()62 MBOX_CMD_BUFFER_SIZE) < len) in mbox_fill_cmd_circular_buff()68 cin %= MBOX_CMD_BUFFER_SIZE; in mbox_fill_cmd_circular_buff()74 cin %= MBOX_CMD_BUFFER_SIZE; in mbox_fill_cmd_circular_buff()92 if ((len + 1) > MBOX_CMD_BUFFER_SIZE) in mbox_prepare_cmd_only()
18 #define MBOX_CMD_BUFFER_SIZE 32 macro