Home
last modified time | relevance | path

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

123

/kernel/bpf/
Dmemalloc.c124 static void *__alloc(struct bpf_mem_cache *c, int node) in __alloc() argument
133 if (c->percpu_size) { in __alloc()
134 void **obj = kmalloc_node(c->percpu_size, flags, node); in __alloc()
135 void *pptr = __alloc_percpu_gfp(c->unit_size, 8, flags); in __alloc()
146 return kmalloc_node(c->unit_size, flags | __GFP_ZERO, node); in __alloc()
149 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg() argument
152 if (c->objcg) in get_memcg()
153 return get_mem_cgroup_from_objcg(c->objcg); in get_memcg()
164 static void alloc_bulk(struct bpf_mem_cache *c, int cnt, int node) in alloc_bulk() argument
171 memcg = get_memcg(c); in alloc_bulk()
[all …]
/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.c102 static int slots_per_page(struct kprobe_insn_cache *c) in slots_per_page() argument
104 return PAGE_SIZE/(c->insn_size * sizeof(kprobe_opcode_t)); in slots_per_page()
138 static int collect_garbage_slots(struct kprobe_insn_cache *c);
144 kprobe_opcode_t *__get_insn_slot(struct kprobe_insn_cache *c) in __get_insn_slot() argument
150 mutex_lock(&c->mutex); in __get_insn_slot()
153 list_for_each_entry_rcu(kip, &c->pages, list) { in __get_insn_slot()
154 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()
167 kip->nused = slots_per_page(c); in __get_insn_slot()
[all …]
Ducount.c217 long c, old; in atomic_long_inc_below() local
218 c = atomic_long_read(v); in atomic_long_inc_below()
220 if (unlikely(c >= u)) in atomic_long_inc_below()
222 old = atomic_long_cmpxchg(v, c, c+1); in atomic_long_inc_below()
223 if (likely(old == c)) in atomic_long_inc_below()
225 c = old; in atomic_long_inc_below()
Dexit.c446 struct task_struct *c, *g, *p = current; in mm_update_next_owner() local
469 list_for_each_entry(c, &p->children, sibling) { in mm_update_next_owner()
470 if (c->mm == mm) in mm_update_next_owner()
477 list_for_each_entry(c, &p->real_parent->children, sibling) { in mm_update_next_owner()
478 if (c->mm == mm) in mm_update_next_owner()
488 for_each_thread(g, c) { in mm_update_next_owner()
489 if (c->mm == mm) in mm_update_next_owner()
491 if (c->mm) in mm_update_next_owner()
505 BUG_ON(c == p); in mm_update_next_owner()
506 get_task_struct(c); in mm_update_next_owner()
[all …]
Dsysctl.c151 char c, *p; in _proc_do_string() local
176 c = *(p++); in _proc_do_string()
177 if (c == 0 || c == '\n') in _proc_do_string()
179 data[len++] = c; in _proc_do_string()
416 static void proc_put_char(void **buf, size_t *size, char c) in proc_put_char() argument
420 **buffer = c; in proc_put_char()
1394 char tr_a[] = { '-', ',', '\n' }, tr_b[] = { ',', '\n', 0 }, c; in proc_do_large_bitmap() local
1423 sizeof(tr_a), &c); in proc_do_large_bitmap()
1447 if (c == '-') { in proc_do_large_bitmap()
1450 &c); in proc_do_large_bitmap()
/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()
/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
Dprintk.c549 static void append_char(char **pp, char *e, char c) in append_char() argument
552 *(*pp)++ = c; in append_char()
585 unsigned char c = text[i]; in msg_add_ext_text() local
587 if (c < ' ' || c >= 127 || c == '\\') in msg_add_ext_text()
588 p += scnprintf(p, e - p, "\\x%02x", c); in msg_add_ext_text()
590 append_char(&p, e, c); in msg_add_ext_text()
2364 static void set_user_specified(struct console_cmdline *c, bool user_specified) in set_user_specified() argument
2373 c->user_specified = true; in set_user_specified()
2381 struct console_cmdline *c; in __add_preferred_console() local
2388 for (i = 0, c = console_cmdline; in __add_preferred_console()
[all …]
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()
/kernel/debug/kdb/
Dkdb_io.c546 struct console *c; in kdb_msg_write() local
561 for_each_console(c) { in kdb_msg_write()
562 if (!(c->flags & CON_ENABLED)) in kdb_msg_write()
564 if (c == dbg_io_ops->cons) in kdb_msg_write()
576 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.c723 struct cpuset *c, *par; in validate_change_legacy() local
730 cpuset_for_each_child(c, css, cur) in validate_change_legacy()
731 if (!is_cpuset_subset(c, trial)) in validate_change_legacy()
768 struct cpuset *c, *par; in validate_change() local
813 cpuset_for_each_child(c, css, par) { in validate_change()
814 if ((is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && in validate_change()
815 c != cur && in validate_change()
816 cpumask_intersects(trial->cpus_requested, c->cpus_requested)) in validate_change()
818 if ((is_mem_exclusive(trial) || is_mem_exclusive(c)) && in validate_change()
819 c != cur && 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/
DMakefile49 $(OUTPUT)/iterators.bpf.o: iterators.bpf.c $(BPFOBJ) | $(OUTPUT)
52 -c $(filter %.c,$^) -o $@ && \
/kernel/irq/
Dmanage.c1401 struct irq_chip *c = d->chip; in irq_request_resources() local
1403 return c->irq_request_resources ? c->irq_request_resources(d) : 0; in irq_request_resources()
1409 struct irq_chip *c = d->chip; in irq_release_resources() local
1411 if (c->irq_release_resources) in irq_release_resources()
1412 c->irq_release_resources(d); in irq_release_resources()
1434 struct irq_chip *c = d->chip; in irq_nmi_setup() local
1436 return c->irq_nmi_setup ? c->irq_nmi_setup(d) : -EINVAL; in irq_nmi_setup()
1442 struct irq_chip *c = d->chip; in irq_nmi_teardown() local
1444 if (c->irq_nmi_teardown) in irq_nmi_teardown()
1445 c->irq_nmi_teardown(d); in irq_nmi_teardown()
/kernel/rcu/
Drcu.h498 unsigned long c);
512 unsigned long c);
514 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument
Dupdate.c587 unsigned long c_old, unsigned long c) in do_trace_rcu_torture_read() argument
589 trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c); in do_trace_rcu_torture_read()
593 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \ argument

123