Lines Matching refs:msg_node
254 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()
283 list_del(&msg_node->list); in dequeue_replay_msg()
284 kfree(msg_node); in dequeue_replay_msg()