/kernel/ |
D | audit_tree.c | 17 struct list_head list; member 32 struct list_head list; member 84 INIT_LIST_HEAD(&tree->list); in alloc_tree() 154 INIT_LIST_HEAD(&chunk->owners[i].list); in alloc_chunk() 176 struct list_head *list; in insert_hash() local 180 list = chunk_hash(entry->inode); in insert_hash() 181 list_add_rcu(&chunk->hash, list); in insert_hash() 187 struct list_head *list = chunk_hash(inode); in audit_tree_lookup() local 190 list_for_each_entry_rcu(p, list, hash) { in audit_tree_lookup() 250 list_del_init(&p->list); in untag_chunk() [all …]
|
D | kprobes.c | 100 struct list_head list; member 154 list_for_each_entry(kip, &c->pages, list) { in __get_insn_slot() 190 INIT_LIST_HEAD(&kip->list); in __get_insn_slot() 196 list_add(&kip->list, &c->pages); in __get_insn_slot() 215 if (!list_is_singular(&kip->list)) { in collect_one_slot() 216 list_del(&kip->list); in collect_one_slot() 232 list_for_each_entry_safe(kip, next, &c->pages, list) { in collect_garbage_slots() 253 list_for_each_entry(kip, &c->pages, list) { in __free_insn_slot() 331 list_empty(&p->list); in kprobe_unused() 355 list_for_each_entry_rcu(kp, &p->list, list) { in opt_pre_handler() [all …]
|
D | auditfilter.c | 176 int __init audit_register_class(int class, unsigned *list) in audit_register_class() argument 181 while (*list != ~0U) { in audit_register_class() 182 unsigned n = *list++; in audit_register_class() 873 struct list_head *list; in audit_find_rule() local 878 *p = list = &audit_inode_hash[h]; in audit_find_rule() 882 list = &audit_inode_hash[h]; in audit_find_rule() 883 list_for_each_entry(e, list, list) in audit_find_rule() 891 *p = list = &audit_filter_list[entry->rule.listnr]; in audit_find_rule() 894 list_for_each_entry(e, list, list) in audit_find_rule() 913 struct list_head *list; in audit_add_rule() local [all …]
|
D | taskstats.c | 62 struct list_head list; member 69 struct list_head list; member 136 list_for_each_entry(s, &listeners->list, list) { in send_cpu_listeners() 138 if (!list_is_last(&s->list, &listeners->list)) { in send_cpu_listeners() 160 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in send_cpu_listeners() 162 list_del(&s->list); in send_cpu_listeners() 308 list_for_each_entry(s2, &listeners->list, list) { in add_del_listener() 312 list_add(&s->list, &listeners->list); in add_del_listener() 326 list_for_each_entry_safe(s, tmp, &listeners->list, list) { in add_del_listener() 328 list_del(&s->list); in add_del_listener() [all …]
|
D | softirq.c | 487 struct tasklet_struct *list; in tasklet_action() local 490 list = __this_cpu_read(tasklet_vec.head); in tasklet_action() 495 while (list) { in tasklet_action() 496 struct tasklet_struct *t = list; in tasklet_action() 498 list = list->next; in tasklet_action() 523 struct tasklet_struct *list; in tasklet_hi_action() local 526 list = __this_cpu_read(tasklet_hi_vec.head); in tasklet_hi_action() 531 while (list) { in tasklet_hi_action() 532 struct tasklet_struct *t = list; in tasklet_hi_action() 534 list = list->next; in tasklet_hi_action()
|
D | padata.c | 75 list_replace_init(&pqueue->parallel.list, &local_list); in padata_parallel_worker() 82 struct padata_priv, list); in padata_parallel_worker() 84 list_del_init(&padata->list); in padata_parallel_worker() 139 list_add_tail(&padata->list, &queue->parallel.list); in padata_do_parallel() 177 if (!list_empty(&reorder->list)) { in padata_get_next() 178 padata = list_entry(reorder->list.next, in padata_get_next() 179 struct padata_priv, list); in padata_get_next() 181 list_del_init(&padata->list); in padata_get_next() 248 list_add_tail(&padata->list, &squeue->serial.list); in padata_reorder() 267 if (!list_empty(&next_queue->reorder.list)) in padata_reorder() [all …]
|
D | audit_watch.c | 294 list_del_rcu(&oentry->list); in audit_update_watch() 298 list_del(&oentry->rule.list); in audit_update_watch() 312 list_add_rcu(&nentry->list, &audit_inode_hash[h]); in audit_update_watch() 313 list_replace(&oentry->rule.list, in audit_update_watch() 314 &nentry->rule.list); in audit_update_watch() 349 list_del(&r->list); in audit_remove_parent_watches() 350 list_del_rcu(&e->list); in audit_remove_parent_watches() 413 int audit_add_watch(struct audit_krule *krule, struct list_head **list) in audit_add_watch() argument 453 *list = &audit_inode_hash[h]; in audit_add_watch()
|
D | futex.c | 197 struct list_head list; member 233 struct plist_node list; member 771 plist_for_each_entry(this, &hb->chain, list) { in futex_top_waiter() 817 INIT_LIST_HEAD(&pi_state->list); in refill_pi_state_cache() 847 WARN_ON(list_empty(&pi_state->list)); in pi_state_update_owner() 848 list_del_init(&pi_state->list); in pi_state_update_owner() 854 WARN_ON(!list_empty(&pi_state->list)); in pi_state_update_owner() 855 list_add(&pi_state->list, &new_owner->pi_state_list); in pi_state_update_owner() 946 pi_state = list_entry(next, struct futex_pi_state, list); in exit_pi_state_list() 964 WARN_ON(list_empty(&pi_state->list)); in exit_pi_state_list() [all …]
|
D | auditsc.c | 184 list_for_each_entry(n, &ctx->names_list, list) { in audit_match_filetype() 327 list_for_each_entry(n, &ctx->names_list, list) { in audit_compare_uid() 351 list_for_each_entry(n, &ctx->names_list, list) { in audit_compare_gid() 540 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 555 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 568 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 580 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 592 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 649 list_for_each_entry(n, &ctx->names_list, list) { in audit_filter_rules() 718 list_for_each_entry_rcu(e, &audit_filter_list[AUDIT_FILTER_TASK], list) { in audit_filter_task() [all …]
|
/kernel/power/ |
D | qos.c | 68 .list = PLIST_HEAD_INIT(cpu_dma_constraints.list), 82 .list = PLIST_HEAD_INIT(network_lat_constraints.list), 97 .list = PLIST_HEAD_INIT(network_tput_constraints.list), 112 .list = PLIST_HEAD_INIT(memory_bw_constraints.list), 154 if (plist_head_empty(&c->list)) in pm_qos_get_value() 159 return plist_first(&c->list)->prio; in pm_qos_get_value() 162 return plist_last(&c->list)->prio; in pm_qos_get_value() 165 plist_for_each(node, &c->list) in pm_qos_get_value() 210 if (plist_head_empty(&c->list)) { in pm_qos_dbg_show_requests() 229 plist_for_each_entry(req, &c->list, node) { in pm_qos_dbg_show_requests() [all …]
|
D | snapshot.c | 163 free_list_of_pages(struct linked_page *list, int clear_page_nosave) in free_list_of_pages() argument 165 while (list) { in free_list_of_pages() 166 struct linked_page *lp = list->next; in free_list_of_pages() 168 free_image_page(list, clear_page_nosave); in free_list_of_pages() 169 list = lp; in free_list_of_pages() 277 struct list_head list; member 286 struct list_head list; /* Link Zones together */ member 333 struct list_head *list) in alloc_rtree_node() argument 345 list_add_tail(&node->list, list); in alloc_rtree_node() 469 list_for_each_entry(node, &zone->nodes, list) in free_zone_bm_rtree() [all …]
|
/kernel/time/ |
D | clockevents.c | 354 struct clock_event_device, list); in clockevents_notify_released() 355 list_del(&dev->list); in clockevents_notify_released() 356 list_add(&dev->list, &clockevent_devices); in clockevents_notify_released() 368 list_for_each_entry(dev, &clockevent_devices, list) { in clockevents_replace() 384 list_del_init(&ced->list); in clockevents_replace() 396 list_del_init(&ced->list); in __clockevents_try_unbind() 463 list_add(&dev->list, &clockevent_devices); in clockevents_register_device() 578 list_del(&old->list); in clockevents_exchange_device() 579 list_add(&old->list, &clockevents_released); in clockevents_exchange_device() 595 list_for_each_entry_reverse(dev, &clockevent_devices, list) in clockevents_suspend() [all …]
|
D | clocksource.c | 348 list_for_each_entry(cs, &clocksource_list, list) { in clocksource_select_watchdog() 459 list_for_each_entry_reverse(cs, &clocksource_list, list) in clocksource_suspend() 471 list_for_each_entry(cs, &clocksource_list, list) in clocksource_resume() 577 list_for_each_entry(cs, &clocksource_list, list) { in clocksource_find_best() 598 list_for_each_entry(cs, &clocksource_list, list) { in __clocksource_select() 679 list_for_each_entry(tmp, &clocksource_list, list) in clocksource_enqueue() 682 entry = &tmp->list; in clocksource_enqueue() 683 list_add(&cs->list, entry); in clocksource_enqueue() 784 list_del(&cs->list); in __clocksource_change_rating() 823 list_del_init(&cs->list); in clocksource_unbind() [all …]
|
/kernel/locking/ |
D | rwsem-spinlock.c | 18 struct list_head list; member 71 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); in __rwsem_do_wake() 84 struct list_head *next = waiter->list.next; in __rwsem_do_wake() 86 list_del(&waiter->list); in __rwsem_do_wake() 102 waiter = list_entry(next, struct rwsem_waiter, list); in __rwsem_do_wake() 119 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); in __rwsem_wake_one_writer() 151 list_add_tail(&waiter.list, &sem->wait_list); in __down_read() 206 list_add_tail(&waiter.list, &sem->wait_list); in __down_write_nested() 225 list_del(&waiter.list); in __down_write_nested()
|
D | rwsem-xadd.c | 100 struct list_head list; member 129 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); in __rwsem_do_wake() 168 if (waiter->list.next == &sem->wait_list) in __rwsem_do_wake() 171 waiter = list_entry(waiter->list.next, in __rwsem_do_wake() 172 struct rwsem_waiter, list); in __rwsem_do_wake() 187 waiter = list_entry(next, struct rwsem_waiter, list); in __rwsem_do_wake() 188 next = waiter->list.next; in __rwsem_do_wake() 228 list_add_tail(&waiter.list, &sem->wait_list); in rwsem_down_read_failed() 463 list_add_tail(&waiter.list, &sem->wait_list); in rwsem_down_write_failed() 497 list_del(&waiter.list); in rwsem_down_write_failed()
|
D | mutex-debug.c | 34 INIT_LIST_HEAD(&waiter->list); in debug_mutex_lock_common() 42 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in debug_mutex_wake_waiter() 47 DEBUG_LOCKS_WARN_ON(!list_empty(&waiter->list)); in debug_mutex_free_waiter() 63 DEBUG_LOCKS_WARN_ON(list_empty(&waiter->list)); in mutex_remove_waiter() 68 list_del_init(&waiter->list); in mutex_remove_waiter()
|
D | semaphore.c | 194 struct list_head list; member 210 list_add_tail(&waiter.list, &sem->wait_list); in __down_common() 228 list_del(&waiter.list); in __down_common() 232 list_del(&waiter.list); in __down_common() 259 struct semaphore_waiter, list); in __up() 260 list_del(&waiter->list); in __up()
|
/kernel/rcu/ |
D | tiny.c | 134 struct rcu_head *next, *list; in __rcu_process_callbacks() local 146 list = rcp->rcucblist; in __rcu_process_callbacks() 156 while (list) { in __rcu_process_callbacks() 157 next = list->next; in __rcu_process_callbacks() 159 debug_rcu_head_unqueue(list); in __rcu_process_callbacks() 161 __rcu_reclaim(rn, list); in __rcu_process_callbacks() 163 list = next; in __rcu_process_callbacks()
|
D | update.c | 650 struct rcu_head *list; in rcu_tasks_kthread() local 667 list = rcu_tasks_cbs_head; in rcu_tasks_kthread() 673 if (!list) { in rcu_tasks_kthread() 778 while (list) { in rcu_tasks_kthread() 779 next = list->next; in rcu_tasks_kthread() 781 list->func(list); in rcu_tasks_kthread() 783 list = next; in rcu_tasks_kthread()
|
/kernel/trace/ |
D | trace_events_trigger.c | 75 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call() 111 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_post_call() 161 list_for_each_entry_reverse(p, &trigger_commands, list) in trigger_show() 168 data = list_entry(v, struct event_trigger_data, list); in trigger_show() 221 list_for_each_entry(p, &trigger_commands, list) { in trigger_process_regex() 327 list_for_each_entry(p, &trigger_commands, list) { in register_event_command() 333 list_add(&cmd->list, &trigger_commands); in register_event_command() 350 list_for_each_entry_safe(p, n, &trigger_commands, list) { in unregister_event_command() 353 list_del_init(&p->list); in unregister_event_command() 478 list_for_each_entry(file, &tr->events, list) { in clear_event_triggers() [all …]
|
D | ring_buffer.c | 300 struct list_head list; /* list of buffer pages */ member 802 static struct list_head *rb_list_head(struct list_head *list) in rb_list_head() argument 804 unsigned long val = (unsigned long)list; in rb_list_head() 819 struct buffer_page *page, struct list_head *list) in rb_is_head_page() argument 823 val = (unsigned long)list->next; in rb_is_head_page() 825 if ((val & ~RB_FLAG_MASK) != (unsigned long)&page->list) in rb_is_head_page() 840 struct list_head *list = page->list.prev; in rb_is_reader_page() local 842 return rb_list_head(list->next) != &page->list; in rb_is_reader_page() 849 struct list_head *list) in rb_set_list_to_head() argument 853 ptr = (unsigned long *)&list->next; in rb_set_list_to_head() [all …]
|
D | trace_event_perf.c | 89 struct hlist_head __percpu *list; in perf_trace_event_reg() local 97 list = alloc_percpu(struct hlist_head); in perf_trace_event_reg() 98 if (!list) in perf_trace_event_reg() 102 INIT_HLIST_HEAD(per_cpu_ptr(list, cpu)); in perf_trace_event_reg() 104 tp_event->perf_events = list; in perf_trace_event_reg() 214 list_for_each_entry(tp_event, &ftrace_events, list) { in perf_trace_init() 241 struct hlist_head *list; in perf_trace_add() local 250 list = this_cpu_ptr(pcpu_list); in perf_trace_add() 251 hlist_add_head_rcu(&p_event->hlist_entry, list); in perf_trace_add()
|
D | trace_printk.c | 32 struct list_head list; member 43 list_for_each_entry(pos, &trace_bprintk_fmt_list, list) { in lookup_format() 74 list_add_tail(&tb_fmt->list, &trace_bprintk_fmt_list); in hold_module_trace_bprintk_format() 138 list_for_each_entry(p, &trace_bprintk_fmt_list, list) { in find_next_mod_format() 152 if (mod_fmt->list.next == &trace_bprintk_fmt_list) in find_next_mod_format() 155 mod_fmt = container_of(mod_fmt->list.next, typeof(*mod_fmt), list); in find_next_mod_format()
|
D | trace_events.c | 62 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 63 list_for_each_entry(file, &tr->events, list) 66 list_for_each_entry(tr, &ftrace_trace_arrays, list) { \ 68 list_for_each_entry_safe(file, ___n, &tr->events, list) 468 list_for_each_entry(file, &tr->events, list) { in ftrace_clear_events() 593 list_for_each_entry(file, &tr->events, list) { in __ftrace_clear_event_pids() 624 list_del(&system->list); in __put_system() 672 list_del(&dir->list); in remove_subsystem() 693 list_del(&file->list); in remove_event_file_dir() 711 list_for_each_entry(file, &tr->events, list) { in __ftrace_set_clr_event_nolock() [all …]
|
D | trace_events_filter.c | 112 struct list_head list; member 118 struct list_head list; member 903 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_preds() 928 list_for_each_entry(file, &tr->events, list) { in filter_free_subsystem_filters() 1208 list_add(&opstack_op->list, &ps->opstack); in filter_opstack_push() 1225 opstack_op = list_first_entry(&ps->opstack, struct opstack_op, list); in filter_opstack_top() 1238 opstack_op = list_first_entry(&ps->opstack, struct opstack_op, list); in filter_opstack_pop() 1240 list_del(&opstack_op->list); in filter_opstack_pop() 1273 list_add_tail(&elt->list, &ps->postfix); in postfix_append_operand() 1289 list_add_tail(&elt->list, &ps->postfix); in postfix_append_op() [all …]
|