Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 98) sorted by relevance

1234

/kernel/bpf/
A Dlink_iter.c27 static void *bpf_link_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_link_seq_next() argument
33 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_next()
44 static int __bpf_link_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC()
52 ctx.link = v; in DEFINE_BPF_ITER_FUNC()
61 static int bpf_link_seq_show(struct seq_file *seq, void *v) in bpf_link_seq_show() argument
63 return __bpf_link_seq_show(seq, v, false); in bpf_link_seq_show()
66 static void bpf_link_seq_stop(struct seq_file *seq, void *v) in bpf_link_seq_stop() argument
68 if (!v) in bpf_link_seq_stop()
69 (void)__bpf_link_seq_show(seq, v, true); in bpf_link_seq_stop()
71 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_stop()
A Dprog_iter.c27 static void *bpf_prog_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_prog_seq_next() argument
33 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_next()
44 static int __bpf_prog_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC()
52 ctx.prog = v; in DEFINE_BPF_ITER_FUNC()
61 static int bpf_prog_seq_show(struct seq_file *seq, void *v) in bpf_prog_seq_show() argument
63 return __bpf_prog_seq_show(seq, v, false); in bpf_prog_seq_show()
66 static void bpf_prog_seq_stop(struct seq_file *seq, void *v) in bpf_prog_seq_stop() argument
68 if (!v) in bpf_prog_seq_stop()
69 (void)__bpf_prog_seq_show(seq, v, true); in bpf_prog_seq_stop()
71 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_stop()
A Dtnum.c93 u64 alpha, beta, v; in tnum_and() local
97 v = a.value & b.value; in tnum_and()
98 return TNUM(v, alpha & beta & ~v); in tnum_and()
103 u64 v, mu; in tnum_or() local
105 v = a.value | b.value; in tnum_or()
107 return TNUM(v, mu & ~v); in tnum_or()
112 u64 v, mu; in tnum_xor() local
114 v = a.value ^ b.value; in tnum_xor()
116 return TNUM(v & ~mu, mu); in tnum_xor()
151 u64 v, mu; in tnum_intersect() local
[all …]
A Ddmabuf_iter.c17 static void *dmabuf_iter_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dmabuf_iter_seq_next() argument
19 struct dma_buf *dmabuf = v; in dmabuf_iter_seq_next()
31 static int __dmabuf_seq_show(struct seq_file *seq, void *v, bool in_stop) in __dmabuf_seq_show() argument
38 .dmabuf = v, in __dmabuf_seq_show()
48 static int dmabuf_iter_seq_show(struct seq_file *seq, void *v) in dmabuf_iter_seq_show() argument
50 return __dmabuf_seq_show(seq, v, false); in dmabuf_iter_seq_show()
53 static void dmabuf_iter_seq_stop(struct seq_file *seq, void *v) in dmabuf_iter_seq_stop() argument
55 struct dma_buf *dmabuf = v; in dmabuf_iter_seq_stop()
A Dmap_iter.c27 static void *bpf_map_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_map_seq_next() argument
33 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_next()
44 static int __bpf_map_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC()
52 ctx.map = v; in DEFINE_BPF_ITER_FUNC()
61 static int bpf_map_seq_show(struct seq_file *seq, void *v) in bpf_map_seq_show() argument
63 return __bpf_map_seq_show(seq, v, false); in bpf_map_seq_show()
66 static void bpf_map_seq_stop(struct seq_file *seq, void *v) in bpf_map_seq_stop() argument
68 if (!v) in bpf_map_seq_stop()
69 (void)__bpf_map_seq_show(seq, v, true); in bpf_map_seq_stop()
71 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_stop()
A Dtask_iter.c160 put_task_struct((struct task_struct *)v); in task_seq_next()
194 return __task_seq_show(seq, v, false); in task_seq_show()
199 if (!v) in task_seq_stop()
200 (void)__task_seq_show(seq, v, true); in task_seq_stop()
202 put_task_struct((struct task_struct *)v); in task_seq_stop()
328 fput((struct file *)v); in task_file_seq_next()
365 return __task_file_seq_show(seq, v, false); in task_file_seq_show()
372 if (!v) { in task_file_seq_stop()
373 (void)__task_file_seq_show(seq, v, true); in task_file_seq_stop()
375 fput((struct file *)v); in task_file_seq_stop()
[all …]
A Dkmem_cache_iter.c152 static void kmem_cache_iter_seq_stop(struct seq_file *seq, void *v) in kmem_cache_iter_seq_stop() argument
157 .s = v, in kmem_cache_iter_seq_stop()
170 static void *kmem_cache_iter_seq_next(struct seq_file *seq, void *v, loff_t *pos) in kmem_cache_iter_seq_next() argument
179 static int kmem_cache_iter_seq_show(struct seq_file *seq, void *v) in kmem_cache_iter_seq_show() argument
184 .s = v, in kmem_cache_iter_seq_show()
A Dcgroup_iter.c88 static void cgroup_iter_seq_stop(struct seq_file *seq, void *v) in cgroup_iter_seq_stop() argument
95 if (!v) { in cgroup_iter_seq_stop()
101 static void *cgroup_iter_seq_next(struct seq_file *seq, void *v, loff_t *pos) in cgroup_iter_seq_next() argument
103 struct cgroup_subsys_state *curr = (struct cgroup_subsys_state *)v; in cgroup_iter_seq_next()
147 static int cgroup_iter_seq_show(struct seq_file *seq, void *v) in cgroup_iter_seq_show() argument
149 return __cgroup_iter_seq_show(seq, (struct cgroup_subsys_state *)v, in cgroup_iter_seq_show()
/kernel/
A Dnotifier.c66 unsigned long val, void *v, in notifier_call_chain() argument
85 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
116 void *v) in notifier_call_chain_robust() argument
120 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
122 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust()
218 unsigned long val, void *v) in atomic_notifier_call_chain() argument
223 ret = notifier_call_chain(&nh->head, val, v, -1, NULL); in atomic_notifier_call_chain()
334 unsigned long val_up, unsigned long val_down, void *v) in blocking_notifier_call_chain_robust() argument
369 unsigned long val, void *v) in blocking_notifier_call_chain() argument
451 unsigned long val, void *v) in raw_notifier_call_chain() argument
[all …]
A Dcompat.c253 compat_sigset_t v; in get_compat_sigset() local
254 if (copy_from_user(&v, compat, sizeof(compat_sigset_t))) in get_compat_sigset()
257 case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); in get_compat_sigset()
259 case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 ); in get_compat_sigset()
261 case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 ); in get_compat_sigset()
263 case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 ); in get_compat_sigset()
A Djump_label.c129 int v; in static_key_fast_inc_not_disabled() local
141 v = atomic_read(&key->enabled); in static_key_fast_inc_not_disabled()
143 if (v <= 0 || v == INT_MAX) in static_key_fast_inc_not_disabled()
145 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
255 int v; in static_key_dec_not_one() local
268 v = atomic_read(&key->enabled); in static_key_dec_not_one()
276 WARN_ON_ONCE(v < 0); in static_key_dec_not_one()
282 if (WARN_ON_ONCE(v == 0)) in static_key_dec_not_one()
285 if (v <= 1) in static_key_dec_not_one()
287 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v - 1))); in static_key_dec_not_one()
A Ducount.c202 static inline bool atomic_long_inc_below(atomic_long_t *v, long u) in atomic_long_inc_below() argument
204 long c = atomic_long_read(v); in atomic_long_inc_below()
209 } while (!atomic_long_try_cmpxchg(v, &c, c+1)); in atomic_long_inc_below()
247 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) in inc_rlimit_ucounts() argument
254 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts()
264 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) in dec_rlimit_ucounts() argument
269 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts()
A Dfail_function.c189 static void fei_seq_stop(struct seq_file *m, void *v) in fei_seq_stop() argument
194 static void *fei_seq_next(struct seq_file *m, void *v, loff_t *pos) in fei_seq_next() argument
196 return seq_list_next(v, &fei_attr_list, pos); in fei_seq_next()
199 static int fei_seq_show(struct seq_file *m, void *v) in fei_seq_show() argument
201 struct fei_attr *attr = list_entry(v, struct fei_attr, list); in fei_seq_show()
/kernel/time/
A Ditimer.c103 struct __kernel_old_itimerval v; in put_itimerval() local
105 v.it_interval.tv_sec = i->it_interval.tv_sec; in put_itimerval()
107 v.it_value.tv_sec = i->it_value.tv_sec; in put_itimerval()
108 v.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_itimerval()
275 struct itimerspec64 v = {}; in clear_itimer() local
279 do_setitimer(i, &v, NULL); in clear_itimer()
335 struct __kernel_old_itimerval v; in get_itimerval() local
341 if (!timeval_valid(&v.it_value) || in get_itimerval()
342 !timeval_valid(&v.it_interval)) in get_itimerval()
345 o->it_interval.tv_sec = v.it_interval.tv_sec; in get_itimerval()
[all …]
/kernel/trace/
A Dtrace_printk.c123 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
136 if (!v || start_index == *pos) { in find_next_mod_format()
153 mod_fmt = container_of(v, typeof(*mod_fmt), fmt); in find_next_mod_format()
180 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument
265 static const char **find_next(void *v, loff_t *pos) in find_next() argument
267 const char **fmt = v; in find_next()
295 return find_next_mod_format(start_index, v, fmt, pos); in find_next()
305 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next() argument
308 return find_next(v, pos); in t_next()
311 static int t_show(struct seq_file *m, void *v) in t_show() argument
[all …]
A Dtrace_sched_switch.c475 static void saved_tgids_stop(struct seq_file *m, void *v) in saved_tgids_stop() argument
479 static int saved_tgids_show(struct seq_file *m, void *v) in saved_tgids_show() argument
481 int *entry = (int *)v; in saved_tgids_show()
520 unsigned int *ptr = v; in saved_cmdlines_next()
540 void *v; in saved_cmdlines_start() local
546 v = &savedcmd->map_cmdline_to_pid[0]; in saved_cmdlines_start()
548 v = saved_cmdlines_next(m, v, &l); in saved_cmdlines_start()
549 if (!v) in saved_cmdlines_start()
553 return v; in saved_cmdlines_start()
562 static int saved_cmdlines_show(struct seq_file *m, void *v) in saved_cmdlines_show() argument
[all …]
A Dtrace_branch.c291 static int annotate_branch_stat_show(struct seq_file *m, void *v) in annotate_branch_stat_show() argument
293 struct ftrace_likely_data *p = v; in annotate_branch_stat_show()
317 annotated_branch_stat_next(void *v, int idx) in annotated_branch_stat_next() argument
319 struct ftrace_likely_data *p = v; in annotated_branch_stat_next()
407 all_branch_stat_next(void *v, int idx) in all_branch_stat_next() argument
409 struct ftrace_branch_data *p = v; in all_branch_stat_next()
419 static int all_branch_stat_show(struct seq_file *m, void *v) in all_branch_stat_show() argument
421 struct ftrace_branch_data *p = v; in all_branch_stat_show()
A Dtrace_recursion_record.c141 static void *recursed_function_seq_next(struct seq_file *m, void *v, loff_t *pos) in recursed_function_seq_next() argument
152 static void recursed_function_seq_stop(struct seq_file *m, void *v) in recursed_function_seq_stop() argument
158 static int recursed_function_seq_show(struct seq_file *m, void *v) in recursed_function_seq_show() argument
160 struct recursed_functions *record = v; in recursed_function_seq_show()
/kernel/locking/
A Dlockdep_proc.c40 struct lock_class *class = v; in l_next()
56 static void l_stop(struct seq_file *m, void *v) in l_stop() argument
77 static int l_show(struct seq_file *m, void *v) in l_show() argument
79 struct lock_class *class = v; in l_show()
84 if (v == lock_classes) in l_show()
145 static void lc_stop(struct seq_file *m, void *v) in lc_stop() argument
149 static int lc_show(struct seq_file *m, void *v) in lc_show() argument
151 struct lock_chain *chain = v; in lc_show()
162 if (v == SEQ_START_TOKEN) { in lc_show()
626 if (v == SEQ_START_TOKEN) in ls_show()
[all …]
/kernel/gcov/
A Dbase.c63 size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument
69 *data = v; in store_gcov_u32()
87 size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument
94 data[0] = (v & 0xffffffffUL); in store_gcov_u64()
95 data[1] = (v >> 32); in store_gcov_u64()
/kernel/rcu/
A Drcu_segcblist.c82 static void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_set_len() argument
85 atomic_long_set(&rsclp->len, v); in rcu_segcblist_set_len()
87 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_set_len()
110 static void rcu_segcblist_set_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_set_seglen() argument
112 WRITE_ONCE(rsclp->seglen[seg], v); in rcu_segcblist_set_seglen()
116 static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_add_seglen() argument
118 WRITE_ONCE(rsclp->seglen[seg], rsclp->seglen[seg] + v); in rcu_segcblist_add_seglen()
210 void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_add_len() argument
214 atomic_long_add(v, &rsclp->len); in rcu_segcblist_add_len()
218 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
/kernel/irq/
A Dproc.c81 static int irq_affinity_hint_proc_show(struct seq_file *m, void *v) in irq_affinity_hint_proc_show() argument
100 static int irq_affinity_proc_show(struct seq_file *m, void *v) in irq_affinity_proc_show() argument
105 static int irq_affinity_list_proc_show(struct seq_file *m, void *v) in irq_affinity_list_proc_show() argument
214 static int irq_effective_aff_proc_show(struct seq_file *m, void *v) in irq_effective_aff_proc_show() argument
219 static int irq_effective_aff_list_proc_show(struct seq_file *m, void *v) in irq_effective_aff_list_proc_show() argument
225 static int default_affinity_show(struct seq_file *m, void *v) in default_affinity_show() argument
275 static int irq_node_proc_show(struct seq_file *m, void *v) in irq_node_proc_show() argument
284 static int irq_spurious_proc_show(struct seq_file *m, void *v) in irq_spurious_proc_show() argument
450 int show_interrupts(struct seq_file *p, void *v) in show_interrupts() argument
455 int i = *(loff_t *) v, j; in show_interrupts()
/kernel/printk/
A Dindex.c43 static void *pi_next(struct seq_file *s, void *v, loff_t *pos) in pi_next() argument
73 static int pi_show(struct seq_file *s, void *v) in pi_show() argument
75 const struct pi_entry *entry = v; in pi_show()
80 if (v == SEQ_START_TOKEN) { in pi_show()
116 static void pi_stop(struct seq_file *p, void *v) { } in pi_stop() argument
/kernel/cgroup/
A Ddmem.c644 static int dmem_cgroup_region_capacity_show(struct seq_file *sf, void *v) in dmem_cgroup_region_capacity_show() argument
730 static int dmemcg_limit_show(struct seq_file *sf, void *v, in dmemcg_limit_show() argument
754 static int dmem_cgroup_region_current_show(struct seq_file *sf, void *v) in dmem_cgroup_region_current_show() argument
756 return dmemcg_limit_show(sf, v, get_resource_current); in dmem_cgroup_region_current_show()
759 static int dmem_cgroup_region_min_show(struct seq_file *sf, void *v) in dmem_cgroup_region_min_show() argument
761 return dmemcg_limit_show(sf, v, get_resource_min); in dmem_cgroup_region_min_show()
770 static int dmem_cgroup_region_low_show(struct seq_file *sf, void *v) in dmem_cgroup_region_low_show() argument
772 return dmemcg_limit_show(sf, v, get_resource_low); in dmem_cgroup_region_low_show()
781 static int dmem_cgroup_region_max_show(struct seq_file *sf, void *v) in dmem_cgroup_region_max_show() argument
783 return dmemcg_limit_show(sf, v, get_resource_max); in dmem_cgroup_region_max_show()
A Dmisc.c216 static int misc_cg_max_show(struct seq_file *sf, void *v) in misc_cg_max_show() argument
305 static int misc_cg_current_show(struct seq_file *sf, void *v) in misc_cg_current_show() argument
328 static int misc_cg_peak_show(struct seq_file *sf, void *v) in misc_cg_peak_show() argument
353 static int misc_cg_capacity_show(struct seq_file *sf, void *v) in misc_cg_capacity_show() argument
384 static int misc_events_show(struct seq_file *sf, void *v) in misc_events_show() argument
389 static int misc_events_local_show(struct seq_file *sf, void *v) in misc_events_local_show() argument

Completed in 50 milliseconds

1234