Lines Matching refs:mlink
46 struct mhu_link mlink[MHU_CHANS]; member
54 struct mhu_link *mlink = chan->con_priv; in mhu_rx_interrupt() local
57 val = readl_relaxed(mlink->rx_reg + INTR_STAT_OFS); in mhu_rx_interrupt()
63 writel_relaxed(val, mlink->rx_reg + INTR_CLR_OFS); in mhu_rx_interrupt()
70 struct mhu_link *mlink = chan->con_priv; in mhu_last_tx_done() local
71 u32 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_last_tx_done()
78 struct mhu_link *mlink = chan->con_priv; in mhu_send_data() local
81 writel_relaxed(*arg, mlink->tx_reg + INTR_SET_OFS); in mhu_send_data()
88 struct mhu_link *mlink = chan->con_priv; in mhu_startup() local
92 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_startup()
93 writel_relaxed(val, mlink->tx_reg + INTR_CLR_OFS); in mhu_startup()
95 ret = request_irq(mlink->irq, mhu_rx_interrupt, in mhu_startup()
99 "Unable to acquire IRQ %d\n", mlink->irq); in mhu_startup()
108 struct mhu_link *mlink = chan->con_priv; in mhu_shutdown() local
110 free_irq(mlink->irq, chan); in mhu_shutdown()
139 mhu->chan[i].con_priv = &mhu->mlink[i]; in mhu_probe()
140 mhu->mlink[i].irq = adev->irq[i]; in mhu_probe()
141 mhu->mlink[i].rx_reg = mhu->base + mhu_reg[i]; in mhu_probe()
142 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in mhu_probe()