Lines Matching refs:pmi_reg
48 u8 __iomem *pmi_reg; member
61 type = ioread8(data->pmi_reg + PMI_READ_TYPE); in pmi_irq_handler()
77 data->msg.data0 = ioread8(data->pmi_reg + PMI_READ_DATA0); in pmi_irq_handler()
78 data->msg.data1 = ioread8(data->pmi_reg + PMI_READ_DATA1); in pmi_irq_handler()
79 data->msg.data2 = ioread8(data->pmi_reg + PMI_READ_DATA2); in pmi_irq_handler()
142 data->pmi_reg = of_iomap(np, 0); in pmi_of_probe()
143 if (!data->pmi_reg) { in pmi_of_probe()
173 printk(KERN_INFO "pmi: found pmi device at addr %p.\n", data->pmi_reg); in pmi_of_probe()
178 iounmap(data->pmi_reg); in pmi_of_probe()
192 iounmap(data->pmi_reg); in pmi_of_remove()
245 iowrite8(msg.data0, data->pmi_reg + PMI_WRITE_DATA0); in pmi_send_message()
246 iowrite8(msg.data1, data->pmi_reg + PMI_WRITE_DATA1); in pmi_send_message()
247 iowrite8(msg.data2, data->pmi_reg + PMI_WRITE_DATA2); in pmi_send_message()
248 iowrite8(msg.type, data->pmi_reg + PMI_WRITE_TYPE); in pmi_send_message()