Searched refs:mbox_base (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/mailbox/ |
D | mailbox-altera.c | 43 void __iomem *mbox_base; member 64 status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); in altera_mbox_full() 72 status = readl_relaxed(mbox->mbox_base + MAILBOX_STS_REG); in altera_mbox_pending() 80 mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_rx_intmask() 85 writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_rx_intmask() 92 mask = readl_relaxed(mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_tx_intmask() 97 writel_relaxed(mask, mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_tx_intmask() 107 writel_relaxed(MBOX_MAGIC, mbox->mbox_base + MAILBOX_PTR_REG); in altera_mbox_is_sender() 108 reg = readl_relaxed(mbox->mbox_base + MAILBOX_PTR_REG); in altera_mbox_is_sender() 111 writel_relaxed(0, mbox->mbox_base + MAILBOX_PTR_REG); in altera_mbox_is_sender() [all …]
|
D | rockchip-mailbox.c | 44 void __iomem *mbox_base; member 72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 73 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data() 85 mb->mbox_base + MAILBOX_B2A_INTEN); in rockchip_mbox_startup() 96 writel_relaxed(0, mb->mbox_base + MAILBOX_B2A_INTEN); in rockchip_mbox_shutdown() 111 u32 status = readl_relaxed(mb->mbox_base + MAILBOX_B2A_STATUS); in rockchip_mbox_irq() 117 mb->mbox_base + MAILBOX_B2A_STATUS); in rockchip_mbox_irq() 203 mb->mbox_base = devm_ioremap_resource(&pdev->dev, res); in rockchip_mbox_probe() 204 if (IS_ERR(mb->mbox_base)) in rockchip_mbox_probe() 205 return PTR_ERR(mb->mbox_base); in rockchip_mbox_probe()
|
D | mailbox-mpfs.c | 66 void __iomem *mbox_base; member 103 mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 109 val = readl_relaxed(mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 116 writel_relaxed(val, mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 168 readl_relaxed(mbox->mbox_base in mpfs_mbox_rx_data() 235 mbox->mbox_base = devm_platform_get_and_ioremap_resource(pdev, 2, ®s); in mpfs_mbox_probe() 236 if (IS_ERR(mbox->mbox_base)) // account for the old dt-binding w/ 2 regs in mpfs_mbox_probe() 237 mbox->mbox_base = mbox->ctrl_base + MAILBOX_REG_OFFSET; in mpfs_mbox_probe()
|
D | omap-mailbox.c | 79 void __iomem *mbox_base; member 134 return __raw_readl(mdev->mbox_base + ofs); in mbox_read_reg() 140 __raw_writel(val, mdev->mbox_base + ofs); in mbox_write_reg() 778 mdev->mbox_base = devm_platform_ioremap_resource(pdev, 0); in omap_mbox_probe() 779 if (IS_ERR(mdev->mbox_base)) in omap_mbox_probe() 780 return PTR_ERR(mdev->mbox_base); in omap_mbox_probe()
|