Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 36) sorted by relevance

12

/kernel/rcu/
Dsrcu.c44 static inline void rcu_batch_init(struct rcu_batch *b) in rcu_batch_init() argument
46 b->head = NULL; in rcu_batch_init()
47 b->tail = &b->head; in rcu_batch_init()
53 static inline void rcu_batch_queue(struct rcu_batch *b, struct rcu_head *head) in rcu_batch_queue() argument
55 *b->tail = head; in rcu_batch_queue()
56 b->tail = &head->next; in rcu_batch_queue()
62 static inline bool rcu_batch_empty(struct rcu_batch *b) in rcu_batch_empty() argument
64 return b->tail == &b->head; in rcu_batch_empty()
71 static inline struct rcu_head *rcu_batch_dequeue(struct rcu_batch *b) in rcu_batch_dequeue() argument
75 if (rcu_batch_empty(b)) in rcu_batch_dequeue()
[all …]
Dtree_plugin.h245 t->rcu_read_unlock_special.b.exp_need_qs) { in rcu_preempt_ctxt_queue()
246 t->rcu_read_unlock_special.b.exp_need_qs = false; in rcu_preempt_ctxt_queue()
249 WARN_ON_ONCE(t->rcu_read_unlock_special.b.exp_need_qs); in rcu_preempt_ctxt_queue()
268 __this_cpu_write(rcu_data_p->cpu_no_qs.b.norm, false); in rcu_preempt_qs()
270 current->rcu_read_unlock_special.b.need_qs = false; in rcu_preempt_qs()
294 !t->rcu_read_unlock_special.b.blocked) { in rcu_preempt_note_context_switch()
300 t->rcu_read_unlock_special.b.blocked = true; in rcu_preempt_note_context_switch()
401 if (special.b.need_qs) { in rcu_read_unlock_special()
403 t->rcu_read_unlock_special.b.need_qs = false; in rcu_read_unlock_special()
417 if (special.b.exp_need_qs) { in rcu_read_unlock_special()
[all …]
Dtree_exp.h310 __this_cpu_read(rcu_sched_data.cpu_no_qs.b.exp)) in sync_sched_exp_handler()
317 __this_cpu_write(rcu_sched_data.cpu_no_qs.b.exp, true); in sync_sched_exp_handler()
646 !t->rcu_read_unlock_special.b.blocked) { in sync_rcu_exp_handler()
647 t->rcu_read_unlock_special.b.exp_need_qs = true; in sync_rcu_exp_handler()
Dtree.c255 __this_cpu_write(rcu_sched_data.cpu_no_qs.b.norm, false); in rcu_sched_qs()
256 if (!__this_cpu_read(rcu_sched_data.cpu_no_qs.b.exp)) in rcu_sched_qs()
258 __this_cpu_write(rcu_sched_data.cpu_no_qs.b.exp, false); in rcu_sched_qs()
269 __this_cpu_write(rcu_bh_data.cpu_no_qs.b.norm, false); in rcu_bh_qs()
379 if (unlikely(raw_cpu_read(rcu_sched_data.cpu_no_qs.b.exp))) { in rcu_all_qs()
1890 rdp->cpu_no_qs.b.norm = need_gp; in __note_gp_changes()
2479 if ((rdp->cpu_no_qs.b.norm && in rcu_report_qs_rdp()
2490 rdp->cpu_no_qs.b.norm = true; /* need qs for new gp. */ in rcu_report_qs_rdp()
2537 if (rdp->cpu_no_qs.b.norm && in rcu_check_quiescent_state()
3495 rdp->core_needs_qs && rdp->cpu_no_qs.b.norm && in __rcu_pending()
[all …]
Dtree.h306 } b; /* Bits. */ member
/kernel/time/
Dtimeconst.bc3 define gcd(a,b) {
5 while (b) {
6 t = b;
7 b = a % b;
14 define fmul(b,n,d) {
15 return (2^b*n+d-1)/d;
20 define fadj(b,n,d) {
23 v = 2^b*(d-1)/d;
28 which brings the mul value into the range 2^b-1 <= x < 2^b. Such
31 define fmuls(b,n,d) {
[all …]
Dtimeconv.c43 static long math_div(long a, long b) in math_div() argument
45 return a / b - (a % b < 0); in math_div()
Dtimer.c1857 int b; in timers_prepare_cpu() local
1859 for (b = 0; b < NR_BASES; b++) { in timers_prepare_cpu()
1860 base = per_cpu_ptr(&timer_bases[b], cpu); in timers_prepare_cpu()
1873 int b, i; in timers_dead_cpu() local
1877 for (b = 0; b < NR_BASES; b++) { in timers_dead_cpu()
1878 old_base = per_cpu_ptr(&timer_bases[b], cpu); in timers_dead_cpu()
1879 new_base = get_cpu_ptr(&timer_bases[b]); in timers_dead_cpu()
Dhrtimer.c270 # define switch_hrtimer_base(t, b, p) (b) argument
716 static inline int __hrtimer_hres_active(struct hrtimer_cpu_base *b) { return 0; } in __hrtimer_hres_active() argument
/kernel/trace/
Dtrace_events_filter_test.h11 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),
17 __field(int, b)
28 __entry->b = b;
38 __entry->a, __entry->b, __entry->c, __entry->d,
Dtracing_map.c72 char *b = val_b; in tracing_map_cmp_string() local
74 return strcmp(a, b); in tracing_map_cmp_string()
85 u64 b = atomic64_read((atomic64_t *)val_b); in tracing_map_cmp_atomic64() local
87 return (a > b) ? 1 : ((a < b) ? -1 : 0); in tracing_map_cmp_atomic64()
94 type b = *(type *)val_b; \
96 return (a > b) ? 1 : ((a < b) ? -1 : 0); \
707 const struct tracing_map_sort_entry **b) in cmp_entries_dup() argument
711 if (memcmp((*a)->key, (*b)->key, (*a)->elt->map->key_size)) in cmp_entries_dup()
718 const struct tracing_map_sort_entry **b) in cmp_entries_sum() argument
728 elt_b = (*b)->elt; in cmp_entries_sum()
[all …]
Dtrace_branch.c295 struct ftrace_branch_data *b = p2; in annotated_branch_stat_cmp() local
300 percent_b = get_incorrect_percent(b); in annotated_branch_stat_cmp()
307 if (a->incorrect < b->incorrect) in annotated_branch_stat_cmp()
309 if (a->incorrect > b->incorrect) in annotated_branch_stat_cmp()
317 if (a->correct > b->correct) in annotated_branch_stat_cmp()
319 if (a->correct < b->correct) in annotated_branch_stat_cmp()
Dtrace_hwlat.c137 #define time_sub(a, b) ((a) - (b)) argument
138 #define init_time(a, b) (a = b) argument
Dtrace.h366 #define TRACER_OPT(s, b) .name = #s, .bit = b argument
1021 #define C(a, b) TRACE_ITER_##a##_BIT argument
1034 #define C(a, b) TRACE_ITER_##a = (1 << TRACE_ITER_##a##_BIT) argument
Dblktrace.c658 char b[BDEVNAME_SIZE]; in blk_trace_ioctl() local
668 bdevname(bdev, b); in blk_trace_ioctl()
669 ret = blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl()
673 bdevname(bdev, b); in blk_trace_ioctl()
674 ret = compat_blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl()
Dftrace.c553 struct ftrace_profile *b = p2; in function_stat_cmp() local
555 if (a->time < b->time) in function_stat_cmp()
557 if (a->time > b->time) in function_stat_cmp()
567 struct ftrace_profile *b = p2; in function_stat_cmp() local
569 if (a->counter < b->counter) in function_stat_cmp()
571 if (a->counter > b->counter) in function_stat_cmp()
1532 static int ftrace_cmp_recs(const void *a, const void *b) in ftrace_cmp_recs() argument
1535 const struct dyn_ftrace *rec = b; in ftrace_cmp_recs()
4865 static int ftrace_cmp_ips(const void *a, const void *b) in ftrace_cmp_ips() argument
4868 const unsigned long *ipb = b; in ftrace_cmp_ips()
/kernel/bpf/
Dhashtab.c524 struct bucket *b; in htab_map_update_elem() local
538 b = __select_bucket(htab, hash); in htab_map_update_elem()
539 head = &b->head; in htab_map_update_elem()
542 raw_spin_lock_irqsave(&b->lock, flags); in htab_map_update_elem()
568 raw_spin_unlock_irqrestore(&b->lock, flags); in htab_map_update_elem()
580 struct bucket *b; in __htab_percpu_map_update_elem() local
594 b = __select_bucket(htab, hash); in __htab_percpu_map_update_elem()
595 head = &b->head; in __htab_percpu_map_update_elem()
598 raw_spin_lock_irqsave(&b->lock, flags); in __htab_percpu_map_update_elem()
634 raw_spin_unlock_irqrestore(&b->lock, flags); in __htab_percpu_map_update_elem()
[all …]
/kernel/
Dauditfilter.c667 static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b) in audit_compare_rule() argument
671 if (a->flags != b->flags || in audit_compare_rule()
672 a->pflags != b->pflags || in audit_compare_rule()
673 a->listnr != b->listnr || in audit_compare_rule()
674 a->action != b->action || in audit_compare_rule()
675 a->field_count != b->field_count) in audit_compare_rule()
679 if (a->fields[i].type != b->fields[i].type || in audit_compare_rule()
680 a->fields[i].op != b->fields[i].op) in audit_compare_rule()
694 if (strcmp(a->fields[i].lsm_str, b->fields[i].lsm_str)) in audit_compare_rule()
699 audit_watch_path(b->watch))) in audit_compare_rule()
[all …]
Dcpuset.c546 static int cpusets_overlap(struct cpuset *a, struct cpuset *b) in cpusets_overlap() argument
548 return cpumask_intersects(a->effective_cpus, b->effective_cpus); in cpusets_overlap()
714 struct cpuset *b = csa[j]; in generate_sched_domains() local
715 int bpn = b->pn; in generate_sched_domains()
717 if (apn != bpn && cpusets_overlap(a, b)) { in generate_sched_domains()
770 struct cpuset *b = csa[j]; in generate_sched_domains() local
772 if (apn == b->pn) { in generate_sched_domains()
773 cpumask_or(dp, dp, b->effective_cpus); in generate_sched_domains()
776 update_domain_attr_tree(dattr + nslot, b); in generate_sched_domains()
779 b->pn = -1; in generate_sched_domains()
Dmodule.c124 mod_tree_less(struct latch_tree_node *a, struct latch_tree_node *b) in mod_tree_less() argument
126 return __mod_tree_val(a) < __mod_tree_val(b); in mod_tree_less()
538 const struct kernel_symbol *b; in cmp_name() local
539 a = va; b = vb; in cmp_name()
540 return strcmp(a, b->name); in cmp_name()
790 static int already_uses(struct module *a, struct module *b) in already_uses() argument
794 list_for_each_entry(use, &b->source_list, source_list) { in already_uses()
796 pr_debug("%s uses %s!\n", a->name, b->name); in already_uses()
800 pr_debug("%s does not use %s!\n", a->name, b->name); in already_uses()
811 static int add_module_usage(struct module *a, struct module *b) in add_module_usage() argument
[all …]
Dsys.c67 # define SET_UNALIGN_CTL(a, b) (-EINVAL) argument
70 # define GET_UNALIGN_CTL(a, b) (-EINVAL) argument
73 # define SET_FPEMU_CTL(a, b) (-EINVAL) argument
76 # define GET_FPEMU_CTL(a, b) (-EINVAL) argument
79 # define SET_FPEXC_CTL(a, b) (-EINVAL) argument
82 # define GET_FPEXC_CTL(a, b) (-EINVAL) argument
85 # define GET_ENDIAN(a, b) (-EINVAL) argument
88 # define SET_ENDIAN(a, b) (-EINVAL) argument
106 # define SET_FP_MODE(a,b) (-EINVAL) argument
Dparams.c95 bool parameqn(const char *a, const char *b, size_t n) in parameqn() argument
100 if (dash2underscore(a[i]) != dash2underscore(b[i])) in parameqn()
106 bool parameq(const char *a, const char *b) in parameq() argument
108 return parameqn(a, b, strlen(a)+1); in parameq()
Djump_label.c34 static int jump_label_cmp(const void *a, const void *b) in jump_label_cmp() argument
37 const struct jump_entry *jeb = b; in jump_label_cmp()
Dpid.c118 static int pid_before(int base, int a, int b) in pid_before() argument
126 return (unsigned)(a - base) < (unsigned)(b - base); in pid_before()
/kernel/printk/
Dprintk.c2777 struct console *a, *b; in unregister_console() local
2794 for (a=console_drivers->next, b=console_drivers ; in unregister_console()
2795 a; b=a, a=b->next) { in unregister_console()
2797 b->next = a->next; in unregister_console()

12