Lines Matching refs:mlink
35 struct mhu_link mlink[MHU_CHANS]; member
43 struct mhu_link *mlink = chan->con_priv; in mhu_rx_interrupt() local
46 val = readl_relaxed(mlink->rx_reg + INTR_STAT_OFS); in mhu_rx_interrupt()
52 writel_relaxed(val, mlink->rx_reg + INTR_CLR_OFS); in mhu_rx_interrupt()
59 struct mhu_link *mlink = chan->con_priv; in mhu_last_tx_done() local
60 u32 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_last_tx_done()
67 struct mhu_link *mlink = chan->con_priv; in mhu_send_data() local
70 writel_relaxed(*arg, mlink->tx_reg + INTR_SET_OFS); in mhu_send_data()
77 struct mhu_link *mlink = chan->con_priv; in mhu_startup() local
81 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_startup()
82 writel_relaxed(val, mlink->tx_reg + INTR_CLR_OFS); in mhu_startup()
84 ret = request_irq(mlink->irq, mhu_rx_interrupt, in mhu_startup()
88 "Unable to acquire IRQ %d\n", mlink->irq); in mhu_startup()
97 struct mhu_link *mlink = chan->con_priv; in mhu_shutdown() local
99 free_irq(mlink->irq, chan); in mhu_shutdown()
131 mhu->chan[i].con_priv = &mhu->mlink[i]; in mhu_probe()
132 mhu->mlink[i].irq = adev->irq[i]; in mhu_probe()
133 mhu->mlink[i].rx_reg = mhu->base + mhu_reg[i]; in mhu_probe()
134 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in mhu_probe()