Lines Matching refs:tx_slot
1699 u32 tx_slot;
1708 tx_slot = priv->omsg_ring[mbox].tx_slot;
1711 memcpy(priv->omsg_ring[mbox].omq_base[tx_slot], buffer, len);
1718 desc[tx_slot].type_id = cpu_to_le32((DTYPE4 << 29) | rdev->destid);
1721 if (tx_slot % 4 == 0)
1722 desc[tx_slot].type_id |= cpu_to_le32(TSI721_OMD_IOF);
1724 desc[tx_slot].msg_info =
1727 desc[tx_slot].bufptr_lo =
1728 cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] &
1730 desc[tx_slot].bufptr_hi =
1731 cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] >> 32);
1736 if (++priv->omsg_ring[mbox].tx_slot == priv->omsg_ring[mbox].size) {
1737 priv->omsg_ring[mbox].tx_slot = 0;
1766 u32 tx_slot = 0xffffffff;
1813 tx_slot = (last_ptr - (u64)priv->omsg_ring[ch].omd_phys)/
1821 if (tx_slot == priv->omsg_ring[ch].size) {
1823 tx_slot = (prev_ptr -
1830 if (tx_slot >= priv->omsg_ring[ch].size)
1832 "OB_MSG tx_slot=%x > size=%x",
1833 tx_slot, priv->omsg_ring[ch].size);
1834 WARN_ON(tx_slot >= priv->omsg_ring[ch].size);
1837 ++tx_slot;
1838 if (tx_slot == priv->omsg_ring[ch].size)
1839 tx_slot = 0;
1864 tx_slot = priv->omsg_ring[ch].tx_slot;
1867 /* Synch tx_slot tracking */
1868 iowrite32(priv->omsg_ring[ch].tx_slot,
1871 priv->omsg_ring[ch].wr_count = priv->omsg_ring[ch].tx_slot;
1890 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot);
1954 priv->omsg_ring[mbox].tx_slot = 0;