Lines Matching refs:tx_slot

1672 	u32 tx_slot;  in tsi721_add_outb_message()  local
1681 tx_slot = priv->omsg_ring[mbox].tx_slot; in tsi721_add_outb_message()
1684 memcpy(priv->omsg_ring[mbox].omq_base[tx_slot], buffer, len); in tsi721_add_outb_message()
1691 desc[tx_slot].type_id = cpu_to_le32((DTYPE4 << 29) | rdev->destid); in tsi721_add_outb_message()
1694 if (tx_slot % 4 == 0) in tsi721_add_outb_message()
1695 desc[tx_slot].type_id |= cpu_to_le32(TSI721_OMD_IOF); in tsi721_add_outb_message()
1697 desc[tx_slot].msg_info = in tsi721_add_outb_message()
1700 desc[tx_slot].bufptr_lo = in tsi721_add_outb_message()
1701 cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] & in tsi721_add_outb_message()
1703 desc[tx_slot].bufptr_hi = in tsi721_add_outb_message()
1704 cpu_to_le32((u64)priv->omsg_ring[mbox].omq_phys[tx_slot] >> 32); in tsi721_add_outb_message()
1709 if (++priv->omsg_ring[mbox].tx_slot == priv->omsg_ring[mbox].size) { in tsi721_add_outb_message()
1710 priv->omsg_ring[mbox].tx_slot = 0; in tsi721_add_outb_message()
1739 u32 tx_slot = 0xffffffff; in tsi721_omsg_handler() local
1786 tx_slot = (last_ptr - (u64)priv->omsg_ring[ch].omd_phys)/ in tsi721_omsg_handler()
1794 if (tx_slot == priv->omsg_ring[ch].size) { in tsi721_omsg_handler()
1796 tx_slot = (prev_ptr - in tsi721_omsg_handler()
1803 if (tx_slot >= priv->omsg_ring[ch].size) in tsi721_omsg_handler()
1806 tx_slot, priv->omsg_ring[ch].size); in tsi721_omsg_handler()
1807 WARN_ON(tx_slot >= priv->omsg_ring[ch].size); in tsi721_omsg_handler()
1810 ++tx_slot; in tsi721_omsg_handler()
1811 if (tx_slot == priv->omsg_ring[ch].size) in tsi721_omsg_handler()
1812 tx_slot = 0; in tsi721_omsg_handler()
1837 tx_slot = priv->omsg_ring[ch].tx_slot; in tsi721_omsg_handler()
1841 iowrite32(priv->omsg_ring[ch].tx_slot, in tsi721_omsg_handler()
1844 priv->omsg_ring[ch].wr_count = priv->omsg_ring[ch].tx_slot; in tsi721_omsg_handler()
1863 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); in tsi721_omsg_handler()
1925 priv->omsg_ring[mbox].tx_slot = 0; in tsi721_open_outb_mbox()