Lines Matching refs:eve_data

95 	struct registered_event_data *eve_data;  in xlnx_add_cb_for_notify_event()  local
102 hash_for_each_possible(reg_driver_map, eve_data, hentry, key) { in xlnx_add_cb_for_notify_event()
103 if (eve_data->key == key) { in xlnx_add_cb_for_notify_event()
111 eve_data = kmalloc(sizeof(*eve_data), GFP_KERNEL); in xlnx_add_cb_for_notify_event()
112 if (!eve_data) in xlnx_add_cb_for_notify_event()
114 eve_data->key = key; in xlnx_add_cb_for_notify_event()
115 eve_data->cb_type = PM_NOTIFY_CB; in xlnx_add_cb_for_notify_event()
116 eve_data->wake = wake; in xlnx_add_cb_for_notify_event()
117 INIT_LIST_HEAD(&eve_data->cb_list_head); in xlnx_add_cb_for_notify_event()
121 kfree(eve_data); in xlnx_add_cb_for_notify_event()
128 list_add(&cb_data->list, &eve_data->cb_list_head); in xlnx_add_cb_for_notify_event()
131 hash_add(reg_driver_map, &eve_data->hentry, key); in xlnx_add_cb_for_notify_event()
134 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_add_cb_for_notify_event()
148 list_add(&cb_data->list, &eve_data->cb_list_head); in xlnx_add_cb_for_notify_event()
156 struct registered_event_data *eve_data; in xlnx_add_cb_for_suspend() local
160 hash_for_each_possible(reg_driver_map, eve_data, hentry, PM_INIT_SUSPEND_CB) { in xlnx_add_cb_for_suspend()
161 if (eve_data->cb_type == PM_INIT_SUSPEND_CB) { in xlnx_add_cb_for_suspend()
168 eve_data = kmalloc(sizeof(*eve_data), GFP_KERNEL); in xlnx_add_cb_for_suspend()
169 if (!eve_data) in xlnx_add_cb_for_suspend()
172 eve_data->key = 0; in xlnx_add_cb_for_suspend()
173 eve_data->cb_type = PM_INIT_SUSPEND_CB; in xlnx_add_cb_for_suspend()
174 INIT_LIST_HEAD(&eve_data->cb_list_head); in xlnx_add_cb_for_suspend()
183 list_add(&cb_data->list, &eve_data->cb_list_head); in xlnx_add_cb_for_suspend()
185 hash_add(reg_driver_map, &eve_data->hentry, PM_INIT_SUSPEND_CB); in xlnx_add_cb_for_suspend()
193 struct registered_event_data *eve_data; in xlnx_remove_cb_for_suspend() local
201 hash_for_each_possible_safe(reg_driver_map, eve_data, tmp, hentry, PM_INIT_SUSPEND_CB) { in xlnx_remove_cb_for_suspend()
202 if (eve_data->cb_type == PM_INIT_SUSPEND_CB) { in xlnx_remove_cb_for_suspend()
204 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_remove_cb_for_suspend()
212 hash_del(&eve_data->hentry); in xlnx_remove_cb_for_suspend()
213 kfree(eve_data); in xlnx_remove_cb_for_suspend()
229 struct registered_event_data *eve_data; in xlnx_remove_cb_for_notify_event() local
238 hash_for_each_possible_safe(reg_driver_map, eve_data, tmp, hentry, key) { in xlnx_remove_cb_for_notify_event()
239 if (eve_data->key == key) { in xlnx_remove_cb_for_notify_event()
241 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_remove_cb_for_notify_event()
251 if (list_empty(&eve_data->cb_list_head)) { in xlnx_remove_cb_for_notify_event()
253 hash_del(&eve_data->hentry); in xlnx_remove_cb_for_notify_event()
254 kfree(eve_data); in xlnx_remove_cb_for_notify_event()
429 struct registered_event_data *eve_data; in xlnx_call_suspend_cb_handler() local
435 hash_for_each_possible(reg_driver_map, eve_data, hentry, cb_type) { in xlnx_call_suspend_cb_handler()
436 if (eve_data->cb_type == cb_type) { in xlnx_call_suspend_cb_handler()
437 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_call_suspend_cb_handler()
450 struct registered_event_data *eve_data; in xlnx_call_notify_cb_handler() local
457 hash_for_each_possible(reg_driver_map, eve_data, hentry, key) { in xlnx_call_notify_cb_handler()
458 if (eve_data->key == key) { in xlnx_call_notify_cb_handler()
459 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_call_notify_cb_handler()
466 eve_data->wake, true); in xlnx_call_notify_cb_handler()
470 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, in xlnx_call_notify_cb_handler()
668 struct registered_event_data *eve_data; in xlnx_event_manager_remove() local
674 hash_for_each_safe(reg_driver_map, i, tmp, eve_data, hentry) { in xlnx_event_manager_remove()
675 list_for_each_entry_safe(cb_pos, cb_next, &eve_data->cb_list_head, list) { in xlnx_event_manager_remove()
679 hash_del(&eve_data->hentry); in xlnx_event_manager_remove()
680 kfree(eve_data); in xlnx_event_manager_remove()