/kernel/ |
D | res_counter.c | 58 struct res_counter *c, *u; in __res_counter_charge() local 63 for (c = counter; c != NULL; c = c->parent) { in __res_counter_charge() 64 spin_lock(&c->lock); in __res_counter_charge() 65 r = res_counter_charge_locked(c, val, force); in __res_counter_charge() 66 spin_unlock(&c->lock); in __res_counter_charge() 69 *limit_fail_at = c; in __res_counter_charge() 76 for (u = counter; u != c; u = u->parent) { in __res_counter_charge() 104 struct res_counter *c; in res_counter_uncharge_until() local 108 for (c = counter; c != top; c = c->parent) { in res_counter_uncharge_until() 110 spin_lock(&c->lock); in res_counter_uncharge_until() [all …]
|
D | kprobes.c | 112 static int slots_per_page(struct kprobe_insn_cache *c) in slots_per_page() argument 114 return PAGE_SIZE/(c->insn_size * sizeof(kprobe_opcode_t)); in slots_per_page() 141 static int collect_garbage_slots(struct kprobe_insn_cache *c); 147 kprobe_opcode_t *__get_insn_slot(struct kprobe_insn_cache *c) in __get_insn_slot() argument 152 mutex_lock(&c->mutex); in __get_insn_slot() 154 list_for_each_entry(kip, &c->pages, list) { in __get_insn_slot() 155 if (kip->nused < slots_per_page(c)) { in __get_insn_slot() 157 for (i = 0; i < slots_per_page(c); i++) { in __get_insn_slot() 161 slot = kip->insns + (i * c->insn_size); in __get_insn_slot() 166 kip->nused = slots_per_page(c); in __get_insn_slot() [all …]
|
D | exit.c | 328 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local 351 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner() 352 if (c->mm == mm) in mm_update_next_owner() 359 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner() 360 if (c->mm == mm) in mm_update_next_owner() 370 for_each_thread(g, c) { in mm_update_next_owner() 371 if (c->mm == mm) in mm_update_next_owner() 373 if (c->mm) in mm_update_next_owner() 387 BUG_ON(c == p); in mm_update_next_owner() 388 get_task_struct(c); in mm_update_next_owner() [all …]
|
D | cpuset.c | 468 struct cpuset *c, *par; in validate_change() local 475 cpuset_for_each_child(c, css, cur) in validate_change() 476 if (!is_cpuset_subset(c, trial)) in validate_change() 496 cpuset_for_each_child(c, css, par) { in validate_change() 497 if ((is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && in validate_change() 498 c != cur && in validate_change() 499 cpumask_intersects(trial->cpus_requested, c->cpus_requested)) in validate_change() 501 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change() 502 c != cur && in validate_change() 503 nodes_intersects(trial->mems_allowed, c->mems_allowed)) in validate_change() [all …]
|
D | sysctl.c | 1839 char c; in _proc_do_string() local 1864 if (get_user(c, p++)) in _proc_do_string() 1866 if (c == 0 || c == '\n') in _proc_do_string() 1868 data[len++] = c; in _proc_do_string() 2048 static int proc_put_char(void __user **buf, size_t *size, char c) in proc_put_char() argument 2052 if (put_user(c, *buffer)) in proc_put_char() 2684 char tr_a[] = { '-', ',', '\n' }, tr_b[] = { ',', '\n', 0 }, c; in proc_do_large_bitmap() local 2720 sizeof(tr_a), &c); in proc_do_large_bitmap() 2734 if (c == '-') { in proc_do_large_bitmap() 2737 &c); in proc_do_large_bitmap()
|
D | cgroup.c | 790 struct cgroup *c = link->cgrp; in find_css_set() local 792 if (c->root == cgrp->root) in find_css_set() 793 c = cgrp; in find_css_set() 794 link_css_set(&tmp_links, cset, c); in find_css_set() 910 struct cgroup *c = link->cgrp; in cset_cgroup_from_root() local 912 if (c->root == root) { in cset_cgroup_from_root() 913 res = c; in cset_cgroup_from_root() 1366 char c = name[i]; in parse_cgroupfs_options() local 1367 if (isalnum(c)) in parse_cgroupfs_options() 1369 if ((c == '.') || (c == '-') || (c == '_')) in parse_cgroupfs_options() [all …]
|
D | auditsc.c | 131 struct audit_chunk *c[31]; member 218 p->c[--left] = chunk; in put_tree_ref() 226 p->c[30] = chunk; in put_tree_ref() 268 audit_put_chunk(q->c[n]); in unroll_tree_refs() 269 q->c[n] = NULL; in unroll_tree_refs() 273 audit_put_chunk(q->c[n]); in unroll_tree_refs() 274 q->c[n] = NULL; in unroll_tree_refs() 300 if (audit_tree_match(p->c[n], tree)) in match_tree_refs() 306 if (audit_tree_match(p->c[n], tree)) in match_tree_refs()
|
/kernel/power/ |
D | qos.c | 147 static inline int pm_qos_get_value(struct pm_qos_constraints *c) in pm_qos_get_value() argument 152 if (plist_head_empty(&c->list)) in pm_qos_get_value() 153 return c->no_constraint_value; in pm_qos_get_value() 155 switch (c->type) { in pm_qos_get_value() 157 return plist_first(&c->list)->prio; in pm_qos_get_value() 160 return plist_last(&c->list)->prio; in pm_qos_get_value() 163 plist_for_each(node, &c->list) in pm_qos_get_value() 175 s32 pm_qos_read_value(struct pm_qos_constraints *c) in pm_qos_read_value() argument 177 return c->target_value; in pm_qos_read_value() 180 static inline void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument [all …]
|
/kernel/trace/ |
D | trace_events_filter_test.h | 11 TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h), 13 TP_ARGS(a, b, c, d, e, f, g, h), 18 __field(int, c) 29 __entry->c = c; 38 __entry->a, __entry->b, __entry->c, __entry->d,
|
D | trace_seq.c | 249 int trace_seq_putc(struct trace_seq *s, unsigned char c) in trace_seq_putc() argument 259 s->buffer[s->len++] = c; in trace_seq_putc()
|
/kernel/printk/ |
D | printk.c | 643 unsigned char c = log_text(msg)[i]; in devkmsg_read() local 645 if (c < ' ' || c >= 127 || c == '\\') in devkmsg_read() 646 len += sprintf(user->buf + len, "\\x%02x", c); in devkmsg_read() 648 user->buf[len++] = c; in devkmsg_read() 656 unsigned char c = log_dict(msg)[i]; in devkmsg_read() local 663 if (c == '\0') { in devkmsg_read() 669 if (c < ' ' || c >= 127 || c == '\\') { in devkmsg_read() 670 len += sprintf(user->buf + len, "\\x%02x", c); in devkmsg_read() 674 user->buf[len++] = c; in devkmsg_read() 1912 struct console_cmdline *c; in __add_preferred_console() local [all …]
|
D | braille.h | 7 braille_set_options(struct console_cmdline *c, char *brl_options) in braille_set_options() argument 9 c->brl_options = brl_options; in braille_set_options() 16 _braille_register_console(struct console *console, struct console_cmdline *c); 24 braille_set_options(struct console_cmdline *c, char *brl_options) in braille_set_options() argument 35 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument
|
D | braille.c | 29 _braille_register_console(struct console *console, struct console_cmdline *c) in _braille_register_console() argument 33 if (c->brl_options) { in _braille_register_console() 35 rtn = braille_register_console(console, c->index, c->options, in _braille_register_console() 36 c->brl_options); in _braille_register_console()
|
/kernel/debug/kdb/ |
D | kdb_io.c | 571 struct console *c = console_drivers; in vkdb_printf() local 713 while (c) { in vkdb_printf() 714 c->write(c, kdb_buffer, retlen); in vkdb_printf() 716 c = c->next; in vkdb_printf() 764 c = console_drivers; in vkdb_printf() 774 while (c) { in vkdb_printf() 775 c->write(c, moreprompt, strlen(moreprompt)); in vkdb_printf() 777 c = c->next; in vkdb_printf()
|
D | Makefile | 13 clean-files := gen-kdb_cmds.c 24 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
|
D | kdb_main.c | 1413 unsigned char c; in kdb_mdr() local 1415 if (kdb_getarea(c, addr)) in kdb_mdr() 1417 kdb_printf("%02x", c); in kdb_mdr() 1441 char *c = cbuf; in kdb_md_line() local 1477 unsigned char c[8]; in kdb_md_line() member 1481 cp = wc.c + 8 - bytesperword; in kdb_md_line() 1483 cp = wc.c; in kdb_md_line() 1486 #define printable_char(c) \ in kdb_md_line() argument 1487 ({unsigned char __c = c; isascii(__c) && isprint(__c) ? __c : '.'; }) in kdb_md_line() 1490 *c++ = printable_char(*cp++); in kdb_md_line() [all …]
|
D | .gitignore | 1 gen-kdb_cmds.c
|
/kernel/rcu/ |
D | srcu.c | 171 t = ACCESS_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[idx]); in srcu_readers_active_idx() 268 sum += ACCESS_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[0]); in srcu_readers_active() 269 sum += ACCESS_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->c[1]); in srcu_readers_active() 301 __this_cpu_inc(sp->per_cpu_ref->c[idx]); in __srcu_read_lock() 318 this_cpu_dec(sp->per_cpu_ref->c[idx]); in __srcu_read_unlock()
|
D | tree.c | 1277 unsigned long c, const char *s) in trace_rcu_future_gp() argument 1280 rnp->completed, c, rnp->level, in trace_rcu_future_gp() 1296 unsigned long c; in rcu_start_future_gp() local 1305 c = rcu_cbs_completed(rdp->rsp, rnp); in rcu_start_future_gp() 1306 trace_rcu_future_gp(rnp, rdp, c, TPS("Startleaf")); in rcu_start_future_gp() 1307 if (rnp->need_future_gp[c & 0x1]) { in rcu_start_future_gp() 1308 trace_rcu_future_gp(rnp, rdp, c, TPS("Prestartleaf")); in rcu_start_future_gp() 1327 rnp->need_future_gp[c & 0x1]++; in rcu_start_future_gp() 1328 trace_rcu_future_gp(rnp, rdp, c, TPS("Startedleaf")); in rcu_start_future_gp() 1348 c = rcu_cbs_completed(rdp->rsp, rnp_root); in rcu_start_future_gp() [all …]
|
D | tree_plugin.h | 2222 unsigned long c; in rcu_nocb_wait_gp() local 2230 needwake = rcu_start_future_gp(rnp, rdp, &c); in rcu_nocb_wait_gp() 2239 trace_rcu_future_gp(rnp, rdp, c, TPS("StartWait")); in rcu_nocb_wait_gp() 2242 rnp->nocb_gp_wq[c & 0x1], in rcu_nocb_wait_gp() 2243 (d = ULONG_CMP_GE(ACCESS_ONCE(rnp->completed), c))); in rcu_nocb_wait_gp() 2247 trace_rcu_future_gp(rnp, rdp, c, TPS("ResumeWait")); in rcu_nocb_wait_gp() 2249 trace_rcu_future_gp(rnp, rdp, c, TPS("EndWait")); in rcu_nocb_wait_gp() 2398 int c, cl; in rcu_nocb_kthread() local 2418 c = atomic_long_xchg(&rdp->nocb_follower_count, 0); in rcu_nocb_kthread() 2420 rdp->nocb_p_count += c; in rcu_nocb_kthread() [all …]
|
D | update.c | 312 unsigned long c_old, unsigned long c) in do_trace_rcu_torture_read() argument 314 trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c); in do_trace_rcu_torture_read() 318 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
|
/kernel/locking/ |
D | lockdep_proc.c | 389 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument 396 seq_printf(m, "%c", c); in seq_line() 632 char c; in lock_stat_write() local 635 if (get_user(c, buf)) in lock_stat_write() 638 if (c != '0') in lock_stat_write()
|
D | rtmutex.c | 77 # define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) argument 128 # define rt_mutex_cmpxchg(l,c,n) (0) argument
|
/kernel/debug/ |
D | gdbstub.c | 328 char *c = buf; in kgdb_ebin2mem() local 331 c[size] = *buf++; in kgdb_ebin2mem() 332 if (c[size] == 0x7d) in kgdb_ebin2mem() 333 c[size] = *buf++ ^ 0x20; in kgdb_ebin2mem() 337 return probe_kernel_write(mem, c, size); in kgdb_ebin2mem()
|
/kernel/irq/ |
D | manage.c | 936 struct irq_chip *c = d->chip; in irq_request_resources() local 938 return c->irq_request_resources ? c->irq_request_resources(d) : 0; in irq_request_resources() 944 struct irq_chip *c = d->chip; in irq_release_resources() local 946 if (c->irq_release_resources) in irq_release_resources() 947 c->irq_release_resources(d); in irq_release_resources()
|