Lines Matching refs:mlink

41 	struct platform_mhu_link mlink[MHU_CHANS];  member
49 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_rx_interrupt() local
52 val = readl_relaxed(mlink->rx_reg + INTR_STAT_OFS); in platform_mhu_rx_interrupt()
58 writel_relaxed(val, mlink->rx_reg + INTR_CLR_OFS); in platform_mhu_rx_interrupt()
65 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_last_tx_done() local
66 u32 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in platform_mhu_last_tx_done()
73 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_send_data() local
76 writel_relaxed(*arg, mlink->tx_reg + INTR_SET_OFS); in platform_mhu_send_data()
83 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_startup() local
87 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in platform_mhu_startup()
88 writel_relaxed(val, mlink->tx_reg + INTR_CLR_OFS); in platform_mhu_startup()
90 ret = request_irq(mlink->irq, platform_mhu_rx_interrupt, in platform_mhu_startup()
94 "Unable to acquire IRQ %d\n", mlink->irq); in platform_mhu_startup()
103 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_shutdown() local
105 free_irq(mlink->irq, chan); in platform_mhu_shutdown()
136 mhu->chan[i].con_priv = &mhu->mlink[i]; in platform_mhu_probe()
137 mhu->mlink[i].irq = platform_get_irq(pdev, i); in platform_mhu_probe()
138 if (mhu->mlink[i].irq < 0) { in platform_mhu_probe()
140 return mhu->mlink[i].irq; in platform_mhu_probe()
142 mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i]; in platform_mhu_probe()
143 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in platform_mhu_probe()