Lines Matching refs:mhu
113 struct arm_mhu *mhu; in mhu_probe() local
121 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in mhu_probe()
122 if (!mhu) in mhu_probe()
125 mhu->base = devm_ioremap_resource(dev, &adev->res); in mhu_probe()
126 if (IS_ERR(mhu->base)) in mhu_probe()
127 return PTR_ERR(mhu->base); in mhu_probe()
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()
136 mhu->mbox.dev = dev; in mhu_probe()
137 mhu->mbox.chans = &mhu->chan[0]; in mhu_probe()
138 mhu->mbox.num_chans = MHU_CHANS; in mhu_probe()
139 mhu->mbox.ops = &mhu_ops; in mhu_probe()
140 mhu->mbox.txdone_irq = false; in mhu_probe()
141 mhu->mbox.txdone_poll = true; in mhu_probe()
142 mhu->mbox.txpoll_period = 1; in mhu_probe()
144 amba_set_drvdata(adev, mhu); in mhu_probe()
146 err = devm_mbox_controller_register(dev, &mhu->mbox); in mhu_probe()