Lines Matching refs:mlink
36 struct mhu_link mlink[MHU_CHANS]; member
44 struct mhu_link *mlink = chan->con_priv; in mhu_rx_interrupt() local
47 val = readl_relaxed(mlink->rx_reg + INTR_STAT_OFS); in mhu_rx_interrupt()
53 writel_relaxed(val, mlink->rx_reg + INTR_CLR_OFS); in mhu_rx_interrupt()
60 struct mhu_link *mlink = chan->con_priv; in mhu_last_tx_done() local
61 u32 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_last_tx_done()
68 struct mhu_link *mlink = chan->con_priv; in mhu_send_data() local
71 writel_relaxed(*arg, mlink->tx_reg + INTR_SET_OFS); in mhu_send_data()
78 struct mhu_link *mlink = chan->con_priv; in mhu_startup() local
82 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in mhu_startup()
83 writel_relaxed(val, mlink->tx_reg + INTR_CLR_OFS); in mhu_startup()
85 ret = request_irq(mlink->irq, mhu_rx_interrupt, in mhu_startup()
89 "Unable to acquire IRQ %d\n", mlink->irq); in mhu_startup()
98 struct mhu_link *mlink = chan->con_priv; in mhu_shutdown() local
100 free_irq(mlink->irq, chan); in mhu_shutdown()
130 mhu->chan[i].con_priv = &mhu->mlink[i]; in mhu_probe()
131 mhu->mlink[i].irq = adev->irq[i]; in mhu_probe()
132 mhu->mlink[i].rx_reg = mhu->base + mhu_reg[i]; in mhu_probe()
133 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in mhu_probe()