Lines Matching refs:sram_dst
1603 uint32_t sram_dst;
1630 sram_dst = mbox_offset + mbox_producer;
1689 SGSBBC_DBG_MBOX("%s: writing header:sram_dst = 0x%x\n",
1690 f, sram_dst);
1697 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst, (caddr_t)frag,
1702 sram_dst = (uint32_t)(sram_dst + frag_header_size);
1706 if (sram_dst >= (mbox_len + mbox_offset)) {
1707 sram_dst = mbox_offset;
1713 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst,
1717 sram_dst = (uint32_t)mbox_offset;
1719 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst,
1724 sram_dst += frag_header_size - space_at_end;
1739 SGSBBC_DBG_MBOX("%s: writing data:sram_dst = 0x%x, "
1741 f, sram_dst, bytes_remaining);
1747 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst, src,
1752 sram_dst = (uint32_t)(sram_dst + bytes_written);
1756 if (sram_dst >= (mbox_len + mbox_offset)) {
1757 sram_dst = mbox_offset;
1764 SGSBBC_DBG_MBOX("%s: writing the rest:sram_dst = 0x%x, "
1766 f, sram_dst, bytes_remaining);
1768 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst, src,
1772 rc = iosram_write(SBBC_MAILBOX_KEY, sram_dst, src,
1785 sram_dst = mbox_producer + bytes_written + frag_header_size;
1786 if (sram_dst >= mbox_len) {
1787 sram_dst = sram_dst % mbox_len;
1790 SGSBBC_DBG_MBOX("%s: after writing data:sram_dst = 0x%x, "
1791 "bytes_written = 0x%x\n", f, sram_dst, bytes_written);
1793 header->mailboxes[SBBC_OUTBOX].mbox_producer = sram_dst;