Home
last modified time | relevance | path

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

/kernel/
Dcrash_core.c43 char *cur = cmdline, *tmp; in parse_crashkernel_mem() local
50 start = memparse(cur, &tmp); in parse_crashkernel_mem()
51 if (cur == tmp) { in parse_crashkernel_mem()
55 cur = tmp; in parse_crashkernel_mem()
56 if (*cur != '-') { in parse_crashkernel_mem()
60 cur++; in parse_crashkernel_mem()
63 if (*cur != ':') { in parse_crashkernel_mem()
64 end = memparse(cur, &tmp); in parse_crashkernel_mem()
65 if (cur == tmp) { in parse_crashkernel_mem()
69 cur = tmp; in parse_crashkernel_mem()
[all …]
Dsmpboot.c215 struct smp_hotplug_thread *cur; in smpboot_create_threads() local
219 list_for_each_entry(cur, &hotplug_threads, list) { in smpboot_create_threads()
220 ret = __smpboot_create_thread(cur, cpu); in smpboot_create_threads()
238 struct smp_hotplug_thread *cur; in smpboot_unpark_threads() local
241 list_for_each_entry(cur, &hotplug_threads, list) in smpboot_unpark_threads()
242 smpboot_unpark_thread(cur, cpu); in smpboot_unpark_threads()
257 struct smp_hotplug_thread *cur; in smpboot_park_threads() local
260 list_for_each_entry_reverse(cur, &hotplug_threads, list) in smpboot_park_threads()
261 smpboot_park_thread(cur, cpu); in smpboot_park_threads()
Dseccomp.c1412 struct seccomp_knotif *cur; in find_notification() local
1416 list_for_each_entry(cur, &filter->notif->notifications, list) { in find_notification()
1417 if (cur->id == id) in find_notification()
1418 return cur; in find_notification()
1428 struct seccomp_knotif *knotif = NULL, *cur; in seccomp_notify_recv() local
1446 list_for_each_entry(cur, &filter->notif->notifications, list) { in seccomp_notify_recv()
1447 if (cur->state == SECCOMP_NOTIFY_INIT) { in seccomp_notify_recv()
1448 knotif = cur; in seccomp_notify_recv()
1690 struct seccomp_knotif *cur; in seccomp_notify_poll() local
1697 list_for_each_entry(cur, &filter->notif->notifications, list) { in seccomp_notify_poll()
[all …]
Dresource.c1382 struct resource *cur; in merge_system_ram_resource() local
1391 cur = res->sibling; in merge_system_ram_resource()
1392 if (cur && system_ram_resources_mergeable(res, cur)) { in merge_system_ram_resource()
1393 res->end = cur->end; in merge_system_ram_resource()
1394 res->sibling = cur->sibling; in merge_system_ram_resource()
1395 free_resource(cur); in merge_system_ram_resource()
1399 cur = res->parent->child; in merge_system_ram_resource()
1400 while (cur && cur->sibling != res) in merge_system_ram_resource()
1401 cur = cur->sibling; in merge_system_ram_resource()
1402 if (cur && system_ram_resources_mergeable(cur, res)) { in merge_system_ram_resource()
[all …]
Dpadata.c137 struct padata_work *cur, *next; in padata_works_free() local
143 list_for_each_entry_safe(cur, next, works, pw_list) { in padata_works_free()
144 list_del(&cur->pw_list); in padata_works_free()
145 padata_work_free(cur); in padata_works_free()
405 struct padata_priv *cur; in padata_do_serial() local
411 cur = list_entry(pos, struct padata_priv, list); in padata_do_serial()
412 if (cur->seq_nr < padata->seq_nr) in padata_do_serial()
Dkprobes.c1196 struct kprobe *cur = __this_cpu_read(kprobe_instance); in aggr_fault_handler() local
1202 if (cur && cur->fault_handler) { in aggr_fault_handler()
1203 if (cur->fault_handler(cur, regs, trapnr)) in aggr_fault_handler()
Dcpu.c2622 ssize_t cur, res = 0; in show_cpuhp_states() local
2630 cur = sprintf(buf, "%3d: %s\n", i, sp->name); in show_cpuhp_states()
2631 buf += cur; in show_cpuhp_states()
2632 res += cur; in show_cpuhp_states()
/kernel/power/
Dsnapshot.c381 struct bm_position cur; /* most recently used bit position */ member
549 bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, in memory_bm_position_reset()
551 bm->cur.node = list_entry(bm->cur.zone->leaves.next, in memory_bm_position_reset()
553 bm->cur.node_pfn = 0; in memory_bm_position_reset()
554 bm->cur.node_bit = 0; in memory_bm_position_reset()
594 struct mem_extent *ext, *cur, *aux; in create_mem_extents() local
625 cur = ext; in create_mem_extents()
626 list_for_each_entry_safe_continue(cur, aux, list, hook) { in create_mem_extents()
627 if (zone_end < cur->start) in create_mem_extents()
629 if (zone_end < cur->end) in create_mem_extents()
[all …]
Dswap.c96 struct swap_map_page *cur; member
412 if (handle->cur) in release_swap_writer()
413 free_page((unsigned long)handle->cur); in release_swap_writer()
414 handle->cur = NULL; in release_swap_writer()
427 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer()
428 if (!handle->cur) { in get_swap_writer()
454 if (!handle->cur) in swap_write_page()
460 handle->cur->entries[handle->k++] = offset; in swap_write_page()
465 handle->cur->next_swap = offset; in swap_write_page()
466 error = write_page(handle->cur, handle->cur_swap, hb); in swap_write_page()
[all …]
Dpower.h132 unsigned int cur; /* number of the block of PAGE_SIZE bytes the member
/kernel/kcsan/
Dkcsan-test.c154 char *cur; in report_matches() local
168 cur = expect[0]; in report_matches()
170 cur += scnprintf(cur, end - cur, "BUG: KCSAN: %s in ", in report_matches()
180 cur += scnprintf(cur, end - cur, "%ps / %ps", in report_matches()
184 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in report_matches()
186 cur = strchr(expect[0], '+'); in report_matches()
187 if (cur) in report_matches()
188 *cur = '\0'; in report_matches()
192 cur = expect[1]; in report_matches()
195 cur += scnprintf(cur, end - cur, "race at unknown origin, with "); in report_matches()
[all …]
Dreport.c269 char *cur; in get_stack_skipnr() local
280 cur = strnstr(buf, "kcsan_", len); in get_stack_skipnr()
281 if (cur) { in get_stack_skipnr()
282 cur += strlen("kcsan_"); in get_stack_skipnr()
283 if (!str_has_prefix(cur, "test")) in get_stack_skipnr()
/kernel/locking/
Dmutex.c463 struct mutex_waiter *cur; in __ww_mutex_check_waiters() local
467 list_for_each_entry(cur, &lock->wait_list, list) { in __ww_mutex_check_waiters()
468 if (!cur->ww_ctx) in __ww_mutex_check_waiters()
471 if (__ww_mutex_die(lock, cur, ww_ctx) || in __ww_mutex_check_waiters()
472 __ww_mutex_wound(lock, cur->ww_ctx, ww_ctx)) in __ww_mutex_check_waiters()
840 struct mutex_waiter *cur; in __ww_mutex_check_kill() local
859 cur = waiter; in __ww_mutex_check_kill()
860 list_for_each_entry_continue_reverse(cur, &lock->wait_list, list) { in __ww_mutex_check_kill()
861 if (!cur->ww_ctx) in __ww_mutex_check_kill()
886 struct mutex_waiter *cur; in __ww_mutex_add_waiter() local
[all …]
/kernel/bpf/
Dbpf_lru_list.c175 struct list_head *cur, *last, *next = inactive; in __bpf_lru_list_rotate_inactive() local
186 cur = l->next_inactive_rotation; in __bpf_lru_list_rotate_inactive()
188 if (cur == inactive) { in __bpf_lru_list_rotate_inactive()
189 cur = cur->prev; in __bpf_lru_list_rotate_inactive()
193 node = list_entry(cur, struct bpf_lru_node, list); in __bpf_lru_list_rotate_inactive()
194 next = cur->prev; in __bpf_lru_list_rotate_inactive()
197 if (cur == last) in __bpf_lru_list_rotate_inactive()
199 cur = next; in __bpf_lru_list_rotate_inactive()
Dverifier.c554 struct bpf_verifier_state *cur = env->cur_state; in func() local
556 return cur->frame[reg->frameno]; in func()
945 struct bpf_verifier_state *cur = env->cur_state; in pop_stack() local
952 if (cur) { in pop_stack()
953 err = copy_verifier_state(cur, &head->st); in pop_stack()
975 struct bpf_verifier_state *cur = env->cur_state; in push_stack() local
989 err = copy_verifier_state(&elem->st, cur); in push_stack()
1781 struct bpf_verifier_state *cur) in push_jmp_history() argument
1783 u32 cnt = cur->jmp_history_cnt; in push_jmp_history()
1787 p = krealloc(cur->jmp_history, cnt * sizeof(*p), GFP_USER); in push_jmp_history()
[all …]
Dbtf.c3798 void *cur, *end; in btf_check_all_metas() local
3801 cur = btf->nohdr_data + hdr->type_off; in btf_check_all_metas()
3802 end = cur + hdr->type_len; in btf_check_all_metas()
3805 while (cur < end) { in btf_check_all_metas()
3806 struct btf_type *t = cur; in btf_check_all_metas()
3809 meta_size = btf_check_meta(env, t, end - cur); in btf_check_all_metas()
3814 cur += meta_size; in btf_check_all_metas()
/kernel/time/
Dtick-broadcast.c164 struct clock_event_device *cur = tick_broadcast_device.evtdev; in tick_install_broadcast_device() local
169 if (!tick_check_broadcast_device(cur, dev)) in tick_install_broadcast_device()
175 clockevents_exchange_device(cur, dev); in tick_install_broadcast_device()
176 if (cur) in tick_install_broadcast_device()
177 cur->event_handler = clockevents_handle_noop; in tick_install_broadcast_device()
/kernel/cgroup/
Drstat.c316 struct cgroup_base_stat cur, delta; in cgroup_base_stat_flush() local
322 cur.cputime = rstatc->bstat.cputime; in cgroup_base_stat_flush()
326 delta = cur; in cgroup_base_stat_flush()
Dcpuset.c614 static int validate_change(struct cpuset *cur, struct cpuset *trial) in validate_change() argument
624 cpuset_for_each_child(c, css, cur) in validate_change()
630 if (cur == &top_cpuset) in validate_change()
633 par = parent_cs(cur); in validate_change()
647 c != cur && in validate_change()
651 c != cur && in validate_change()
661 if ((cgroup_is_populated(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change()
662 if (!cpumask_empty(cur->cpus_allowed) && in validate_change()
665 if (!nodes_empty(cur->mems_allowed) && in validate_change()
675 if (is_cpu_exclusive(cur) && in validate_change()
[all …]
/kernel/sched/
Dfair.c1757 struct task_struct *cur; in task_numa_compare() local
1768 cur = rcu_dereference(dst_rq->curr); in task_numa_compare()
1769 if (cur && ((cur->flags & PF_EXITING) || is_idle_task(cur))) in task_numa_compare()
1770 cur = NULL; in task_numa_compare()
1776 if (cur == env->p) { in task_numa_compare()
1781 if (!cur) { in task_numa_compare()
1789 if (!cpumask_test_cpu(env->src_cpu, cur->cpus_ptr)) in task_numa_compare()
1798 cur->numa_preferred_nid != env->src_nid) { in task_numa_compare()
1812 cur_ng = rcu_dereference(cur->numa_group); in task_numa_compare()
1814 imp = taskimp + task_weight(cur, env->src_nid, dist) - in task_numa_compare()
[all …]
Dtopology.c2166 static int dattrs_equal(struct sched_domain_attr *cur, int idx_cur, in dattrs_equal() argument
2172 if (!new && !cur) in dattrs_equal()
2177 return !memcmp(cur ? (cur + idx_cur) : &tmp, in dattrs_equal()
Dcpufreq_schedutil.c165 policy->cpuinfo.max_freq : policy->cur; in get_next_freq()
Dcore.c2288 int migrate_swap(struct task_struct *cur, struct task_struct *p, in migrate_swap() argument
2295 .src_task = cur, in migrate_swap()
2317 trace_sched_swap_numa(cur, arg.src_cpu, p, arg.dst_cpu); in migrate_swap()
6865 int cpuset_cpumask_can_shrink(const struct cpumask *cur, in cpuset_cpumask_can_shrink() argument
6870 if (!cpumask_weight(cur)) in cpuset_cpumask_can_shrink()
6873 ret = dl_cpuset_cpumask_can_shrink(cur, trial); in cpuset_cpumask_can_shrink()
Ddeadline.c2843 int dl_cpuset_cpumask_can_shrink(const struct cpumask *cur, in dl_cpuset_cpumask_can_shrink() argument
2851 cur_dl_b = dl_bw_of(cpumask_any(cur)); in dl_cpuset_cpumask_can_shrink()
Dsched.h352 extern int dl_cpuset_cpumask_can_shrink(const struct cpumask *cur, const struct cpumask *trial);