Home
last modified time | relevance | path

Searched refs:msg_node (Results 1 – 3 of 3) sorted by relevance

/arch/powerpc/platforms/powernv/
Dopal-memory-errors.c58 struct OpalMsgNode *msg_node; in handle_memory_error() local
62 msg_node = list_entry(opal_memory_err_list.next, in handle_memory_error()
64 list_del(&msg_node->list); in handle_memory_error()
68 &msg_node->msg.params[0]; in handle_memory_error()
70 kfree(msg_node); in handle_memory_error()
91 struct OpalMsgNode *msg_node; in opal_memory_err_event() local
96 msg_node = kzalloc(sizeof(*msg_node), GFP_ATOMIC); in opal_memory_err_event()
97 if (!msg_node) { in opal_memory_err_event()
102 memcpy(&msg_node->msg, msg, sizeof(msg_node->msg)); in opal_memory_err_event()
105 list_add(&msg_node->list, &opal_memory_err_list); in opal_memory_err_event()
Dopal-hmi.c269 struct OpalHmiEvtNode *msg_node; in hmi_event_handler() local
276 msg_node = list_entry(opal_hmi_evt_list.next, in hmi_event_handler()
278 list_del(&msg_node->list); in hmi_event_handler()
281 hmi_evt = (struct OpalHMIEvent *) &msg_node->hmi_evt; in hmi_event_handler()
284 kfree(msg_node); in hmi_event_handler()
330 struct OpalHmiEvtNode *msg_node; in opal_handle_hmi_event() local
340 msg_node = kzalloc(sizeof(*msg_node), GFP_ATOMIC); in opal_handle_hmi_event()
341 if (!msg_node) { in opal_handle_hmi_event()
345 memcpy(&msg_node->hmi_evt, hmi_evt, sizeof(*hmi_evt)); in opal_handle_hmi_event()
348 list_add(&msg_node->list, &opal_hmi_evt_list); in opal_handle_hmi_event()
Dopal.c254 struct opal_msg_node *msg_node; in queue_replay_msg() local
257 msg_node = kzalloc(sizeof(*msg_node), GFP_ATOMIC); in queue_replay_msg()
258 if (msg_node) { in queue_replay_msg()
259 INIT_LIST_HEAD(&msg_node->list); in queue_replay_msg()
260 memcpy(&msg_node->msg, msg, sizeof(struct opal_msg)); in queue_replay_msg()
261 list_add_tail(&msg_node->list, &msg_list); in queue_replay_msg()
273 struct opal_msg_node *msg_node, *tmp; in dequeue_replay_msg() local
275 list_for_each_entry_safe(msg_node, tmp, &msg_list, list) { in dequeue_replay_msg()
276 if (be32_to_cpu(msg_node->msg.msg_type) != msg_type) in dequeue_replay_msg()
281 &msg_node->msg); in dequeue_replay_msg()
[all …]