Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 51) sorted by relevance

123

/kernel/power/
Dqos.c54 s32 pm_qos_read_value(struct pm_qos_constraints *c) in pm_qos_read_value() argument
56 return READ_ONCE(c->target_value); in pm_qos_read_value()
59 static int pm_qos_get_value(struct pm_qos_constraints *c) in pm_qos_get_value() argument
61 if (plist_head_empty(&c->list)) in pm_qos_get_value()
62 return c->no_constraint_value; in pm_qos_get_value()
64 switch (c->type) { in pm_qos_get_value()
66 return plist_first(&c->list)->prio; in pm_qos_get_value()
69 return plist_last(&c->list)->prio; in pm_qos_get_value()
77 static void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument
79 WRITE_ONCE(c->target_value, value); in pm_qos_set_value()
[all …]
/kernel/
Dstacktrace.c84 struct stacktrace_cookie *c = cookie; in stack_trace_consume_entry() local
86 if (c->len >= c->size) in stack_trace_consume_entry()
89 if (c->skip > 0) { in stack_trace_consume_entry()
90 c->skip--; in stack_trace_consume_entry()
93 c->store[c->len++] = addr; in stack_trace_consume_entry()
94 return c->len < c->size; in stack_trace_consume_entry()
116 struct stacktrace_cookie c = { in stack_trace_save() local
122 arch_stack_walk(consume_entry, &c, current, NULL); in stack_trace_save()
123 return c.len; in stack_trace_save()
140 struct stacktrace_cookie c = { in stack_trace_save_tsk() local
[all …]
Dkprobes.c97 static int slots_per_page(struct kprobe_insn_cache *c) in slots_per_page() argument
99 return PAGE_SIZE/(c->insn_size * sizeof(kprobe_opcode_t)); in slots_per_page()
127 static int collect_garbage_slots(struct kprobe_insn_cache *c);
133 kprobe_opcode_t *__get_insn_slot(struct kprobe_insn_cache *c) in __get_insn_slot() argument
139 mutex_lock(&c->mutex); in __get_insn_slot()
142 list_for_each_entry_rcu(kip, &c->pages, list) { in __get_insn_slot()
143 if (kip->nused < slots_per_page(c)) { in __get_insn_slot()
145 for (i = 0; i < slots_per_page(c); i++) { in __get_insn_slot()
149 slot = kip->insns + (i * c->insn_size); in __get_insn_slot()
155 kip->nused = slots_per_page(c); in __get_insn_slot()
[all …]
Ducount.c215 long c, old; in atomic_long_inc_below() local
216 c = atomic_long_read(v); in atomic_long_inc_below()
218 if (unlikely(c >= u)) in atomic_long_inc_below()
220 old = atomic_long_cmpxchg(v, c, c+1); in atomic_long_inc_below()
221 if (likely(old == c)) in atomic_long_inc_below()
223 c = old; in atomic_long_inc_below()
Dexit.c396 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local
419 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner()
420 if (c->mm == mm) in mm_update_next_owner()
427 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner()
428 if (c->mm == mm) in mm_update_next_owner()
438 for_each_thread(g, c) { in mm_update_next_owner()
439 if (c->mm == mm) in mm_update_next_owner()
441 if (c->mm) in mm_update_next_owner()
455 BUG_ON(c == p); in mm_update_next_owner()
456 get_task_struct(c); in mm_update_next_owner()
[all …]
/kernel/locking/
Dlock_events.h44 #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
Dqspinlock_stat.h133 #define pv_kick(c) __pv_kick(c) argument
Dlockdep_proc.c420 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument
427 seq_printf(m, "%c", c); in seq_line()
680 char c; in lock_stat_write() local
683 if (get_user(c, buf)) in lock_stat_write()
686 if (c != '0') in lock_stat_write()
/kernel/trace/
Dtrace_events_filter_test.h12 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,
Dtrace_probe_kernel.h25 u8 c; in kern_fetch_store_strlen() local
33 ret = copy_from_kernel_nofault(&c, (u8 *)addr + len, 1); in kern_fetch_store_strlen()
35 } while (c && ret == 0 && len < MAX_STRING_SIZE); in kern_fetch_store_strlen()
Dtrace_events_inject.c75 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()
Dtrace_seq.c233 void trace_seq_putc(struct trace_seq *s, unsigned char c) in trace_seq_putc() argument
245 seq_buf_putc(&s->seq, c); in trace_seq_putc()
/kernel/printk/
Dbraille.h8 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
Dbraille.c38 _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()
Dprintk.c550 static void append_char(char **pp, char *e, char c) in append_char() argument
553 *(*pp)++ = c; in append_char()
590 unsigned char c = text[i]; in msg_add_ext_text() local
592 if (c < ' ' || c >= 127 || c == '\\') in msg_add_ext_text()
593 p += scnprintf(p, e - p, "\\x%02x", c); in msg_add_ext_text()
595 append_char(&p, e, c); in msg_add_ext_text()
2375 struct console_cmdline *c; in __add_preferred_console() local
2382 for (i = 0, c = console_cmdline; in __add_preferred_console()
2383 i < MAX_CMDLINECONSOLES && c->name[0]; in __add_preferred_console()
2384 i++, c++) { in __add_preferred_console()
[all …]
/kernel/debug/kdb/
Dkdb_io.c547 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()
DMakefile12 clean-files := gen-kdb_cmds.c
23 $(obj)/gen-kdb_cmds.c: $(src)/kdb_cmds $(src)/Makefile
/kernel/cgroup/
Drdma.c356 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()
Dcpuset.c633 struct cpuset *c, *par; in validate_change() local
640 cpuset_for_each_child(c, css, cur) in validate_change()
641 if (!is_cpuset_subset(c, trial)) in validate_change()
661 cpuset_for_each_child(c, css, par) { in validate_change()
662 if ((is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && in validate_change()
663 c != cur && in validate_change()
664 cpumask_intersects(trial->cpus_requested, c->cpus_requested)) in validate_change()
666 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change()
667 c != cur && in validate_change()
668 nodes_intersects(trial->mems_allowed, c->mems_allowed)) in validate_change()
[all …]
Ddebug.c101 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/
DMakefile41 $(OUTPUT)/iterators.bpf.o: iterators.bpf.c $(BPFOBJ) | $(OUTPUT)
44 -c $(filter %.c,$^) -o $@ && \
/kernel/irq/
Dmanage.c1407 struct irq_chip *c = d->chip; in irq_request_resources() local
1409 return c->irq_request_resources ? c->irq_request_resources(d) : 0; in irq_request_resources()
1415 struct irq_chip *c = d->chip; in irq_release_resources() local
1417 if (c->irq_release_resources) in irq_release_resources()
1418 c->irq_release_resources(d); in irq_release_resources()
1440 struct irq_chip *c = d->chip; in irq_nmi_setup() local
1442 return c->irq_nmi_setup ? c->irq_nmi_setup(d) : -EINVAL; in irq_nmi_setup()
1448 struct irq_chip *c = d->chip; in irq_nmi_teardown() local
1450 if (c->irq_nmi_teardown) in irq_nmi_teardown()
1451 c->irq_nmi_teardown(d); in irq_nmi_teardown()
/kernel/rcu/
Dupdate.c581 unsigned long c_old, unsigned long c) in do_trace_rcu_torture_read() argument
583 trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c); in do_trace_rcu_torture_read()
587 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
Drcu.h483 unsigned long c);
497 unsigned long c);
499 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
/kernel/debug/
Dgdbstub.c326 char *c = buf; in kgdb_ebin2mem() local
329 c[size] = *buf++; in kgdb_ebin2mem()
330 if (c[size] == 0x7d) in kgdb_ebin2mem()
331 c[size] = *buf++ ^ 0x20; in kgdb_ebin2mem()
335 return copy_to_kernel_nofault(mem, c, size); in kgdb_ebin2mem()

123