Lines Matching refs:mbox_base
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()
124 readl_relaxed(mbox->mbox_base + MAILBOX_PTR_REG); in altera_mbox_rx_data()
126 readl_relaxed(mbox->mbox_base + MAILBOX_CMD_REG); in altera_mbox_rx_data()
227 writel_relaxed(udata[MBOX_PTR], mbox->mbox_base + MAILBOX_PTR_REG); in altera_mbox_send_data()
228 writel_relaxed(udata[MBOX_CMD], mbox->mbox_base + MAILBOX_CMD_REG); in altera_mbox_send_data()
270 writel_relaxed(~0, mbox->mbox_base + MAILBOX_INTMASK_REG); in altera_mbox_shutdown()
301 mbox->mbox_base = devm_platform_ioremap_resource(pdev, 0); in altera_mbox_probe()
302 if (IS_ERR(mbox->mbox_base)) in altera_mbox_probe()
303 return PTR_ERR(mbox->mbox_base); in altera_mbox_probe()