| /kernel/ |
| A D | kthread.c | 85 return k->worker_private; in to_kthread() 147 kthread = to_kthread(k); in free_kthread_struct() 744 if (k != current) { in kthread_park() 745 wake_up_process(k); in kthread_park() 784 get_task_struct(k); in kthread_stop() 787 kthread_unpark(k); in kthread_stop() 789 wake_up_process(k); in kthread_stop() 792 put_task_struct(k); in kthread_stop() 811 ret = kthread_stop(k); in kthread_stop_put() 812 put_task_struct(k); in kthread_stop_put() [all …]
|
| A D | range.c | 128 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local 130 for (i = 0; i < k; i++) { in clean_sort_range() 133 for (j = k; j > i; j--) { in clean_sort_range() 135 k = j; in clean_sort_range() 141 range[i].start = range[k].start; in clean_sort_range() 142 range[i].end = range[k].end; in clean_sort_range() 143 range[k].start = 0; in clean_sort_range() 144 range[k].end = 0; in clean_sort_range() 145 k--; in clean_sort_range()
|
| A D | audit.h | 310 #define audit_to_watch(k, p, l, o) (-EINVAL) argument 311 #define audit_add_watch(k, l) (-EINVAL) argument 312 #define audit_remove_watch_rule(k) BUG() argument 316 #define audit_alloc_mark(k, p, l) (ERR_PTR(-EINVAL)) argument 319 #define audit_remove_mark_rule(k) do { } while (0) argument
|
| A D | kexec_file.c | 1144 int i, k; in kexec_purgatory_find_symbol() local 1163 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol() 1164 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol() 1167 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol() 1170 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1171 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1173 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1178 return &syms[k]; in kexec_purgatory_find_symbol()
|
| A D | seccomp.c | 284 u32 k = ftest->k; in seccomp_check_filter() local 290 if (k >= sizeof(struct seccomp_data) || k & 3) in seccomp_check_filter() 772 u32 k = insn->k; in seccomp_is_const_allow() local 776 switch (k) { in seccomp_is_const_allow() 790 return k == SECCOMP_RET_ALLOW; in seccomp_is_const_allow() 792 pc += insn->k; in seccomp_is_const_allow() 800 op_res = reg_value == k; in seccomp_is_const_allow() 803 op_res = reg_value >= k; in seccomp_is_const_allow() 806 op_res = reg_value > k; in seccomp_is_const_allow() 809 op_res = !!(reg_value & k); in seccomp_is_const_allow() [all …]
|
| A D | compat.c | 113 unsigned long *k; in compat_get_user_cpu_mask() local 120 k = cpumask_bits(new_mask); in compat_get_user_cpu_mask() 121 return compat_get_bitmap(k, user_mask_ptr, len * 8); in compat_get_user_cpu_mask()
|
| A D | user_namespace.c | 248 static int cmp_map_id(const void *k, const void *e) in cmp_map_id() argument 251 const struct idmap_key *key = k; in cmp_map_id()
|
| A D | signal.c | 4305 struct k_sigaction *k; in do_sigaction() local 4311 k = &p->sighand->action[sig-1]; in do_sigaction() 4314 if (k->sa.sa_flags & SA_IMMUTABLE) { in do_sigaction() 4319 *oact = *k; in do_sigaction() 4340 bool was_ignored = k->sa.sa_handler == SIG_IGN; in do_sigaction() 4344 *k = *act; in do_sigaction()
|
| /kernel/sched/ |
| A D | topology.c | 1974 int k; in sched_init_numa() local 1982 if (sched_debug() && (node_distance(j, k) != node_distance(k, j))) in sched_init_numa() 2158 if (cpumask_weight_and(k->cpus, cur_hop[k->node]) <= k->cpu) in hop_cmp() 2161 if (b == k->masks) { in hop_cmp() 2162 k->w = 0; in hop_cmp() 2167 k->w = cpumask_weight_and(k->cpus, prev_hop[k->node]); in hop_cmp() 2168 if (k->w <= k->cpu) in hop_cmp() 2197 k.node = node; in sched_numa_find_nth_cpu() 2200 if (!k.masks) in sched_numa_find_nth_cpu() 2203 hop_masks = bsearch(&k, k.masks, sched_domains_numa_levels, sizeof(k.masks[0]), hop_cmp); in sched_numa_find_nth_cpu() [all …]
|
| /kernel/power/ |
| A D | swap.c | 101 unsigned int k; member 427 handle->k = 0; in get_swap_writer() 450 handle->cur->entries[handle->k++] = offset; in swap_write_page() 451 if (handle->k >= MAP_PAGE_ENTRIES) { in swap_write_page() 461 handle->k = 0; in swap_write_page() 1036 handle->k = 0; in get_swap_reader() 1050 offset = handle->cur->entries[handle->k]; in swap_read_page() 1059 if (++handle->k >= MAP_PAGE_ENTRIES) { in swap_read_page() 1060 handle->k = 0; in swap_read_page() 1356 handle->cur->entries[handle->k]) { in load_compressed_image()
|
| A D | hibernate.c | 284 unsigned int k; in swsusp_show_speed() local 292 k = nr_pages * (PAGE_SIZE / 1024); in swsusp_show_speed() 293 kps = (k * 100) / centisecs; in swsusp_show_speed() 295 msg, k, centisecs / 100, centisecs % 100, kps / 1000, in swsusp_show_speed()
|
| /kernel/bpf/ |
| A D | devmap.c | 824 u32 k = *(u32 *)key; in dev_map_delete_elem() local 826 if (k >= map->max_entries) in dev_map_delete_elem() 829 old_dev = unrcu_pointer(xchg(&dtab->netdev_map[k], NULL)); in dev_map_delete_elem() 841 u32 k = *(u32 *)key; in dev_map_hash_delete_elem() local 847 old_dev = __dev_map_hash_lookup_elem(map, k); in dev_map_hash_delete_elem()
|
| A D | core.c | 75 void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) in bpf_internal_load_pointer_neg_helper() argument 79 if (k >= SKF_NET_OFF) { in bpf_internal_load_pointer_neg_helper() 80 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper() 81 } else if (k >= SKF_LL_OFF) { in bpf_internal_load_pointer_neg_helper() 84 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper()
|
| /kernel/locking/ |
| A D | lockdep.c | 1224 struct lock_class_key *k; in lockdep_register_key() local 1234 hlist_for_each_entry_rcu(k, hash_head, hash_entry) { in lockdep_register_key() 1235 if (WARN_ON_ONCE(k == key)) in lockdep_register_key() 1251 struct lock_class_key *k; in is_dynamic_key() local 1268 hlist_for_each_entry_rcu(k, hash_head, hash_entry) { in is_dynamic_key() 1269 if (k == key) { in is_dynamic_key() 6585 struct lock_class_key *k; in lockdep_unregister_key() local 6599 hlist_for_each_entry_rcu(k, hash_head, hash_entry) { in lockdep_unregister_key() 6600 if (k == key) { in lockdep_unregister_key() 6601 hlist_del_rcu(&k->hash_entry); in lockdep_unregister_key()
|
| /kernel/printk/ |
| A D | printk.c | 1339 unsigned long long k; in boot_delay_msec() local 1347 k = (unsigned long long)loops_per_msec * boot_delay; in boot_delay_msec() 1350 while (k) { in boot_delay_msec() 1351 k--; in boot_delay_msec()
|
| /kernel/trace/ |
| A D | trace_events_hist.c | 4723 unsigned int i, j, k; in create_sort_keys() local 4770 for (j = 1, k = 1; j < hist_data->n_fields; j++) { in create_sort_keys() 4777 idx = k++; in create_sort_keys()
|