Lines Matching refs:mlink

42 	struct platform_mhu_link mlink[MHU_CHANS];  member
50 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_rx_interrupt() local
53 val = readl_relaxed(mlink->rx_reg + INTR_STAT_OFS); in platform_mhu_rx_interrupt()
59 writel_relaxed(val, mlink->rx_reg + INTR_CLR_OFS); in platform_mhu_rx_interrupt()
66 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_last_tx_done() local
67 u32 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in platform_mhu_last_tx_done()
74 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_send_data() local
77 writel_relaxed(*arg, mlink->tx_reg + INTR_SET_OFS); in platform_mhu_send_data()
84 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_startup() local
88 val = readl_relaxed(mlink->tx_reg + INTR_STAT_OFS); in platform_mhu_startup()
89 writel_relaxed(val, mlink->tx_reg + INTR_CLR_OFS); in platform_mhu_startup()
91 ret = request_irq(mlink->irq, platform_mhu_rx_interrupt, in platform_mhu_startup()
95 "Unable to acquire IRQ %d\n", mlink->irq); in platform_mhu_startup()
104 struct platform_mhu_link *mlink = chan->con_priv; in platform_mhu_shutdown() local
106 free_irq(mlink->irq, chan); in platform_mhu_shutdown()
137 mhu->chan[i].con_priv = &mhu->mlink[i]; in platform_mhu_probe()
138 mhu->mlink[i].irq = platform_get_irq(pdev, i); in platform_mhu_probe()
139 if (mhu->mlink[i].irq < 0) in platform_mhu_probe()
140 return mhu->mlink[i].irq; in platform_mhu_probe()
141 mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i]; in platform_mhu_probe()
142 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in platform_mhu_probe()