Searched refs:msg_node (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | opal-memory-errors.c | 58 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()
|
D | opal-hmi.c | 269 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()
|
D | opal.c | 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() [all …]
|
/Linux-v5.10/drivers/macintosh/ |
D | smu.c | 82 struct device_node *msg_node; member 535 smu->msg_node = of_find_node_by_name(NULL, "smu-interrupt"); in smu_init() 536 if (smu->msg_node == NULL) in smu_init() 538 data = of_get_property(smu->msg_node, "reg", NULL); in smu_init() 540 of_node_put(smu->msg_node); in smu_init() 541 smu->msg_node = NULL; in smu_init() 569 of_node_put(smu->msg_node); in smu_init() 594 if (smu->msg_node) { in smu_late_init() 595 smu->msg_irq = irq_of_parse_and_map(smu->msg_node, 0); in smu_late_init() 598 smu->msg_node); in smu_late_init()
|