/kernel/ |
D | resource_kunit.c | 28 struct result { struct 35 static struct result results_for_union[] = { argument 59 static struct result results_for_intersection[] = { 92 static void resource_do_union_test(struct kunit *test, struct result *r) in resource_do_union_test() 94 struct resource result; in resource_do_union_test() local 97 memset(&result, 0, sizeof(result)); in resource_do_union_test() 98 ret = resource_union(r->r1, r->r2, &result); in resource_do_union_test() 99 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_union_test() 101 memset(&result, 0, sizeof(result)); in resource_do_union_test() 102 ret = resource_union(r->r2, r->r1, &result); in resource_do_union_test() [all …]
|
D | kexec.c | 193 int result; in kexec_load_check() local 200 result = security_kernel_load_data(LOADING_KEXEC_IMAGE, false); in kexec_load_check() 201 if (result < 0) in kexec_load_check() 202 return result; in kexec_load_check() 208 result = security_locked_down(LOCKDOWN_KEXEC); in kexec_load_check() 209 if (result) in kexec_load_check() 210 return result; in kexec_load_check() 232 unsigned long result; in SYSCALL_DEFINE4() local 234 result = kexec_load_check(nr_segments, flags); in SYSCALL_DEFINE4() 235 if (result) in SYSCALL_DEFINE4() [all …]
|
D | kexec_core.c | 564 int result; in kimage_set_destination() local 567 result = kimage_add_entry(image, destination | IND_DESTINATION); in kimage_set_destination() 569 return result; in kimage_set_destination() 575 int result; in kimage_add_page() local 578 result = kimage_add_entry(image, page | IND_SOURCE); in kimage_add_page() 580 return result; in kimage_add_page() 781 int result; in kimage_load_normal_segment() local 793 result = kimage_set_destination(image, maddr); in kimage_load_normal_segment() 794 if (result < 0) in kimage_load_normal_segment() 804 result = -ENOMEM; in kimage_load_normal_segment() [all …]
|
D | auditsc.c | 481 int result = 0; in audit_filter_rules() local 487 result = audit_comparator(pid, f->op, f->val); in audit_filter_rules() 493 result = audit_comparator(ctx->ppid, f->op, f->val); in audit_filter_rules() 497 result = audit_exe_compare(tsk, rule->exe); in audit_filter_rules() 499 result = !result; in audit_filter_rules() 502 result = audit_uid_comparator(cred->uid, f->op, f->uid); in audit_filter_rules() 505 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules() 508 result = audit_uid_comparator(cred->suid, f->op, f->uid); in audit_filter_rules() 511 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); in audit_filter_rules() 514 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules() [all …]
|
D | pid.c | 398 struct task_struct *result = NULL; in pid_task() local 404 result = hlist_entry(first, struct task_struct, pid_links[(type)]); in pid_task() 406 return result; in pid_task() 451 struct task_struct *result; in get_pid_task() local 453 result = pid_task(pid, type); in get_pid_task() 454 if (result) in get_pid_task() 455 get_task_struct(result); in get_pid_task() 457 return result; in get_pid_task()
|
D | auditfilter.c | 1336 int i, result = 0; in audit_filter() local 1346 result = audit_comparator(pid, f->op, f->val); in audit_filter() 1349 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter() 1352 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter() 1355 result = audit_uid_comparator(audit_get_loginuid(current), in audit_filter() 1359 result = audit_comparator(audit_loginuid_set(current), in audit_filter() 1363 result = audit_comparator(msgtype, f->op, f->val); in audit_filter() 1372 result = security_audit_rule_match(sid, in audit_filter() 1377 result = audit_exe_compare(current, e->rule.exe); in audit_filter() 1379 result = !result; in audit_filter() [all …]
|
D | kthread.c | 46 struct task_struct *result; member 55 int result; member 312 void __noreturn kthread_exit(long result) in kthread_exit() argument 315 kthread->result = result; in kthread_exit() 372 create->result = current; in kthread() 418 create->result = ERR_PTR(pid); in create_kthread() 465 task = create->result; in __kthread_create_on_node() 722 ret = kthread->result; in kthread_stop()
|
D | kallsyms.c | 43 char *result, size_t maxlen) in kallsyms_expand_symbol() argument 81 *result = *tptr; in kallsyms_expand_symbol() 82 result++; in kallsyms_expand_symbol() 92 *result = '\0'; in kallsyms_expand_symbol()
|
D | cpu.c | 78 int result; member 556 st->result = 0; in __cpuhp_kick_ap() 575 if ((ret = st->result)) { in cpuhp_kick_ap() 829 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun() 835 WARN_ON_ONCE(st->result); in cpuhp_thread_fun() 837 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun() 840 if (st->result) { in cpuhp_thread_fun() 895 if ((ret = st->result) && st->last) { in cpuhp_invoke_ap_callback()
|
D | resource.c | 934 int result = -EBUSY; in __adjust_resource() local 960 result = 0; in __adjust_resource() 963 return result; in __adjust_resource() 979 int result; in adjust_resource() local 982 result = __adjust_resource(res, start, size); in adjust_resource() 984 return result; in adjust_resource()
|
/kernel/time/ |
D | timeconv.c | 47 void time64_to_tm(time64_t totalsecs, int offset, struct tm *result) in time64_to_tm() argument 67 result->tm_hour = rem / SECS_PER_HOUR; in time64_to_tm() 69 result->tm_min = rem / 60; in time64_to_tm() 70 result->tm_sec = rem % 60; in time64_to_tm() 73 result->tm_wday = (4 + days) % 7; in time64_to_tm() 74 if (result->tm_wday < 0) in time64_to_tm() 75 result->tm_wday += 7; in time64_to_tm() 136 result->tm_year = (long) (year - 1900); in time64_to_tm() 137 result->tm_mon = (int) month; in time64_to_tm() 138 result->tm_mday = (int) day; in time64_to_tm() [all …]
|
D | time_test.c | 66 struct tm result; in time64_to_tm_test_date_range() local 72 time64_to_tm(secs, 0, &result); in time64_to_tm_test_date_range() 79 KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); in time64_to_tm_test_date_range() 80 KUNIT_ASSERT_EQ_MSG(test, month - 1, result.tm_mon, FAIL_MSG); in time64_to_tm_test_date_range() 81 KUNIT_ASSERT_EQ_MSG(test, mdday, result.tm_mday, FAIL_MSG); in time64_to_tm_test_date_range() 82 KUNIT_ASSERT_EQ_MSG(test, yday, result.tm_yday, FAIL_MSG); in time64_to_tm_test_date_range()
|
D | ntp.c | 765 int result; in __do_adjtimex() local 803 result = time_state; /* mostly `TIME_OK' */ in __do_adjtimex() 806 result = TIME_ERROR; in __do_adjtimex() 830 result = TIME_OOP; in __do_adjtimex() 835 result = TIME_WAIT; in __do_adjtimex() 841 result = TIME_WAIT; in __do_adjtimex() 845 return result; in __do_adjtimex()
|
D | posix-clock.c | 59 __poll_t result = 0; in posix_clock_poll() local 65 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll() 69 return result; in posix_clock_poll()
|
D | alarmtimer.c | 565 enum alarmtimer_restart result = ALARMTIMER_NORESTART; in alarm_handle_timer() local 584 result = ALARMTIMER_RESTART; in alarm_handle_timer() 588 return result; in alarm_handle_timer()
|
/kernel/locking/ |
D | semaphore.c | 80 int result = 0; in down_interruptible() local 87 result = __down_interruptible(sem); in down_interruptible() 90 return result; in down_interruptible() 107 int result = 0; in down_killable() local 114 result = __down_killable(sem); in down_killable() 117 return result; in down_killable() 162 int result = 0; in down_timeout() local 169 result = __down_timeout(sem, timeout); in down_timeout() 172 return result; in down_timeout()
|
D | test-ww_mutex.c | 183 int result; member 215 abba->result = err; in test_abba_work() 262 if (err || abba.result) { in test_abba() 264 __func__, err, abba.result); in test_abba() 268 if (err != -EDEADLK && abba.result != -EDEADLK) { in test_abba() 270 __func__, err, abba.result); in test_abba() 283 int result; member 312 cycle->result = err ?: erra; in test_cycle_work() 341 cycle->result = 0; in __test_cycle() 353 if (!cycle->result) in __test_cycle() [all …]
|
/kernel/sched/ |
D | loadavg.c | 111 unsigned long result = 1UL << frac_bits; in fixed_power_int() local 116 result *= x; in fixed_power_int() 117 result += 1UL << (frac_bits - 1); in fixed_power_int() 118 result >>= frac_bits; in fixed_power_int() 129 return result; in fixed_power_int()
|
/kernel/irq/ |
D | affinity.c | 74 struct cpumask *result = group_cpus_evenly(this_vecs); in irq_create_affinity_masks() local 76 if (!result) { in irq_create_affinity_masks() 82 cpumask_copy(&masks[curvec + j].mask, &result[j]); in irq_create_affinity_masks() 83 kfree(result); in irq_create_affinity_masks()
|
/kernel/debug/kdb/ |
D | kdb_main.c | 1052 int result = kdb_defcmd2(cmdstr, argv[0]); in kdb_parse() local 1057 return result; in kdb_parse() 1091 int result; in kdb_parse() local 1097 result = (*tp->func)(argc-1, (const char **)argv); in kdb_parse() 1098 if (result && ignore_errors && result > KDB_CMD_GO) in kdb_parse() 1099 result = 0; in kdb_parse() 1103 return result; in kdb_parse() 1108 return result; in kdb_parse() 1442 int result = 1; in kdb_main_loop() local 1464 result = kdb_local(reason2, error, regs, db_result); in kdb_main_loop() [all …]
|
/kernel/power/ |
D | wakeup_reason.c | 87 struct wakeup_irq_node *result; in create_node() local 89 result = kmem_cache_alloc(wakeup_irq_nodes_cache, GFP_ATOMIC); in create_node() 90 if (unlikely(!result)) in create_node() 93 init_node(result, irq); in create_node() 95 return result; in create_node()
|
/kernel/gcov/ |
D | gcc_4_7.c | 194 unsigned int result = 0; in num_counter_active() local 198 result++; in num_counter_active() 200 return result; in num_counter_active()
|
D | fs.c | 443 char *result; in get_link_target() local 448 result = link_target(srctree, rel, ext->ext); in get_link_target() 450 result = link_target(objtree, rel, ext->ext); in get_link_target() 453 result = link_target(NULL, filename, ext->ext); in get_link_target() 456 return result; in get_link_target()
|
/kernel/trace/ |
D | trace_stat.c | 91 int result; in insert_stat() local 94 result = cmp(data->stat, this->stat); in insert_stat() 97 if (result >= 0) in insert_stat()
|
/kernel/bpf/ |
D | inode.c | 647 struct fs_parse_result result; in bpf_parse_param() local 650 opt = fs_parse(fc, bpf_fs_parameters, param, &result); in bpf_parse_param() 670 opts->mode = result.uint_32 & S_IALLUGO; in bpf_parse_param()
|