Lines Matching refs:msg
33 pmi_message_t msg; member
65 data->msg.type = 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()
78 if (data->msg.type & PMI_ACK) { in pmi_irq_handler()
107 if (handler->type == data->msg.type) in pmi_notify_handlers()
108 handler->handle_pmi_message(data->msg); in pmi_notify_handlers()
206 int pmi_send_message(pmi_message_t msg) in pmi_send_message() argument
216 data->msg = msg; in pmi_send_message()
217 pr_debug("pmi_send_message: msg is %08x\n", *(u32*)&msg); in pmi_send_message()
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()