Lines Matching refs:pmi_reg
37 u8 __iomem *pmi_reg; member
50 type = ioread8(data->pmi_reg + PMI_READ_TYPE); in pmi_irq_handler()
66 data->msg.data0 = ioread8(data->pmi_reg + PMI_READ_DATA0); in pmi_irq_handler()
67 data->msg.data1 = ioread8(data->pmi_reg + PMI_READ_DATA1); in pmi_irq_handler()
68 data->msg.data2 = ioread8(data->pmi_reg + PMI_READ_DATA2); in pmi_irq_handler()
131 data->pmi_reg = of_iomap(np, 0); in pmi_of_probe()
132 if (!data->pmi_reg) { in pmi_of_probe()
162 printk(KERN_INFO "pmi: found pmi device at addr %p.\n", data->pmi_reg); in pmi_of_probe()
167 iounmap(data->pmi_reg); in pmi_of_probe()
181 iounmap(data->pmi_reg); in pmi_of_remove()
222 iowrite8(msg.data0, data->pmi_reg + PMI_WRITE_DATA0); in pmi_send_message()
223 iowrite8(msg.data1, data->pmi_reg + PMI_WRITE_DATA1); in pmi_send_message()
224 iowrite8(msg.data2, data->pmi_reg + PMI_WRITE_DATA2); in pmi_send_message()
225 iowrite8(msg.type, data->pmi_reg + PMI_WRITE_TYPE); in pmi_send_message()