/kernel/locking/ |
D | qspinlock.c | 125 atomic_t val; member 192 atomic_add(-_Q_PENDING_VAL + _Q_LOCKED_VAL, &lock->val); in clear_pending_set_locked() 207 u32 old, new, val = atomic_read(&lock->val); in xchg_tail() local 210 new = (val & _Q_LOCKED_PENDING_MASK) | tail; in xchg_tail() 211 old = atomic_cmpxchg(&lock->val, val, new); in xchg_tail() 212 if (old == val) in xchg_tail() 215 val = old; in xchg_tail() 293 u32 val; in queued_spin_unlock_wait() local 296 val = atomic_read(&lock->val); in queued_spin_unlock_wait() 298 if (!val) /* not locked, we're done */ in queued_spin_unlock_wait() [all …]
|
/kernel/sched/ |
D | cpuacct.c | 118 static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) in cpuacct_cpuusage_write() argument 127 *cpuusage = val; in cpuacct_cpuusage_write() 130 *cpuusage = val; in cpuacct_cpuusage_write() 189 s64 val = 0; in cpuacct_stats_show() local 193 val += kcpustat->cpustat[CPUTIME_USER]; in cpuacct_stats_show() 194 val += kcpustat->cpustat[CPUTIME_NICE]; in cpuacct_stats_show() 196 val = cputime64_to_clock_t(val); in cpuacct_stats_show() 197 seq_printf(sf, "%s %lld\n", cpuacct_stat_desc[CPUACCT_STAT_USER], val); in cpuacct_stats_show() 199 val = 0; in cpuacct_stats_show() 202 val += kcpustat->cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show() [all …]
|
D | energy.c | 57 const __be32 *val; in init_sched_energy_costs() local 90 for (i = 0, val = prop->value; i < nstates; i++) { in init_sched_energy_costs() 91 cap_states[i].cap = be32_to_cpup(val++); in init_sched_energy_costs() 92 cap_states[i].power = be32_to_cpup(val++); in init_sched_energy_costs() 109 for (i = 0, val = prop->value; i < nstates; i++) in init_sched_energy_costs() 110 idle_states[i].power = be32_to_cpup(val++); in init_sched_energy_costs()
|
D | clock.c | 231 u64 *ptr, old_val, val; in sched_clock_remote() local 273 val = this_clock; in sched_clock_remote() 280 val = remote_clock; in sched_clock_remote() 283 if (cmpxchg64(ptr, old_val, val) != old_val) in sched_clock_remote() 286 return val; in sched_clock_remote()
|
D | wait.c | 498 unsigned long val = (unsigned long)word << shift | bit; in bit_waitqueue() local 500 return &zone->wait_table[hash_long(val, zone->wait_table_bits)]; in bit_waitqueue() 524 atomic_t *val = key->flags; in wake_atomic_t_function() local 528 atomic_read(val) != 0) in wake_atomic_t_function() 542 atomic_t *val; in __wait_on_atomic_t() local 547 val = q->key.flags; in __wait_on_atomic_t() 548 if (atomic_read(val) == 0) in __wait_on_atomic_t() 550 ret = (*action)(val); in __wait_on_atomic_t() 551 } while (!ret && atomic_read(val) != 0); in __wait_on_atomic_t()
|
D | cpuacct.h | 4 extern void cpuacct_account_field(struct task_struct *p, int index, u64 val); 13 cpuacct_account_field(struct task_struct *p, int index, u64 val) in cpuacct_account_field() argument
|
D | stats.h | 34 # define schedstat_set(var, val) do { var = (val); } while (0) argument 47 # define schedstat_set(var, val) do { } while (0) argument
|
/kernel/ |
D | params.c | 52 char val[]; member 69 return p->val; in kmalloc_parameter() 79 if (p->val == param) { in maybe_kfree_parameter() 121 char *val, in parse_one() argument 128 int (*handle_unknown)(char *param, char *val, in parse_one() 141 if (!val && in parse_one() 148 err = params[i].ops->set(val, ¶ms[i]); in parse_one() 155 pr_debug("doing %s: %s='%s'\n", doing, param, val); in parse_one() 156 return handle_unknown(param, val, doing, arg); in parse_one() 165 static char *next_arg(char *args, char **param, char **val) in next_arg() argument [all …]
|
D | notifier.c | 75 unsigned long val, void *v, in notifier_call_chain() argument 93 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 177 unsigned long val, void *v, in __atomic_notifier_call_chain() argument 183 ret = notifier_call_chain(&nh->head, val, v, nr_to_call, nr_calls); in __atomic_notifier_call_chain() 191 unsigned long val, void *v) in atomic_notifier_call_chain() argument 193 return __atomic_notifier_call_chain(nh, val, v, -1, NULL); in atomic_notifier_call_chain() 305 unsigned long val, void *v, in __blocking_notifier_call_chain() argument 317 ret = notifier_call_chain(&nh->head, val, v, nr_to_call, in __blocking_notifier_call_chain() 326 unsigned long val, void *v) in blocking_notifier_call_chain() argument 328 return __blocking_notifier_call_chain(nh, val, v, -1, NULL); in blocking_notifier_call_chain() [all …]
|
D | sysctl.c | 2063 unsigned long *val, bool *neg, in proc_get_long() argument 2088 *val = simple_strtoul(p, &p, 0); in proc_get_long() 2121 static int proc_put_long(void __user **buf, size_t *size, unsigned long val, in proc_put_long() argument 2127 sprintf(p, "%s%lu", neg ? "-" : "", val); in proc_put_long() 2166 int val = *valp; in do_proc_dointvec_conv() local 2167 if (val < 0) { in do_proc_dointvec_conv() 2169 *lvalp = -(unsigned long)val; in do_proc_dointvec_conv() 2172 *lvalp = (unsigned long)val; in do_proc_dointvec_conv() 2189 unsigned int val = *valp; in do_proc_douintvec_conv() local 2191 *lvalp = (unsigned long)val; in do_proc_douintvec_conv() [all …]
|
D | cpu.c | 226 static int __cpu_notify(unsigned long val, void *v, int nr_to_call, in __cpu_notify() argument 231 ret = __raw_notifier_call_chain(&cpu_chain, val, v, nr_to_call, in __cpu_notify() 237 static int cpu_notify(unsigned long val, void *v) in cpu_notify() argument 239 return __cpu_notify(val, v, -1, NULL); in cpu_notify() 260 static void cpu_notify_nofail(unsigned long val, void *v) in cpu_notify_nofail() argument 262 BUG_ON(cpu_notify(val, v)); in cpu_notify_nofail() 748 unsigned long val = CPU_STARTING; in notify_cpu_starting() local 752 val = CPU_STARTING_FROZEN; in notify_cpu_starting() 754 cpu_notify(val, (void *)(long)cpu); in notify_cpu_starting() 887 void idle_notifier_call_chain(unsigned long val) in idle_notifier_call_chain() argument [all …]
|
D | cpuset.c | 70 int val; /* most recent output value */ member 1282 static int update_relax_domain_level(struct cpuset *cs, s64 val) in update_relax_domain_level() argument 1285 if (val < -1 || val >= sched_domain_level_max) in update_relax_domain_level() 1289 if (val != cs->relax_domain_level) { in update_relax_domain_level() 1290 cs->relax_domain_level = val; in update_relax_domain_level() 1422 fmp->val = 0; in fmeter_init() 1438 fmp->val = (FM_COEF * fmp->val) / FM_SCALE; in fmeter_update() 1441 fmp->val += ((FM_SCALE - FM_COEF) * fmp->cnt) / FM_SCALE; in fmeter_update() 1457 int val; in fmeter_getrate() local 1461 val = fmp->val; in fmeter_getrate() [all …]
|
D | auditfilter.c | 232 switch(audit_classify_arch(arch->val)) { in audit_match_signal() 389 if ((f->val != 0) && (f->val != 1)) in audit_field_valid() 397 if (f->val & ~15) in audit_field_valid() 401 if (f->val & ~S_IFMT) in audit_field_valid() 405 if (f->val > AUDIT_MAX_FIELD_COMPARE) in audit_field_valid() 481 f->val = f_val; in audit_data_to_entry() 538 f->val = f_val; in audit_data_to_entry() 572 f->val = f_val; in audit_data_to_entry() 657 if (krule->pflags & AUDIT_LOGINUID_LEGACY && !f->val) { in audit_krule_to_data() 664 data->values[i] = f->val; in audit_krule_to_data() [all …]
|
D | auditsc.c | 176 static int audit_match_filetype(struct audit_context *ctx, int val) in audit_match_filetype() argument 179 umode_t mode = (umode_t)val; in audit_match_filetype() 366 switch (f->val) { in audit_field_compare() 462 result = audit_comparator(pid, f->op, f->val); in audit_filter_rules() 468 result = audit_comparator(ctx->ppid, f->op, f->val); in audit_filter_rules() 515 result = audit_comparator(tsk->personality, f->op, f->val); in audit_filter_rules() 519 result = audit_comparator(ctx->arch, f->op, f->val); in audit_filter_rules() 524 result = audit_comparator(ctx->return_code, f->op, f->val); in audit_filter_rules() 528 if (f->val) in audit_filter_rules() 536 if (audit_comparator(MAJOR(name->dev), f->op, f->val) || in audit_filter_rules() [all …]
|
D | futex.c | 2670 static int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags, in futex_wait_setup() argument 2718 if (uval != val) { in futex_wait_setup() 2729 static int futex_wait(u32 __user *uaddr, unsigned int flags, u32 val, in futex_wait() argument 2758 ret = futex_wait_setup(uaddr, val, flags, &q, &hb); in futex_wait() 2788 restart->futex.val = val; in futex_wait() 2816 restart->futex.val, tp, restart->futex.bitset); in futex_wait_restart() 3199 u32 val, ktime_t *abs_time, u32 bitset, in futex_wait_requeue_pi() argument 3243 ret = futex_wait_setup(uaddr, val, flags, &q, &hb); in futex_wait_requeue_pi() 3684 long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, in do_futex() argument 3713 return futex_wait(uaddr, flags, val, timeout, val3); in do_futex() [all …]
|
/kernel/power/ |
D | main.c | 41 int __pm_notifier_call_chain(unsigned long val, int nr_to_call, int *nr_calls) in __pm_notifier_call_chain() argument 45 ret = __blocking_notifier_call_chain(&pm_chain_head, val, NULL, in __pm_notifier_call_chain() 50 int pm_notifier_call_chain(unsigned long val) in pm_notifier_call_chain() argument 52 return __pm_notifier_call_chain(val, -1, NULL); in pm_notifier_call_chain() 67 unsigned long val; in pm_async_store() local 69 if (kstrtoul(buf, 10, &val)) in pm_async_store() 72 if (val > 1) in pm_async_store() 75 pm_async_enabled = val; in pm_async_store() 264 unsigned long val; in pm_print_times_store() local 266 if (kstrtoul(buf, 10, &val)) in pm_print_times_store() [all …]
|
D | qos.c | 333 s32 val = 0; in pm_qos_flags_remove_req() local 337 val |= req->flags; in pm_qos_flags_remove_req() 339 pqf->effective_flags = val; in pm_qos_flags_remove_req() 355 enum pm_qos_req_action action, s32 val) in pm_qos_update_flags() argument 371 req->flags = val; in pm_qos_update_flags() 374 pqf->effective_flags |= val; in pm_qos_update_flags()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 316 unsigned long val; in kdbgetintenv() local 319 diag = kdbgetulenv(match, &val); in kdbgetintenv() 321 *value = (int) val; in kdbgetintenv() 338 unsigned long val; in kdbgetularg() local 340 val = simple_strtoul(arg, &endp, 0); in kdbgetularg() 347 val = simple_strtoul(arg, &endp, 16); in kdbgetularg() 352 *value = val; in kdbgetularg() 360 u64 val; in kdbgetu64arg() local 362 val = simple_strtoull(arg, &endp, 0); in kdbgetu64arg() 366 val = simple_strtoull(arg, &endp, 16); in kdbgetu64arg() [all …]
|
/kernel/trace/ |
D | trace_branch.c | 30 probe_likely_condition(struct ftrace_branch_data *f, int val, int expect) in probe_likely_condition() argument 81 entry->correct = val == expect; in probe_likely_condition() 92 void trace_likely_condition(struct ftrace_branch_data *f, int val, int expect) in trace_likely_condition() argument 97 probe_likely_condition(f, val, expect); in trace_likely_condition() 198 void trace_likely_condition(struct ftrace_branch_data *f, int val, int expect) in trace_likely_condition() argument 203 void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect) in ftrace_likely_update() argument 211 trace_likely_condition(f, val, expect); in ftrace_likely_update() 214 if (val == expect) in ftrace_likely_update()
|
D | trace.c | 79 .val = 0, 676 static void set_buffer_entries(struct trace_buffer *buf, unsigned long val); 1384 static int allocate_cmdlines_buffer(unsigned int val, in allocate_cmdlines_buffer() argument 1387 s->map_cmdline_to_pid = kmalloc(val * sizeof(*s->map_cmdline_to_pid), in allocate_cmdlines_buffer() 1392 s->saved_cmdlines = kmalloc(val * TASK_COMM_LEN, GFP_KERNEL); in allocate_cmdlines_buffer() 1399 s->cmdline_num = val; in allocate_cmdlines_buffer() 1403 val * sizeof(*s->map_cmdline_to_pid)); in allocate_cmdlines_buffer() 3555 tracer_flags = tr->current_trace->flags->val; in tracing_trace_options_show() 3583 ret = trace->set_flag(tr, tracer_flags->val, opts->bit, !neg); in __set_tracer_option() 3588 tracer_flags->val &= ~opts->bit; in __set_tracer_option() [all …]
|
D | trace.h | 346 u32 val; member 510 unsigned int val = current->trace_recursion; in trace_test_and_set_recursion() local 514 if (unlikely(val & (1 << bit))) { in trace_test_and_set_recursion() 527 val |= 1 << bit; in trace_test_and_set_recursion() 528 current->trace_recursion = val; in trace_test_and_set_recursion() 536 unsigned int val = current->trace_recursion; in trace_clear_recursion() local 539 val &= ~bit; in trace_clear_recursion() 542 current->trace_recursion = val; in trace_clear_recursion() 1103 u64 val; member
|
D | ring_buffer.c | 804 unsigned long val = (unsigned long)list; in rb_list_head() local 806 return (struct list_head *)(val & ~RB_FLAG_MASK); in rb_list_head() 821 unsigned long val; in rb_is_head_page() local 823 val = (unsigned long)list->next; in rb_is_head_page() 825 if ((val & ~RB_FLAG_MASK) != (unsigned long)&page->list) in rb_is_head_page() 828 return val & RB_FLAG_MASK; in rb_is_head_page() 903 unsigned long val = (unsigned long)&head->list; in rb_head_page_set() local 908 val &= ~RB_FLAG_MASK; in rb_head_page_set() 911 val | old_flag, val | new_flag); in rb_head_page_set() 914 if ((ret & ~RB_FLAG_MASK) != val) in rb_head_page_set() [all …]
|
D | trace_events_filter.c | 151 type val = (type)pred->val; \ 156 match = (*addr < val); \ 159 match = (*addr <= val); \ 162 match = (*addr > val); \ 165 match = (*addr >= val); \ 168 match = (*addr & val); \ 181 u##size val = (u##size)pred->val; \ 184 match = (val == *addr) ^ pred->not; \ 262 cmp = pred->val; in filter_pred_cpu() 534 for (i = 0; i < op->val; i++) { in process_ops() [all …]
|
/kernel/livepatch/ |
D | core.c | 301 reloc->val += kaslr_offset(); in klp_write_object_relocations() 304 reloc->val); in klp_write_object_relocations() 312 &reloc->val); in klp_write_object_relocations() 316 &reloc->val); in klp_write_object_relocations() 321 reloc->val + reloc->addend); in klp_write_object_relocations() 324 reloc->name, reloc->val, ret); in klp_write_object_relocations() 604 unsigned long val; in enabled_store() local 606 ret = kstrtoul(buf, 10, &val); in enabled_store() 610 if (val != KLP_DISABLED && val != KLP_ENABLED) in enabled_store() 617 if (val == patch->state) { in enabled_store() [all …]
|
/kernel/irq/ |
D | autoprobe.c | 118 unsigned int probe_irq_mask(unsigned long val) in probe_irq_mask() argument 137 return mask & val; in probe_irq_mask() 158 int probe_irq_off(unsigned long val) in probe_irq_off() argument
|