omsg_ring 1679 drivers/rapidio/devices/tsi721.c spin_lock_irqsave(&priv->omsg_ring[mbox].lock, flags); omsg_ring 1681 drivers/rapidio/devices/tsi721.c tx_slot = priv->omsg_ring[mbox].tx_slot; omsg_ring 1684 drivers/rapidio/devices/tsi721.c memcpy(priv->omsg_ring[mbox].omq_base[tx_slot], buffer, len); omsg_ring 1690 drivers/rapidio/devices/tsi721.c desc = priv->omsg_ring[mbox].omd_base; omsg_ring 1701 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] & omsg_ring 1704 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] >> 32); omsg_ring 1706 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count++; omsg_ring 1709 drivers/rapidio/devices/tsi721.c if (++priv->omsg_ring[mbox].tx_slot == priv->omsg_ring[mbox].size) { omsg_ring 1710 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].tx_slot = 0; omsg_ring 1712 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count++; omsg_ring 1718 drivers/rapidio/devices/tsi721.c iowrite32(priv->omsg_ring[mbox].wr_count, omsg_ring 1722 drivers/rapidio/devices/tsi721.c spin_unlock_irqrestore(&priv->omsg_ring[mbox].lock, flags); omsg_ring 1742 drivers/rapidio/devices/tsi721.c spin_lock(&priv->omsg_ring[ch].lock); omsg_ring 1760 drivers/rapidio/devices/tsi721.c srd_ptr = priv->omsg_ring[ch].sts_rdptr; omsg_ring 1761 drivers/rapidio/devices/tsi721.c sts_ptr = priv->omsg_ring[ch].sts_base; omsg_ring 1771 drivers/rapidio/devices/tsi721.c srd_ptr %= priv->omsg_ring[ch].sts_size; omsg_ring 1778 drivers/rapidio/devices/tsi721.c priv->omsg_ring[ch].sts_rdptr = srd_ptr; omsg_ring 1786 drivers/rapidio/devices/tsi721.c tx_slot = (last_ptr - (u64)priv->omsg_ring[ch].omd_phys)/ omsg_ring 1794 drivers/rapidio/devices/tsi721.c if (tx_slot == priv->omsg_ring[ch].size) { omsg_ring 1797 drivers/rapidio/devices/tsi721.c (u64)priv->omsg_ring[ch].omd_phys)/ omsg_ring 1803 drivers/rapidio/devices/tsi721.c if (tx_slot >= priv->omsg_ring[ch].size) omsg_ring 1806 drivers/rapidio/devices/tsi721.c tx_slot, priv->omsg_ring[ch].size); omsg_ring 1807 drivers/rapidio/devices/tsi721.c WARN_ON(tx_slot >= priv->omsg_ring[ch].size); omsg_ring 1811 drivers/rapidio/devices/tsi721.c if (tx_slot == priv->omsg_ring[ch].size) omsg_ring 1814 drivers/rapidio/devices/tsi721.c dev_id = priv->omsg_ring[ch].dev_id; omsg_ring 1836 drivers/rapidio/devices/tsi721.c dev_id = priv->omsg_ring[ch].dev_id; omsg_ring 1837 drivers/rapidio/devices/tsi721.c tx_slot = priv->omsg_ring[ch].tx_slot; omsg_ring 1841 drivers/rapidio/devices/tsi721.c iowrite32(priv->omsg_ring[ch].tx_slot, omsg_ring 1844 drivers/rapidio/devices/tsi721.c priv->omsg_ring[ch].wr_count = priv->omsg_ring[ch].tx_slot; omsg_ring 1845 drivers/rapidio/devices/tsi721.c priv->omsg_ring[ch].sts_rdptr = 0; omsg_ring 1860 drivers/rapidio/devices/tsi721.c spin_unlock(&priv->omsg_ring[ch].lock); omsg_ring 1892 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].dev_id = dev_id; omsg_ring 1893 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].size = entries; omsg_ring 1894 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_rdptr = 0; omsg_ring 1895 drivers/rapidio/devices/tsi721.c spin_lock_init(&priv->omsg_ring[mbox].lock); omsg_ring 1900 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = omsg_ring 1903 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].omq_phys[i], omsg_ring 1905 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i] == NULL) { omsg_ring 1914 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = dma_alloc_coherent( omsg_ring 1917 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].omd_phys, GFP_KERNEL); omsg_ring 1918 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omd_base == NULL) { omsg_ring 1925 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].tx_slot = 0; omsg_ring 1928 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size = roundup_pow_of_two(entries + 1); omsg_ring 1929 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = dma_alloc_coherent(&priv->pdev->dev, omsg_ring 1930 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), omsg_ring 1931 drivers/rapidio/devices/tsi721.c &priv->omsg_ring[mbox].sts_phys, omsg_ring 1933 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].sts_base == NULL) { omsg_ring 1945 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].omd_phys >> 32), omsg_ring 1947 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].omd_phys & omsg_ring 1952 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].sts_phys >> 32), omsg_ring 1954 drivers/rapidio/devices/tsi721.c iowrite32(((u64)priv->omsg_ring[mbox].sts_phys & omsg_ring 1957 drivers/rapidio/devices/tsi721.c iowrite32(TSI721_DMAC_DSSZ_SIZE(priv->omsg_ring[mbox].sts_size), omsg_ring 1994 drivers/rapidio/devices/tsi721.c bd_ptr = priv->omsg_ring[mbox].omd_base; omsg_ring 1998 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omd_phys & omsg_ring 2001 drivers/rapidio/devices/tsi721.c cpu_to_le32((u64)priv->omsg_ring[mbox].omd_phys >> 32); omsg_ring 2002 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].wr_count = 0; omsg_ring 2018 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), omsg_ring 2019 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base, omsg_ring 2020 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_phys); omsg_ring 2022 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = NULL; omsg_ring 2028 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base, omsg_ring 2029 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_phys); omsg_ring 2031 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = NULL; omsg_ring 2034 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->omsg_ring[mbox].size; i++) { omsg_ring 2035 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i]) { omsg_ring 2038 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i], omsg_ring 2039 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_phys[i]); omsg_ring 2041 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = NULL; omsg_ring 2078 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_size * sizeof(struct tsi721_dma_sts), omsg_ring 2079 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base, omsg_ring 2080 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_phys); omsg_ring 2082 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].sts_base = NULL; omsg_ring 2086 drivers/rapidio/devices/tsi721.c (priv->omsg_ring[mbox].size + 1) * omsg_ring 2088 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base, omsg_ring 2089 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_phys); omsg_ring 2091 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omd_base = NULL; omsg_ring 2094 drivers/rapidio/devices/tsi721.c for (i = 0; i < priv->omsg_ring[mbox].size; i++) { omsg_ring 2095 drivers/rapidio/devices/tsi721.c if (priv->omsg_ring[mbox].omq_base[i]) { omsg_ring 2098 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i], omsg_ring 2099 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_phys[i]); omsg_ring 2101 drivers/rapidio/devices/tsi721.c priv->omsg_ring[mbox].omq_base[i] = NULL; omsg_ring 901 drivers/rapidio/devices/tsi721.h struct tsi721_omsg_ring omsg_ring[TSI721_OMSG_CHNUM];