| /kernel/time/ |
| A D | timeconst.bc | 16 define fmul(b,n,d) { 21 (imul * n) + (fmulxx * n + fadjxx) >> xx) */ 22 define fadj(b,n,d) { 24 d = d/gcd(n,d); 36 m = fmul(s,n,d); 46 print "\n" 49 print "#define KERNEL_TIMECONST_H\n\n" 52 print "#include <linux/types.h>\n\n" 56 print "#endif\n\n" 81 print "\n" [all …]
|
| /kernel/locking/ |
| A D | test-ww_mutex.c | 327 for (n = 0; n < nthreads; n++) { in __test_cycle() 346 for (n = 0; n < nthreads; n++) in __test_cycle() 352 for (n = 0; n < nthreads; n++) { in __test_cycle() 364 for (n = 0; n < nthreads; n++) in __test_cycle() 375 for (n = 2; n <= ncpus + 1; n++) { in test_cycle() 413 for (n = 0; n < count; n++) in get_random_order() 414 order[n] = n; in get_random_order() 416 for (n = count - 1; n > 1; n--) { in get_random_order() 449 for (n = 0; n < nlocks; n++) { in stress_inorder_work() 590 for (n = 0; n < nlocks; n++) in stress() [all …]
|
| A D | ww_mutex.h | 97 if (!n) in __ww_waiter_first() 99 return rb_entry(n, struct rt_mutex_waiter, tree.entry); in __ww_waiter_first() 105 struct rb_node *n = rb_next(&w->tree.entry); in __ww_waiter_next() local 106 if (!n) in __ww_waiter_next() 108 return rb_entry(n, struct rt_mutex_waiter, tree.entry); in __ww_waiter_next() 114 struct rb_node *n = rb_prev(&w->tree.entry); in __ww_waiter_prev() local 115 if (!n) in __ww_waiter_prev() 117 return rb_entry(n, struct rt_mutex_waiter, tree.entry); in __ww_waiter_prev() 123 struct rb_node *n = rb_last(&lock->rtmutex.waiters.rb_root); in __ww_waiter_last() local 124 if (!n) in __ww_waiter_last() [all …]
|
| /kernel/ |
| A D | notifier.c | 18 struct notifier_block *n, in notifier_chain_register() argument 22 if (unlikely((*nl) == n)) { in notifier_chain_register() 24 n->notifier_call); in notifier_chain_register() 33 n->next = *nl; in notifier_chain_register() 34 rcu_assign_pointer(*nl, n); in notifier_chain_register() 40 struct notifier_block *n) in notifier_chain_unregister() argument 43 if ((*nl) == n) { in notifier_chain_unregister() 142 struct notifier_block *n) in atomic_notifier_chain_register() argument 187 struct notifier_block *n) in atomic_notifier_chain_unregister() argument 280 struct notifier_block *n) in blocking_notifier_chain_register() argument [all …]
|
| A D | auditsc.c | 153 unsigned n; in audit_match_perm() local 275 int n; in unroll_tree_refs() local 285 n = count; in unroll_tree_refs() 313 int n; in match_tree_refs() local 319 for (n = 0; n < 31; n++) in match_tree_refs() 325 for (n = ctx->tree_count; n < 31; n++) in match_tree_refs() 2232 if (!n) in __audit_getname() 2327 if (n) { in __audit_inode() 2366 if (!n) in __audit_inode() 2375 n->name_len = n->name ? parent_len(n->name->name) : AUDIT_NAME_FULL; in __audit_inode() [all …]
|
| A D | watch_queue.c | 98 struct watch_notification *n) in post_one_notification() argument 121 len = n->info & WATCH_INFO_LENGTH; in post_one_notification() 123 memcpy(p + offset, n, len); in post_one_notification() 171 if (n->type == wt->type && in filter_watch_notification() 212 n->info &= ~WATCH_INFO_ID; in __post_watch_notification() 213 n->info |= watch->info_id; in __post_watch_notification() 224 post_one_notification(wqueue, n); in __post_watch_notification() 559 n.watch.type = WATCH_TYPE_META; in remove_watch_from_object() 561 n.watch.info = watch->info_id | watch_sizeof(n.watch); in remove_watch_from_object() 562 n.id = id; in remove_watch_from_object() [all …]
|
| A D | Makefile | 30 KCOV_INSTRUMENT_softirq.o := n 33 KCSAN_SANITIZE_softirq.o = n 36 KCOV_INSTRUMENT_extable.o := n 37 KCOV_INSTRUMENT_stacktrace.o := n 39 KCOV_INSTRUMENT_kcov.o := n 42 KASAN_SANITIZE_kcov.o := n 43 KCSAN_SANITIZE_kcov.o := n 44 UBSAN_SANITIZE_kcov.o := n 45 KMSAN_SANITIZE_kcov.o := n 145 KASAN_SANITIZE_kstack_erase.o := n [all …]
|
| A D | Kconfig.locks | 96 # - DEBUG_SPINLOCK=n and GENERIC_LOCKBREAK=n and ARCH_INLINE_*LOCK=y 99 # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y 102 # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y 104 # - DEBUG_SPINLOCK=n and PREEMPTION=n 107 # - DEBUG_SPINLOCK=n and ARCH_INLINE_*LOCK=y
|
| A D | audit_tree.c | 221 unsigned long n = key / L1_CACHE_BYTES; in chunk_hash() local 222 return chunk_hash_heads + n % HASH_SIZE; in chunk_hash() 263 int n; in audit_tree_match() local 264 for (n = 0; n < chunk->count; n++) in audit_tree_match() 265 if (chunk->owners[n].owner == tree) in audit_tree_match() 463 int n; in tag_chunk() local 478 for (n = 0; n < old->count; n++) { in tag_chunk() 479 if (old->owners[n].owner == tree) { in tag_chunk() 1011 int n; in evict_chunk() local 1032 for (n = 0; n < chunk->count; n++) in evict_chunk() [all …]
|
| A D | seccomp.c | 1126 n->flags = 0; in seccomp_handle_addfd() 1127 n->error = 0; in seccomp_handle_addfd() 1128 n->val = fd; in seccomp_handle_addfd() 1160 n.task = current; in seccomp_do_user_notification() 1162 n.data = sd; in seccomp_do_user_notification() 1164 init_completion(&n.ready); in seccomp_do_user_notification() 1166 INIT_LIST_HEAD(&n.addfd); in seccomp_do_user_notification() 1206 ret = n.val; in seccomp_do_user_notification() 1207 err = n.error; in seccomp_do_user_notification() 1208 flags = n.flags; in seccomp_do_user_notification() [all …]
|
| A D | user.c | 247 int n; in uid_cache_init() local 252 for(n = 0; n < UIDHASH_SZ; ++n) in uid_cache_init() 253 INIT_HLIST_HEAD(uidhash_table + n); in uid_cache_init()
|
| /kernel/configs/ |
| A D | nopm.config | 3 CONFIG_PM=n 4 CONFIG_SUSPEND=n 5 CONFIG_HIBERNATION=n 8 CONFIG_CPU_IDLE=n 11 CONFIG_XEN=n 14 CONFIG_ARCH_OMAP2PLUS_TYPICAL=n 15 CONFIG_ARCH_RENESAS=n 16 CONFIG_ARCH_TEGRA=n 17 CONFIG_ARCH_VEXPRESS=n
|
| /kernel/power/ |
| A D | main.c | 142 return n; in pm_async_store() 181 len = p ? p - buf : n; in decode_suspend_state() 248 return n; in sync_on_suspend_store() 298 len = p ? p - buf : n; in pm_test_store() 603 return n; in pm_print_times_store() 652 return n; in pm_debug_messages_store() 712 len = p ? p - buf : n; in decode_state() 822 error = n; in wakeup_count_store() 936 return n; in pm_trace_store() 971 return n; in pm_freeze_timeout_store() [all …]
|
| A D | hibernate.c | 1231 p = memchr(buf, '\n', n); in disk_store() 1232 len = p ? p - buf : n; in disk_store() 1265 return error ? error : n; in disk_store() 1281 int len = n; in resume_store() 1287 return n; in resume_store() 1325 return n; in resume_store() 1338 size_t n) in resume_offset_store() argument 1348 return n; in resume_offset_store() 1360 const char *buf, size_t n) in image_size_store() argument 1366 return n; in image_size_store() [all …]
|
| /kernel/sched/ |
| A D | loadavg.c | 115 if (n) { in fixed_power_int() 117 if (n & 1) { in fixed_power_int() 122 n >>= 1; in fixed_power_int() 123 if (!n) in fixed_power_int() 159 unsigned long active, unsigned int n) in calc_load_n() argument 308 long delta, active, n; in calc_global_nohz() local 316 n = 1 + (delta / LOAD_FREQ); in calc_global_nohz() 321 avenrun[0] = calc_load_n(avenrun[0], EXP_1, active, n); in calc_global_nohz() 322 avenrun[1] = calc_load_n(avenrun[1], EXP_5, active, n); in calc_global_nohz() 323 avenrun[2] = calc_load_n(avenrun[2], EXP_15, active, n); in calc_global_nohz() [all …]
|
| A D | stats.c | 177 unsigned long n = *offset; in schedstat_start() local 179 if (n == 0) in schedstat_start() 182 n--; in schedstat_start() 184 if (n > 0) in schedstat_start() 185 n = cpumask_next(n - 1, cpu_online_mask); in schedstat_start() 187 n = cpumask_first(cpu_online_mask); in schedstat_start() 189 *offset = n + 1; in schedstat_start() 191 if (n < nr_cpu_ids) in schedstat_start() 192 return (void *)(unsigned long)(n + 2); in schedstat_start()
|
| /kernel/module/ |
| A D | tree_lookup.c | 22 static __always_inline unsigned long __mod_tree_val(struct latch_tree_node *n) in __mod_tree_val() argument 24 struct module_memory *mod_mem = container_of(n, struct module_memory, mtn.node); in __mod_tree_val() 29 static __always_inline unsigned long __mod_tree_size(struct latch_tree_node *n) in __mod_tree_size() argument 31 struct module_memory *mod_mem = container_of(n, struct module_memory, mtn.node); in __mod_tree_size() 43 mod_tree_comp(void *key, struct latch_tree_node *n) in mod_tree_comp() argument 48 start = __mod_tree_val(n); in mod_tree_comp() 52 end = start + __mod_tree_size(n); in mod_tree_comp()
|
| /kernel/bpf/ |
| A D | tnum.c | 182 size_t n; in tnum_sbin() local 184 for (n = 64; n; n--) { in tnum_sbin() 185 if (n < size) { in tnum_sbin() 187 str[n - 1] = 'x'; in tnum_sbin() 189 str[n - 1] = '1'; in tnum_sbin() 191 str[n - 1] = '0'; in tnum_sbin()
|
| A D | log.c | 64 u32 new_n, n; in bpf_verifier_vlog() local 69 bool newline = n > 0 && log->kbuf[n - 1] == '\n'; in bpf_verifier_vlog() 75 n += 1; /* include terminating zero */ in bpf_verifier_vlog() 76 bpf_vlog_update_len_max(log, n); in bpf_verifier_vlog() 96 new_end = log->end_pos + n; in bpf_verifier_vlog() 108 new_n = min(n, log->len_total); in bpf_verifier_vlog() 128 log->kbuf + n - new_n, in bpf_verifier_vlog() 134 log->kbuf + n - new_n, in bpf_verifier_vlog() 138 log->kbuf + n - buf_end, in bpf_verifier_vlog() 191 int n = sizeof(log->kbuf) / 2, nn; in bpf_vlog_reverse_ubuf() local [all …]
|
| /kernel/gcov/ |
| A D | Kconfig | 9 default n 30 GCOV_PROFILE_main.o := n 32 GCOV_PROFILE := n 38 def_bool n 45 default n
|
| /kernel/events/ |
| A D | internal.h | 179 memcpy_common(void *dst, const void *src, unsigned long n) in memcpy_common() argument 181 memcpy(dst, src, n); in memcpy_common() 188 memcpy_skip(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY() 199 arch_perf_out_copy_user(void *dst, const void *src, unsigned long n) in DEFINE_OUTPUT_COPY() 204 ret = __copy_from_user_inatomic(dst, src, n); in DEFINE_OUTPUT_COPY()
|
| /kernel/entry/ |
| A D | Makefile | 5 KASAN_SANITIZE := n 6 UBSAN_SANITIZE := n 7 KCOV_INSTRUMENT := n
|
| /kernel/rcu/ |
| A D | Kconfig.debug | 14 default n 24 default n 30 default n 45 default n 59 default n 75 default n 90 default n 105 default n 143 default n 158 default n [all …]
|
| /kernel/trace/ |
| A D | trace_stat.c | 49 struct stat_node *snode, *n; in __reset_stat_session() local 51 rbtree_postorder_for_each_entry_safe(snode, n, &session->stat_root, node) { in __reset_stat_session() 172 int n = *pos; in stat_seq_start() local 180 if (n == 0) in stat_seq_start() 182 n--; in stat_seq_start() 186 for (i = 0; node && i < n; i++) in stat_seq_start()
|
| /kernel/kcsan/ |
| A D | Makefile | 2 KCSAN_SANITIZE := n 3 KCOV_INSTRUMENT := n 4 UBSAN_SANITIZE := n
|