Lines Matching refs:entry
111 struct async_entry *entry = in async_run_entry_fn() local
119 (long long)entry->cookie, in async_run_entry_fn()
120 entry->func, task_pid_nr(current)); in async_run_entry_fn()
123 entry->func(entry->data, entry->cookie); in async_run_entry_fn()
128 (long long)entry->cookie, in async_run_entry_fn()
129 entry->func, in async_run_entry_fn()
135 list_del_init(&entry->domain_list); in async_run_entry_fn()
136 list_del_init(&entry->global_list); in async_run_entry_fn()
139 kfree(entry); in async_run_entry_fn()
151 struct async_entry *entry) in __async_schedule_node_domain() argument
156 INIT_LIST_HEAD(&entry->domain_list); in __async_schedule_node_domain()
157 INIT_LIST_HEAD(&entry->global_list); in __async_schedule_node_domain()
158 INIT_WORK(&entry->work, async_run_entry_fn); in __async_schedule_node_domain()
159 entry->func = func; in __async_schedule_node_domain()
160 entry->data = data; in __async_schedule_node_domain()
161 entry->domain = domain; in __async_schedule_node_domain()
166 newcookie = entry->cookie = next_cookie++; in __async_schedule_node_domain()
168 list_add_tail(&entry->domain_list, &domain->pending); in __async_schedule_node_domain()
170 list_add_tail(&entry->global_list, &async_global_pending); in __async_schedule_node_domain()
176 queue_work_node(node, system_unbound_wq, &entry->work); in __async_schedule_node_domain()
201 struct async_entry *entry; in async_schedule_node_domain() local
206 entry = kzalloc(sizeof(struct async_entry), GFP_ATOMIC); in async_schedule_node_domain()
212 if (!entry || atomic_read(&entry_count) > MAX_WORK) { in async_schedule_node_domain()
213 kfree(entry); in async_schedule_node_domain()
223 return __async_schedule_node_domain(func, data, node, domain, entry); in async_schedule_node_domain()
260 struct async_entry *entry; in async_schedule_dev_nocall() local
262 entry = kzalloc(sizeof(struct async_entry), GFP_KERNEL); in async_schedule_dev_nocall()
265 if (!entry || atomic_read(&entry_count) > MAX_WORK) { in async_schedule_dev_nocall()
266 kfree(entry); in async_schedule_dev_nocall()
271 &async_dfl_domain, entry); in async_schedule_dev_nocall()