Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 70) sorted by relevance

123

/kernel/irq/
Dmatrix.c53 struct irq_matrix *m; in irq_alloc_matrix() local
58 m = kzalloc(sizeof(*m), GFP_KERNEL); in irq_alloc_matrix()
59 if (!m) in irq_alloc_matrix()
62 m->matrix_bits = matrix_bits; in irq_alloc_matrix()
63 m->alloc_start = alloc_start; in irq_alloc_matrix()
64 m->alloc_end = alloc_end; in irq_alloc_matrix()
65 m->alloc_size = alloc_end - alloc_start; in irq_alloc_matrix()
66 m->maps = alloc_percpu(*m->maps); in irq_alloc_matrix()
67 if (!m->maps) { in irq_alloc_matrix()
68 kfree(m); in irq_alloc_matrix()
[all …]
Ddebugfs.c16 #define BIT_MASK_DESCR(m) { .mask = m, .name = #m } argument
18 static void irq_debug_show_bits(struct seq_file *m, int ind, unsigned int state, in irq_debug_show_bits() argument
25 seq_printf(m, "%*s%s\n", ind + 12, "", sd->name); in irq_debug_show_bits()
30 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) in irq_debug_show_masks() argument
36 seq_printf(m, "affinity: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks()
39 seq_printf(m, "effectiv: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks()
43 seq_printf(m, "pending: %*pbl\n", cpumask_pr_args(msk)); in irq_debug_show_masks()
47 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) { } in irq_debug_show_masks() argument
63 irq_debug_show_chip(struct seq_file *m, struct irq_data *data, int ind) in irq_debug_show_chip() argument
68 seq_printf(m, "chip: None\n"); in irq_debug_show_chip()
[all …]
Dproc.c46 static int show_irq_affinity(int type, struct seq_file *m) in show_irq_affinity() argument
48 struct irq_desc *desc = irq_to_desc((long)m->private); in show_irq_affinity()
73 seq_printf(m, "%*pbl\n", cpumask_pr_args(mask)); in show_irq_affinity()
77 seq_printf(m, "%*pb\n", cpumask_pr_args(mask)); in show_irq_affinity()
83 static int irq_affinity_hint_proc_show(struct seq_file *m, void *v) in irq_affinity_hint_proc_show() argument
85 struct irq_desc *desc = irq_to_desc((long)m->private); in irq_affinity_hint_proc_show()
97 seq_printf(m, "%*pb\n", cpumask_pr_args(mask)); in irq_affinity_hint_proc_show()
104 static int irq_affinity_proc_show(struct seq_file *m, void *v) in irq_affinity_proc_show() argument
106 return show_irq_affinity(AFFINITY, m); in irq_affinity_proc_show()
109 static int irq_affinity_list_proc_show(struct seq_file *m, void *v) in irq_affinity_list_proc_show() argument
[all …]
Dcpuhotplug.c21 const struct cpumask *m = irq_data_get_effective_affinity_mask(d); in irq_needs_fixup() local
30 if (cpumask_empty(m)) in irq_needs_fixup()
31 m = irq_data_get_affinity_mask(d); in irq_needs_fixup()
38 if (cpumask_any_but(m, cpu) < nr_cpu_ids && in irq_needs_fixup()
39 cpumask_any_and(m, cpu_online_mask) >= nr_cpu_ids) { in irq_needs_fixup()
45 cpumask_pr_args(m), d->irq, cpu); in irq_needs_fixup()
49 return cpumask_test_cpu(cpu, m); in irq_needs_fixup()
/kernel/locking/
Dlockdep_proc.c27 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument
32 static void *l_start(struct seq_file *m, loff_t *pos) in l_start() argument
37 static void l_stop(struct seq_file *m, void *v) in l_stop() argument
41 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument
48 seq_printf(m, "%s", name); in print_name()
50 seq_printf(m, "%s", name); in print_name()
52 seq_printf(m, "#%d", class->name_version); in print_name()
54 seq_printf(m, "/%d", class->subclass); in print_name()
58 static int l_show(struct seq_file *m, void *v) in l_show() argument
65 seq_printf(m, "all lock classes:\n"); in l_show()
[all …]
/kernel/time/
Dtimer_list.c31 static void SEQ_printf(struct seq_file *m, const char *fmt, ...) in SEQ_printf() argument
37 if (m) in SEQ_printf()
38 seq_vprintf(m, fmt, args); in SEQ_printf()
45 static void print_name_offset(struct seq_file *m, void *sym) in print_name_offset() argument
50 SEQ_printf(m, "<%pK>", sym); in print_name_offset()
52 SEQ_printf(m, "%s", symname); in print_name_offset()
56 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer() argument
59 SEQ_printf(m, " #%d: ", idx); in print_timer()
60 print_name_offset(m, taddr); in print_timer()
61 SEQ_printf(m, ", "); in print_timer()
[all …]
/kernel/sched/
Ddebug.c17 #define SEQ_printf(m, x...) \ argument
19 if (m) \
20 seq_printf(m, x); \
59 static int sched_feat_show(struct seq_file *m, void *v) in sched_feat_show() argument
65 seq_puts(m, "NO_"); in sched_feat_show()
66 seq_printf(m, "%s ", sched_feat_names[i]); in sched_feat_show()
68 seq_puts(m, "\n"); in sched_feat_show()
375 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument
379 #define P(F) SEQ_printf(m, " .%-30s: %lld\n", #F, (long long)F) in print_cfs_group_stats()
380 #define P_SCHEDSTAT(F) SEQ_printf(m, " .%-30s: %lld\n", #F, (long long)schedstat_val(F)) in print_cfs_group_stats()
[all …]
Dcpuacct.c203 static int __cpuacct_percpu_seq_show(struct seq_file *m, in __cpuacct_percpu_seq_show() argument
206 struct cpuacct *ca = css_ca(seq_css(m)); in __cpuacct_percpu_seq_show()
212 seq_printf(m, "%llu ", (unsigned long long) percpu); in __cpuacct_percpu_seq_show()
214 seq_printf(m, "\n"); in __cpuacct_percpu_seq_show()
218 static int cpuacct_percpu_user_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_user_seq_show() argument
220 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_USER); in cpuacct_percpu_user_seq_show()
223 static int cpuacct_percpu_sys_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_sys_seq_show() argument
225 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_SYSTEM); in cpuacct_percpu_sys_seq_show()
228 static int cpuacct_percpu_seq_show(struct seq_file *m, void *V) in cpuacct_percpu_seq_show() argument
230 return __cpuacct_percpu_seq_show(m, CPUACCT_STAT_NSTATS); in cpuacct_percpu_seq_show()
[all …]
/kernel/bpf/
Dxskmap.c21 struct bpf_map *m = &map->map; in xsk_map_inc() local
23 m = bpf_map_inc(m, false); in xsk_map_inc()
24 return PTR_ERR_OR_ZERO(m); in xsk_map_inc()
83 struct xsk_map *m; in xsk_map_alloc() local
95 m = kzalloc(sizeof(*m), GFP_USER); in xsk_map_alloc()
96 if (!m) in xsk_map_alloc()
99 bpf_map_init_from_attr(&m->map, attr); in xsk_map_alloc()
100 spin_lock_init(&m->lock); in xsk_map_alloc()
102 cost = (u64)m->map.max_entries * sizeof(struct xdp_sock *); in xsk_map_alloc()
106 err = bpf_map_charge_init(&m->map.memory, cost); in xsk_map_alloc()
[all …]
Dinode.c156 static struct map_iter *map_iter(struct seq_file *m) in map_iter() argument
158 return m->private; in map_iter()
161 static struct bpf_map *seq_file_to_map(struct seq_file *m) in seq_file_to_map() argument
163 return file_inode(m->file)->i_private; in seq_file_to_map()
193 static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos) in map_seq_next() argument
195 struct bpf_map *map = seq_file_to_map(m); in map_seq_next()
196 void *key = map_iter(m)->key; in map_seq_next()
199 if (map_iter(m)->done) in map_seq_next()
208 map_iter(m)->done = true; in map_seq_next()
216 static void *map_seq_start(struct seq_file *m, loff_t *pos) in map_seq_start() argument
[all …]
Dlocal_storage.c338 struct btf_member *m; in cgroup_storage_check_btf() local
359 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf()
361 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
367 m++; in cgroup_storage_check_btf()
370 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
377 struct seq_file *m) in cgroup_storage_seq_show_elem() argument
391 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in cgroup_storage_seq_show_elem()
394 seq_puts(m, ": "); in cgroup_storage_seq_show_elem()
396 &READ_ONCE(storage->buf)->data[0], m); in cgroup_storage_seq_show_elem()
397 seq_puts(m, "\n"); in cgroup_storage_seq_show_elem()
[all …]
Dbtf.c297 struct seq_file *m);
628 const struct btf_member *m, in btf_member_is_reg_int() argument
635 id = m->type; in btf_member_is_reg_int()
643 u32 bitfield_size = BTF_MEMBER_BITFIELD_SIZE(m->offset); in btf_member_is_reg_int()
644 u32 bit_offset = BTF_MEMBER_BIT_OFFSET(m->offset); in btf_member_is_reg_int()
655 BITS_PER_BYTE_MASKED(m->offset) || in btf_member_is_reg_int()
656 BITS_ROUNDUP_BYTES(m->offset) != expected_offset || in btf_member_is_reg_int()
1148 struct seq_file *m) in btf_df_seq_show() argument
1150 seq_printf(m, "<unsupported kind:%u>", BTF_INFO_KIND(t->info)); in btf_df_seq_show()
1323 static void btf_int128_print(struct seq_file *m, void *data) in btf_int128_print() argument
[all …]
/kernel/configs/
Dxen.config25 CONFIG_XEN_BLKDEV_BACKEND=m
26 CONFIG_XEN_NETDEV_BACKEND=m
28 CONFIG_XEN_WDT=m
29 CONFIG_XEN_SCSI_BACKEND=m
31 CONFIG_XEN_FBDEV_FRONTEND=m
33 CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m
34 CONFIG_XEN_SCSI_FRONTEND=m
38 CONFIG_XEN_DEV_EVTCHN=m
39 CONFIG_XEN_BLKDEV_FRONTEND=m
40 CONFIG_XEN_NETDEV_FRONTEND=m
[all …]
/kernel/trace/
Dtrace_stack.c377 __next(struct seq_file *m, loff_t *pos) in __next() argument
384 m->private = (void *)n; in __next()
385 return &m->private; in __next()
389 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
392 return __next(m, pos); in t_next()
395 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
406 return __next(m, pos); in t_start()
409 static void t_stop(struct seq_file *m, void *p) in t_stop() argument
418 static void trace_lookup_stack(struct seq_file *m, long i) in trace_lookup_stack() argument
422 seq_printf(m, "%pS\n", (void *)addr); in trace_lookup_stack()
[all …]
Dtrace_branch.c236 static int annotated_branch_stat_headers(struct seq_file *m) in annotated_branch_stat_headers() argument
238 seq_puts(m, " correct incorrect % " in annotated_branch_stat_headers()
271 static void branch_stat_show(struct seq_file *m, in branch_stat_show() argument
282 seq_puts(m, " X "); in branch_stat_show()
284 seq_printf(m, "%3ld ", percent); in branch_stat_show()
286 seq_printf(m, "%-30.30s %-20.20s %d\n", p->func, f, p->line); in branch_stat_show()
289 static int branch_stat_show_normal(struct seq_file *m, in branch_stat_show_normal() argument
292 seq_printf(m, "%8lu %8lu ", p->correct, p->incorrect); in branch_stat_show_normal()
293 branch_stat_show(m, p, f); in branch_stat_show_normal()
297 static int annotate_branch_stat_show(struct seq_file *m, void *v) in annotate_branch_stat_show() argument
[all …]
Dtrace_printk.c288 t_start(struct seq_file *m, loff_t *pos) in t_start() argument
294 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next() argument
300 static int t_show(struct seq_file *m, void *v) in t_show() argument
309 seq_printf(m, "0x%lx : \"", *(unsigned long *)fmt); in t_show()
317 seq_puts(m, "\\n"); in t_show()
320 seq_puts(m, "\\t"); in t_show()
323 seq_putc(m, '\\'); in t_show()
326 seq_puts(m, "\\\""); in t_show()
329 seq_putc(m, str[i]); in t_show()
332 seq_puts(m, "\"\n"); in t_show()
[all …]
Dtrace_events_trigger.c115 static void *trigger_next(struct seq_file *m, void *t, loff_t *pos) in trigger_next() argument
117 struct trace_event_file *event_file = event_file_data(m->private); in trigger_next()
125 static void *trigger_start(struct seq_file *m, loff_t *pos) in trigger_start() argument
131 event_file = event_file_data(m->private); in trigger_start()
141 static void trigger_stop(struct seq_file *m, void *t) in trigger_stop() argument
146 static int trigger_show(struct seq_file *m, void *v) in trigger_show() argument
152 seq_puts(m, "# Available triggers:\n"); in trigger_show()
153 seq_putc(m, '#'); in trigger_show()
156 seq_printf(m, " %s", p->name); in trigger_show()
157 seq_putc(m, '\n'); in trigger_show()
[all …]
Dtrace.c485 int trace_pid_show(struct seq_file *m, void *v) in trace_pid_show() argument
489 seq_printf(m, "%lu\n", pid); in trace_pid_show()
3379 static void *s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument
3381 struct trace_iterator *iter = m->private; in s_next()
3440 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
3442 struct trace_iterator *iter = m->private; in s_start()
3480 for (p = iter; p && l < *pos; p = s_next(m, p, &l)) in s_start()
3492 p = s_next(m, p, &l); in s_start()
3501 static void s_stop(struct seq_file *m, void *p) in s_stop() argument
3503 struct trace_iterator *iter = m->private; in s_stop()
[all …]
Dtrace_events_hist.c379 static int synth_event_show(struct seq_file *m, struct dyn_event *ev);
1424 static int __synth_event_show(struct seq_file *m, struct synth_event *event) in __synth_event_show() argument
1429 seq_printf(m, "%s\t", event->name); in __synth_event_show()
1435 seq_printf(m, "%s %s%s", field->type, field->name, in __synth_event_show()
1439 seq_putc(m, '\n'); in __synth_event_show()
1444 static int synth_event_show(struct seq_file *m, struct dyn_event *ev) in synth_event_show() argument
1448 seq_printf(m, "s:%s/", event->class.system); in synth_event_show()
1450 return __synth_event_show(m, event); in synth_event_show()
1453 static int synth_events_seq_show(struct seq_file *m, void *v) in synth_events_seq_show() argument
1460 return __synth_event_show(m, to_synth_event(ev)); in synth_events_seq_show()
[all …]
Dtrace_functions.c501 ftrace_probe_print(const char *name, struct seq_file *m, in ftrace_probe_print() argument
508 seq_printf(m, "%ps:%s", (void *)ip, name); in ftrace_probe_print()
514 seq_printf(m, ":count=%ld\n", *count); in ftrace_probe_print()
516 seq_puts(m, ":unlimited\n"); in ftrace_probe_print()
522 ftrace_traceon_print(struct seq_file *m, unsigned long ip, in ftrace_traceon_print() argument
526 return ftrace_probe_print("traceon", m, ip, ops, data); in ftrace_traceon_print()
530 ftrace_traceoff_print(struct seq_file *m, unsigned long ip, in ftrace_traceoff_print() argument
533 return ftrace_probe_print("traceoff", m, ip, ops, data); in ftrace_traceoff_print()
537 ftrace_stacktrace_print(struct seq_file *m, unsigned long ip, in ftrace_stacktrace_print() argument
540 return ftrace_probe_print("stacktrace", m, ip, ops, data); in ftrace_stacktrace_print()
[all …]
Dftrace.c494 static int function_stat_headers(struct seq_file *m) in function_stat_headers() argument
497 seq_puts(m, " Function " in function_stat_headers()
502 seq_puts(m, " Function Hit\n" in function_stat_headers()
508 static int function_stat_show(struct seq_file *m, void *v) in function_stat_show() argument
533 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show()
536 seq_puts(m, " "); in function_stat_show()
563 trace_print_seq(m, &s); in function_stat_show()
565 seq_putc(m, '\n'); in function_stat_show()
3069 t_probe_next(struct seq_file *m, loff_t *pos) in t_probe_next() argument
3071 struct ftrace_iterator *iter = m->private; in t_probe_next()
[all …]
Dtrace_events.c861 struct seq_file *m = file->private_data; in ftrace_event_write() local
862 struct trace_array *tr = m->private; in ftrace_event_write()
897 t_next(struct seq_file *m, void *v, loff_t *pos) in t_next() argument
901 struct trace_array *tr = m->private; in t_next()
919 static void *t_start(struct seq_file *m, loff_t *pos) in t_start() argument
922 struct trace_array *tr = m->private; in t_start()
929 file = t_next(m, file, &l); in t_start()
937 s_next(struct seq_file *m, void *v, loff_t *pos) in s_next() argument
940 struct trace_array *tr = m->private; in s_next()
952 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
[all …]
Dtrace_dynevent.h43 int (*show)(struct seq_file *m, struct dyn_event *ev);
96 void *dyn_event_seq_start(struct seq_file *m, loff_t *pos);
97 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos);
98 void dyn_event_seq_stop(struct seq_file *m, void *v);
/kernel/power/
Dswap.c534 unsigned int m; in save_image() local
546 m = nr_to_write / 10; in save_image()
547 if (!m) in save_image()
548 m = 1; in save_image()
558 if (!(nr_pages % m)) in save_image()
560 nr_pages / m * 10); in save_image()
670 unsigned int m; in save_image_lzo() local
764 m = nr_to_write / 10; in save_image_lzo()
765 if (!m) in save_image_lzo()
766 m = 1; in save_image_lzo()
[all …]
/kernel/
Ddma.c118 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument
124 seq_printf(m, "%2d: %s\n", i, in proc_dma_show()
131 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument
133 seq_puts(m, "No DMA\n"); in proc_dma_show()

123