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