Lines Matching refs:mailboxes

1308 	if ((header.mailboxes[SBBC_INBOX].mbox_consumer ==  in sbbc_mbox_recv_msg()
1309 header.mailboxes[SBBC_INBOX].mbox_producer)) { in sbbc_mbox_recv_msg()
1545 if (header->mailboxes[SBBC_OUTBOX].mbox_producer == in mbox_has_free_space()
1546 header->mailboxes[SBBC_OUTBOX].mbox_consumer) { in mbox_has_free_space()
1550 space += header->mailboxes[SBBC_OUTBOX].mbox_len - in mbox_has_free_space()
1551 header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_has_free_space()
1553 header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_has_free_space()
1554 } else if (header->mailboxes[SBBC_OUTBOX].mbox_producer > in mbox_has_free_space()
1555 header->mailboxes[SBBC_OUTBOX].mbox_consumer) { in mbox_has_free_space()
1556 space += header->mailboxes[SBBC_OUTBOX].mbox_len - in mbox_has_free_space()
1557 header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_has_free_space()
1558 space += header->mailboxes[SBBC_OUTBOX].mbox_consumer; in mbox_has_free_space()
1563 space += header->mailboxes[SBBC_OUTBOX].mbox_consumer - in mbox_has_free_space()
1564 header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_has_free_space()
1616 mbox_offset = header->mailboxes[SBBC_OUTBOX].mbox_offset; in mbox_write()
1617 mbox_len = header->mailboxes[SBBC_OUTBOX].mbox_len; in mbox_write()
1618 mbox_producer = header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_write()
1619 mbox_consumer = header->mailboxes[SBBC_OUTBOX].mbox_consumer; in mbox_write()
1793 header->mailboxes[SBBC_OUTBOX].mbox_producer = sram_dst; in mbox_write()
1827 mbox_producer = header->mailboxes[SBBC_INBOX].mbox_producer; in mbox_read()
1828 mbox_consumer = header->mailboxes[SBBC_INBOX].mbox_consumer; in mbox_read()
1829 mbox_len = header->mailboxes[SBBC_INBOX].mbox_len; in mbox_read()
1830 mbox_offset = header->mailboxes[SBBC_INBOX].mbox_offset; in mbox_read()
1975 next_msg = header->mailboxes[SBBC_INBOX].mbox_consumer; in mbox_skip_next_msg()
1978 if (next_msg >= header->mailboxes[SBBC_INBOX].mbox_len) { in mbox_skip_next_msg()
1980 header->mailboxes[SBBC_INBOX].mbox_len) % in mbox_skip_next_msg()
1981 header->mailboxes[SBBC_INBOX].mbox_len; in mbox_skip_next_msg()
1983 header->mailboxes[SBBC_INBOX].mbox_consumer = in mbox_skip_next_msg()
2044 (&hd->mailboxes[SBBC_INBOX].mbox_producer); in mbox_read_header()
2046 (caddr_t)&header->mailboxes[SBBC_INBOX].mbox_producer, in mbox_read_header()
2051 (&hd->mailboxes[SBBC_OUTBOX].mbox_consumer); in mbox_read_header()
2053 (caddr_t)&header->mailboxes[SBBC_OUTBOX].mbox_consumer, in mbox_read_header()
2090 value = header->mailboxes[SBBC_INBOX].mbox_consumer; in mbox_update_header()
2092 (&hd->mailboxes[SBBC_INBOX].mbox_consumer); in mbox_update_header()
2094 mbox_len = header->mailboxes[SBBC_INBOX].mbox_len; in mbox_update_header()
2097 value = header->mailboxes[SBBC_OUTBOX].mbox_producer; in mbox_update_header()
2099 (&hd->mailboxes[SBBC_OUTBOX].mbox_producer); in mbox_update_header()
2100 mbox_len = header->mailboxes[SBBC_OUTBOX].mbox_len; in mbox_update_header()
2131 header->mailboxes[SBBC_INBOX].mbox_consumer = value; in mbox_update_header()
2134 header->mailboxes[SBBC_OUTBOX].mbox_producer = value; in mbox_update_header()
2151 sram_src = (uint32_t)(header->mailboxes[SBBC_INBOX].mbox_offset + in mbox_read_frag()
2152 header->mailboxes[SBBC_INBOX].mbox_consumer); in mbox_read_frag()
2157 if ((header->mailboxes[SBBC_INBOX].mbox_consumer + in mbox_read_frag()
2159 header->mailboxes[SBBC_INBOX].mbox_len) { in mbox_read_frag()
2162 bytes = header->mailboxes[SBBC_INBOX].mbox_len - in mbox_read_frag()
2163 header->mailboxes[SBBC_INBOX].mbox_consumer; in mbox_read_frag()
2170 sram_src = header->mailboxes[SBBC_INBOX].mbox_offset; in mbox_read_frag()
2171 bytes = (header->mailboxes[SBBC_INBOX].mbox_consumer + in mbox_read_frag()
2173 header->mailboxes[SBBC_INBOX].mbox_len; in mbox_read_frag()