Searched refs:mbox_base (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/mailbox/ |
H A 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 …]
|
H A 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() 197 mb->mbox_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in rockchip_mbox_probe() 198 if (IS_ERR(mb->mbox_base)) in rockchip_mbox_probe() 199 return PTR_ERR(mb->mbox_base); in rockchip_mbox_probe()
|
H A D | mailbox-mpfs.c | 67 void __iomem *mbox_base; member 125 mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 131 val = readl_relaxed(mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 138 writel_relaxed(val, mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data() 176 readl_relaxed(mbox->mbox_base in mpfs_mbox_rx_data() 242 mbox->mbox_base = devm_platform_get_and_ioremap_resource(pdev, 2, ®s); in mpfs_mbox_probe() 243 if (IS_ERR(mbox->mbox_base)) // account for the old dt-binding w/ 2 regs in mpfs_mbox_probe() 244 mbox->mbox_base = mbox->ctrl_base + MAILBOX_REG_OFFSET; in mpfs_mbox_probe()
|
H A D | omap-mailbox.c | 75 void __iomem *mbox_base; member 96 return __raw_readl(mdev->mbox_base + ofs); in mbox_read_reg() 102 __raw_writel(val, mdev->mbox_base + ofs); in mbox_write_reg() 485 mdev->mbox_base = devm_platform_ioremap_resource(pdev, 0); in omap_mbox_probe() 486 if (IS_ERR(mdev->mbox_base)) in omap_mbox_probe() 487 return PTR_ERR(mdev->mbox_base); in omap_mbox_probe()
|