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