Searched refs:mhu (Results 1 – 3 of 3) sorted by relevance
/drivers/mailbox/ |
D | arm_mhu_db.c | 54 struct arm_mhu *mhu; member 79 void __iomem *base = chan_info->mhu->mlink[chan_info->pchan].rx_reg; in mhu_db_mbox_clear_irq() 84 static unsigned int mhu_db_mbox_irq_to_pchan_num(struct arm_mhu *mhu, int irq) in mhu_db_mbox_irq_to_pchan_num() argument 89 if (mhu->mlink[pchan].irq == irq) in mhu_db_mbox_irq_to_pchan_num() 95 mhu_db_mbox_irq_to_channel(struct arm_mhu *mhu, unsigned int pchan) in mhu_db_mbox_irq_to_channel() argument 100 struct mbox_controller *mbox = &mhu->mbox; in mhu_db_mbox_irq_to_channel() 101 void __iomem *base = mhu->mlink[pchan].rx_reg; in mhu_db_mbox_irq_to_channel() 127 struct arm_mhu *mhu = data; in mhu_db_mbox_rx_handler() local 128 unsigned int pchan = mhu_db_mbox_irq_to_pchan_num(mhu, irq); in mhu_db_mbox_rx_handler() 130 while (NULL != (chan = mhu_db_mbox_irq_to_channel(mhu, pchan))) { in mhu_db_mbox_rx_handler() [all …]
|
D | platform_mhu.c | 118 struct platform_mhu *mhu; in platform_mhu_probe() local 126 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in platform_mhu_probe() 127 if (!mhu) in platform_mhu_probe() 131 mhu->base = devm_ioremap_resource(dev, res); in platform_mhu_probe() 132 if (IS_ERR(mhu->base)) { in platform_mhu_probe() 134 return PTR_ERR(mhu->base); in platform_mhu_probe() 138 mhu->chan[i].con_priv = &mhu->mlink[i]; in platform_mhu_probe() 139 mhu->mlink[i].irq = platform_get_irq(pdev, i); in platform_mhu_probe() 140 if (mhu->mlink[i].irq < 0) { in platform_mhu_probe() 142 return mhu->mlink[i].irq; in platform_mhu_probe() [all …]
|
D | arm_mhu.c | 112 struct arm_mhu *mhu; in mhu_probe() local 120 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in mhu_probe() 121 if (!mhu) in mhu_probe() 124 mhu->base = devm_ioremap_resource(dev, &adev->res); in mhu_probe() 125 if (IS_ERR(mhu->base)) { in mhu_probe() 127 return PTR_ERR(mhu->base); in mhu_probe() 131 mhu->chan[i].con_priv = &mhu->mlink[i]; in mhu_probe() 132 mhu->mlink[i].irq = adev->irq[i]; in mhu_probe() 133 mhu->mlink[i].rx_reg = mhu->base + mhu_reg[i]; in mhu_probe() 134 mhu->mlink[i].tx_reg = mhu->mlink[i].rx_reg + TX_REG_OFFSET; in mhu_probe() [all …]
|