Home
last modified time | relevance | path

Searched refs:mhu (Results 1 – 2 of 2) sorted by relevance

/drivers/mailbox/
Dplatform_mhu.c126 struct platform_mhu *mhu; in platform_mhu_probe() local
134 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in platform_mhu_probe()
135 if (!mhu) in platform_mhu_probe()
139 mhu->base = devm_ioremap_resource(dev, res); in platform_mhu_probe()
140 if (IS_ERR(mhu->base)) { in platform_mhu_probe()
142 return PTR_ERR(mhu->base); in platform_mhu_probe()
146 mhu->chan[i].con_priv = &mhu->mlink[i]; in platform_mhu_probe()
147 mhu->mlink[i].irq = platform_get_irq(pdev, i); in platform_mhu_probe()
148 if (mhu->mlink[i].irq < 0) { in platform_mhu_probe()
150 return mhu->mlink[i].irq; in platform_mhu_probe()
[all …]
Darm_mhu.c123 struct arm_mhu *mhu; in mhu_probe() local
128 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in mhu_probe()
129 if (!mhu) in mhu_probe()
132 mhu->base = devm_ioremap_resource(dev, &adev->res); in mhu_probe()
133 if (IS_ERR(mhu->base)) { in mhu_probe()
135 return PTR_ERR(mhu->base); in mhu_probe()
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()
[all …]