/kernel/ |
D | stacktrace.c | 83 struct stacktrace_cookie *c = cookie; in stack_trace_consume_entry() local 85 if (c->len >= c->size) in stack_trace_consume_entry() 88 if (c->skip > 0) { in stack_trace_consume_entry() 89 c->skip--; in stack_trace_consume_entry() 92 c->store[c->len++] = addr; in stack_trace_consume_entry() 93 return c->len < c->size; in stack_trace_consume_entry() 115 struct stacktrace_cookie c = { in stack_trace_save() local 121 arch_stack_walk(consume_entry, &c, current, NULL); in stack_trace_save() 122 return c.len; in stack_trace_save() 139 struct stacktrace_cookie c = { in stack_trace_save_tsk() local [all …]
|
D | ucount.c | 180 int c, old; in atomic_inc_below() local 181 c = atomic_read(v); in atomic_inc_below() 183 if (unlikely(c >= u)) in atomic_inc_below() 185 old = atomic_cmpxchg(v, c, c+1); in atomic_inc_below() 186 if (likely(old == c)) in atomic_inc_below() 188 c = old; in atomic_inc_below()
|
D | kprobes.c | 103 static int slots_per_page(struct kprobe_insn_cache *c) in slots_per_page() argument 105 return PAGE_SIZE/(c->insn_size * sizeof(kprobe_opcode_t)); in slots_per_page() 133 static int collect_garbage_slots(struct kprobe_insn_cache *c); 139 kprobe_opcode_t *__get_insn_slot(struct kprobe_insn_cache *c) in __get_insn_slot() argument 145 mutex_lock(&c->mutex); in __get_insn_slot() 148 list_for_each_entry_rcu(kip, &c->pages, list) { in __get_insn_slot() 149 if (kip->nused < slots_per_page(c)) { in __get_insn_slot() 151 for (i = 0; i < slots_per_page(c); i++) { in __get_insn_slot() 155 slot = kip->insns + (i * c->insn_size); in __get_insn_slot() 161 kip->nused = slots_per_page(c); in __get_insn_slot() [all …]
|
D | exit.c | 397 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local 420 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner() 421 if (c->mm == mm) in mm_update_next_owner() 428 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner() 429 if (c->mm == mm) in mm_update_next_owner() 439 for_each_thread(g, c) { in mm_update_next_owner() 440 if (c->mm == mm) in mm_update_next_owner() 442 if (c->mm) in mm_update_next_owner() 456 BUG_ON(c == p); in mm_update_next_owner() 457 get_task_struct(c); in mm_update_next_owner() [all …]
|
/kernel/power/ |
D | qos.c | 56 s32 pm_qos_read_value(struct pm_qos_constraints *c) in pm_qos_read_value() argument 58 return READ_ONCE(c->target_value); in pm_qos_read_value() 61 static int pm_qos_get_value(struct pm_qos_constraints *c) in pm_qos_get_value() argument 63 if (plist_head_empty(&c->list)) in pm_qos_get_value() 64 return c->no_constraint_value; in pm_qos_get_value() 66 switch (c->type) { in pm_qos_get_value() 68 return plist_first(&c->list)->prio; in pm_qos_get_value() 71 return plist_last(&c->list)->prio; in pm_qos_get_value() 79 static void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument 81 WRITE_ONCE(c->target_value, value); in pm_qos_set_value() [all …]
|
/kernel/printk/ |
D | printk_safe.c | 127 const char *c, *end; in printk_safe_flush_buffer() local 130 c = start; in printk_safe_flush_buffer() 135 while (c < end) { in printk_safe_flush_buffer() 136 if (*c == '\n') { in printk_safe_flush_buffer() 137 printk_safe_flush_line(start, c - start + 1); in printk_safe_flush_buffer() 138 start = ++c; in printk_safe_flush_buffer() 144 if ((c + 1 < end) && printk_get_level(c)) { in printk_safe_flush_buffer() 146 c = printk_skip_level(c); in printk_safe_flush_buffer() 150 printk_safe_flush_line(start, c - start); in printk_safe_flush_buffer() 151 start = c++; in printk_safe_flush_buffer() [all …]
|
D | braille.h | 8 braille_set_options(struct console_cmdline *c, char *brl_options) in braille_set_options() argument 10 c->brl_options = brl_options; in braille_set_options() 24 _braille_register_console(struct console *console, struct console_cmdline *c); 32 braille_set_options(struct console_cmdline *c, char *brl_options) in braille_set_options() argument 43 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument
|
D | braille.c | 38 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument 42 if (c->brl_options) { in _braille_register_console() 44 rtn = braille_register_console(console, c->index, c->options, in _braille_register_console() 45 c->brl_options); in _braille_register_console()
|
D | printk.c | 592 static void append_char(char **pp, char *e, char c) in append_char() argument 595 *(*pp)++ = c; in append_char() 628 unsigned char c = text[i]; in msg_add_ext_text() local 630 if (c < ' ' || c >= 127 || c == '\\') in msg_add_ext_text() 631 p += scnprintf(p, e - p, "\\x%02x", c); in msg_add_ext_text() 633 append_char(&p, e, c); in msg_add_ext_text() 2176 struct console_cmdline *c; in __add_preferred_console() local 2183 for (i = 0, c = console_cmdline; in __add_preferred_console() 2184 i < MAX_CMDLINECONSOLES && c->name[0]; in __add_preferred_console() 2185 i++, c++) { in __add_preferred_console() [all …]
|
/kernel/locking/ |
D | lock_events.h | 44 #define lockevent_cond_inc(ev, c) __lockevent_inc(LOCKEVENT_ ##ev, c) argument 51 #define lockevent_add(ev, c) __lockevent_add(LOCKEVENT_ ##ev, c) argument 56 #define lockevent_add(ev, c) argument 57 #define lockevent_cond_inc(ev, c) argument
|
D | rtmutex.c | 145 # define rt_mutex_cmpxchg_acquire(l,c,n) (cmpxchg_acquire(&l->owner, c, n) == c) argument 146 # define rt_mutex_cmpxchg_release(l,c,n) (cmpxchg_release(&l->owner, c, n) == c) argument 205 # define rt_mutex_cmpxchg_acquire(l,c,n) (0) argument 206 # define rt_mutex_cmpxchg_release(l,c,n) (0) argument
|
D | qspinlock_stat.h | 133 #define pv_kick(c) __pv_kick(c) argument
|
D | lockdep_proc.c | 418 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument 425 seq_printf(m, "%c", c); in seq_line() 678 char c; in lock_stat_write() local 681 if (get_user(c, buf)) in lock_stat_write() 684 if (c != '0') in lock_stat_write()
|
/kernel/trace/ |
D | trace_events_filter_test.h | 12 TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h), 14 TP_ARGS(a, b, c, d, e, f, g, h), 19 __field(int, c) 30 __entry->c = c; 39 __entry->a, __entry->b, __entry->c, __entry->d,
|
D | trace_events_inject.c | 75 char *num, c; in parse_field() local 89 c = str[i]; in parse_field() 90 if (c != '\0' && !isspace(c)) in parse_field() 98 str[i] = c; in parse_field()
|
/kernel/debug/kdb/ |
D | kdb_io.c | 547 struct console *c; in kdb_msg_write() local 562 for_each_console(c) { in kdb_msg_write() 563 if (!(c->flags & CON_ENABLED)) in kdb_msg_write() 565 if (c == dbg_io_ops->cons) in kdb_msg_write() 577 c->write(c, msg, msg_len); in kdb_msg_write()
|
D | Makefile | 12 clean-files := gen-kdb_cmds.c 23 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
|
/kernel/cgroup/ |
D | rdma.c | 356 static int parse_resource(char *c, int *intval) in parse_resource() argument 359 char *name, *value = c; in parse_resource() 392 char *c; in rdmacg_parse_limits() local 396 while ((c = strsep(&options, " ")) != NULL) { in rdmacg_parse_limits() 399 index = parse_resource(c, &intval); in rdmacg_parse_limits()
|
D | cpuset.c | 617 struct cpuset *c, *par; in validate_change() local 624 cpuset_for_each_child(c, css, cur) in validate_change() 625 if (!is_cpuset_subset(c, trial)) in validate_change() 645 cpuset_for_each_child(c, css, par) { in validate_change() 646 if ((is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && in validate_change() 647 c != cur && in validate_change() 648 cpumask_intersects(trial->cpus_requested, c->cpus_requested)) in validate_change() 650 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change() 651 c != cur && in validate_change() 652 nodes_intersects(trial->mems_allowed, c->mems_allowed)) in validate_change() [all …]
|
D | debug.c | 101 struct cgroup *c = link->cgrp; in current_css_set_cg_links_read() local 103 cgroup_name(c, name_buf, NAME_MAX + 1); in current_css_set_cg_links_read() 105 c->root->hierarchy_id, name_buf); in current_css_set_cg_links_read()
|
/kernel/bpf/preload/iterators/ |
D | Makefile | 41 $(OUTPUT)/iterators.bpf.o: iterators.bpf.c $(BPFOBJ) | $(OUTPUT) 44 -c $(filter %.c,$^) -o $@ && \
|
/kernel/rcu/ |
D | update.c | 469 unsigned long c_old, unsigned long c) in do_trace_rcu_torture_read() argument 471 trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c); in do_trace_rcu_torture_read() 475 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
|
D | rcu.h | 461 unsigned long c); 475 unsigned long c); 477 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
|
/kernel/irq/ |
D | manage.c | 1307 struct irq_chip *c = d->chip; in irq_request_resources() local 1309 return c->irq_request_resources ? c->irq_request_resources(d) : 0; in irq_request_resources() 1315 struct irq_chip *c = d->chip; in irq_release_resources() local 1317 if (c->irq_release_resources) in irq_release_resources() 1318 c->irq_release_resources(d); in irq_release_resources() 1340 struct irq_chip *c = d->chip; in irq_nmi_setup() local 1342 return c->irq_nmi_setup ? c->irq_nmi_setup(d) : -EINVAL; in irq_nmi_setup() 1348 struct irq_chip *c = d->chip; in irq_nmi_teardown() local 1350 if (c->irq_nmi_teardown) in irq_nmi_teardown() 1351 c->irq_nmi_teardown(d); in irq_nmi_teardown()
|
/kernel/debug/ |
D | gdbstub.c | 329 char *c = buf; in kgdb_ebin2mem() local 332 c[size] = *buf++; in kgdb_ebin2mem() 333 if (c[size] == 0x7d) in kgdb_ebin2mem() 334 c[size] = *buf++ ^ 0x20; in kgdb_ebin2mem() 338 return copy_to_kernel_nofault(mem, c, size); in kgdb_ebin2mem()
|