/kernel/power/ |
D | hibernate.c | 295 int error; in create_image() local 297 error = dpm_suspend_end(PMSG_FREEZE); in create_image() 298 if (error) { in create_image() 300 return error; in create_image() 303 error = platform_pre_snapshot(platform_mode); in create_image() 304 if (error || hibernation_test(TEST_PLATFORM)) in create_image() 307 error = pm_sleep_disable_secondary_cpus(); in create_image() 308 if (error || hibernation_test(TEST_CPUS)) in create_image() 315 error = syscore_suspend(); in create_image() 316 if (error) { in create_image() [all …]
|
D | suspend.c | 357 int error; in suspend_prepare() local 364 error = pm_notifier_call_chain_robust(PM_SUSPEND_PREPARE, PM_POST_SUSPEND); in suspend_prepare() 365 if (error) in suspend_prepare() 369 error = suspend_freeze_processes(); in suspend_prepare() 371 if (!error) in suspend_prepare() 380 return error; in suspend_prepare() 404 int error, last_dev; in suspend_enter() local 406 error = platform_suspend_prepare(state); in suspend_enter() 407 if (error) in suspend_enter() 410 error = dpm_suspend_late(PMSG_SUSPEND); in suspend_enter() [all …]
|
D | user.c | 51 int error; in snapshot_open() local 59 error = -EBUSY; in snapshot_open() 65 error = -ENOSYS; in snapshot_open() 77 error = pm_notifier_call_chain_robust(PM_HIBERNATION_PREPARE, PM_POST_HIBERNATION); in snapshot_open() 87 error = pm_notifier_call_chain_robust(PM_RESTORE_PREPARE, PM_POST_RESTORE); in snapshot_open() 88 if (!error) { in snapshot_open() 89 error = create_basic_memory_bitmaps(); in snapshot_open() 90 data->free_bitmaps = !error; in snapshot_open() 93 if (error) in snapshot_open() 104 return error; in snapshot_open() [all …]
|
D | swap.c | 232 blk_status_t error; member 240 hb->error = BLK_STS_OK; in hib_init_batch() 266 if (bio->bi_status && !hb->error) in hib_end_io() 267 hb->error = bio->bi_status; in hib_end_io() 279 int error = 0; in hib_submit_io() local 297 error = submit_bio_wait(bio); in hib_submit_io() 301 return error; in hib_submit_io() 311 return blk_status_to_errno(hb->error); in hib_wait_io() 319 int error; in mark_swapfiles() local 334 error = hib_submit_io(REQ_OP_WRITE | REQ_SYNC, in mark_swapfiles() [all …]
|
D | main.c | 176 int error; in mem_sleep_store() local 178 error = pm_autosleep_lock(); in mem_sleep_store() 179 if (error) in mem_sleep_store() 180 return error; in mem_sleep_store() 183 error = -EBUSY; in mem_sleep_store() 191 error = -EINVAL; in mem_sleep_store() 195 return error ? error : n; in mem_sleep_store() 271 int error = -EINVAL; in pm_test_store() local 285 error = 0; in pm_test_store() 291 return error ? error : n; in pm_test_store() [all …]
|
D | process.c | 131 int error; in freeze_processes() local 133 error = __usermodehelper_disable(UMH_FREEZING); in freeze_processes() 134 if (error) in freeze_processes() 135 return error; in freeze_processes() 145 error = try_to_freeze_tasks(true); in freeze_processes() 146 if (!error) in freeze_processes() 157 if (!error && !oom_killer_disable(msecs_to_jiffies(freeze_timeout_msecs))) in freeze_processes() 158 error = -EBUSY; in freeze_processes() 160 if (error) in freeze_processes() 162 return error; in freeze_processes() [all …]
|
D | snapshot.c | 688 int error; in memory_bm_create() local 693 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create() 694 if (error) in memory_bm_create() 695 return error; in memory_bm_create() 703 error = -ENOMEM; in memory_bm_create() 713 return error; in memory_bm_create() 817 int error; in memory_bm_set_bit() local 819 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit() 820 BUG_ON(error); in memory_bm_set_bit() 828 int error; in mem_bm_set_bit_check() local [all …]
|
D | power.h | 255 int error; in suspend_freeze_processes() local 257 error = freeze_processes(); in suspend_freeze_processes() 262 if (error) in suspend_freeze_processes() 263 return error; in suspend_freeze_processes() 265 error = freeze_kernel_threads(); in suspend_freeze_processes() 270 if (error) in suspend_freeze_processes() 273 return error; in suspend_freeze_processes()
|
/kernel/ |
D | sys.c | 189 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument 194 error = -EPERM; in set_one_prio() 198 error = -EACCES; in set_one_prio() 203 error = no_nice; in set_one_prio() 206 if (error == -ESRCH) in set_one_prio() 207 error = 0; in set_one_prio() 210 return error; in set_one_prio() 218 int error = -EINVAL; in SYSCALL_DEFINE3() local 226 error = -ESRCH; in SYSCALL_DEFINE3() 240 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3() [all …]
|
D | ksysfs.c | 245 int error; in ksysfs_init() local 249 error = -ENOMEM; in ksysfs_init() 252 error = sysfs_create_group(kernel_kobj, &kernel_attr_group); in ksysfs_init() 253 if (error) in ksysfs_init() 258 error = sysfs_create_bin_file(kernel_kobj, ¬es_attr); in ksysfs_init() 259 if (error) in ksysfs_init() 270 return error; in ksysfs_init()
|
D | kexec_core.c | 1136 int error = 0; in kernel_kexec() local 1141 error = -EINVAL; in kernel_kexec() 1148 error = freeze_processes(); in kernel_kexec() 1149 if (error) { in kernel_kexec() 1150 error = -EBUSY; in kernel_kexec() 1154 error = dpm_suspend_start(PMSG_FREEZE); in kernel_kexec() 1155 if (error) in kernel_kexec() 1164 error = dpm_suspend_end(PMSG_FREEZE); in kernel_kexec() 1165 if (error) in kernel_kexec() 1167 error = suspend_disable_secondary_cpus(); in kernel_kexec() [all …]
|
D | cred.c | 232 goto error; in cred_alloc_blank() 236 error: in cred_alloc_blank() 292 goto error; in prepare_creds() 295 goto error; in prepare_creds() 300 error: in prepare_creds() 757 goto error; in prepare_kernel_cred() 760 goto error; in prepare_kernel_cred() 766 error: in prepare_kernel_cred()
|
D | cpu.c | 1318 int error; in smp_shutdown_nonboot_cpus() local 1334 error = cpu_down_maps_locked(cpu, CPUHP_OFFLINE); in smp_shutdown_nonboot_cpus() 1335 if (error) { in smp_shutdown_nonboot_cpus() 1337 cpu, error); in smp_shutdown_nonboot_cpus() 1569 int cpu, error = 0; in freeze_secondary_cpus() local 1594 error = -EBUSY; in freeze_secondary_cpus() 1599 error = _cpu_down(cpu, 1, CPUHP_OFFLINE); in freeze_secondary_cpus() 1601 if (!error) in freeze_secondary_cpus() 1604 pr_err("Error taking CPU%d down: %d\n", cpu, error); in freeze_secondary_cpus() 1609 if (!error) in freeze_secondary_cpus() [all …]
|
D | rseq.c | 302 goto error; in __rseq_handle_notify_resume() 305 goto error; in __rseq_handle_notify_resume() 308 error: in __rseq_handle_notify_resume()
|
/kernel/time/ |
D | itimer.c | 116 int error = do_getitimer(which, &get_buffer); in SYSCALL_DEFINE2() local 118 if (!error && put_itimerval(value, &get_buffer)) in SYSCALL_DEFINE2() 119 error = -EFAULT; in SYSCALL_DEFINE2() 120 return error; in SYSCALL_DEFINE2() 145 int error = do_getitimer(which, &get_buffer); in COMPAT_SYSCALL_DEFINE2() local 147 if (!error && put_old_itimerval32(value, &get_buffer)) in COMPAT_SYSCALL_DEFINE2() 148 error = -EFAULT; in COMPAT_SYSCALL_DEFINE2() 149 return error; in COMPAT_SYSCALL_DEFINE2() 336 int error; in SYSCALL_DEFINE3() local 339 error = get_itimerval(&set_buffer, value); in SYSCALL_DEFINE3() [all …]
|
D | posix-timers.c | 65 #error "SIGEV_THREAD_ID must not share bit with other SIGEV values!" 503 int error, new_timer_id; in do_timer_create() local 518 error = new_timer_id; in do_timer_create() 533 error = -EINVAL; in do_timer_create() 552 error = -EFAULT; in do_timer_create() 556 error = kc->timer_create(new_timer); in do_timer_create() 557 if (error) in do_timer_create() 574 return error; in do_timer_create() 909 int error = 0; in do_timer_settime() local 925 error = -EINVAL; in do_timer_settime() [all …]
|
D | posix-cpu-timers.c | 162 int error = validate_clock_permissions(which_clock); in posix_cpu_clock_getres() local 164 if (!error) { in posix_cpu_clock_getres() 176 return error; in posix_cpu_clock_getres() 182 int error = validate_clock_permissions(clock); in posix_cpu_clock_set() local 188 return error ? : -EPERM; in posix_cpu_clock_set() 1508 int error; in do_cpu_nanosleep() local 1517 error = posix_cpu_timer_create(&timer); in do_cpu_nanosleep() 1520 if (!error) { in do_cpu_nanosleep() 1528 error = posix_cpu_timer_set(&timer, flags, &it, NULL); in do_cpu_nanosleep() 1529 if (error) { in do_cpu_nanosleep() [all …]
|
D | alarmtimer.c | 934 int error; in alarmtimer_init() local 951 error = alarmtimer_rtc_interface_setup(); in alarmtimer_init() 952 if (error) in alarmtimer_init() 953 return error; in alarmtimer_init() 955 error = platform_driver_register(&alarmtimer_driver); in alarmtimer_init() 956 if (error) in alarmtimer_init() 962 return error; in alarmtimer_init()
|
/kernel/module/ |
D | decompress.c | 37 int error; in module_get_next_page() local 40 error = module_extend_max_pages(info, info->used_pages); in module_get_next_page() 41 if (error) in module_get_next_page() 42 return ERR_PTR(error); in module_get_next_page() 203 #error "Unexpected configuration for CONFIG_MODULE_DECOMPRESS" 210 int error; in module_decompress() local 217 error = module_extend_max_pages(info, n_pages); in module_decompress() 221 error = data_size; in module_decompress() 227 error = -ENOMEM; in module_decompress() 236 return error; in module_decompress() [all …]
|
D | sysfs.c | 297 int error = 0; in module_add_modinfo_attrs() local 311 error = sysfs_create_file(&mod->mkobj.kobj, in module_add_modinfo_attrs() 313 if (error) in module_add_modinfo_attrs() 326 return error; in module_add_modinfo_attrs()
|
/kernel/debug/ |
D | gdbstub.c | 388 static void error_packet(char *pkt, int error) in error_packet() argument 390 error = -error; in error_packet() 392 pkt[1] = hex_asc[(error / 10)]; in error_packet() 393 pkt[2] = hex_asc[(error % 10)]; in error_packet() 651 int error; in gdb_cmd_detachkill() local 655 error = dbg_remove_all_break(); in gdb_cmd_detachkill() 656 if (error < 0) { in gdb_cmd_detachkill() 657 error_packet(remcom_out_buffer, error); in gdb_cmd_detachkill() 870 int error = 0; in gdb_cmd_break() local 905 error = dbg_set_sw_break(addr); in gdb_cmd_break() [all …]
|
D | debug_core.c | 295 int error; in dbg_activate_sw_breakpoints() local 303 error = kgdb_arch_set_breakpoint(&kgdb_break[i]); in dbg_activate_sw_breakpoints() 304 if (error) { in dbg_activate_sw_breakpoints() 305 ret = error; in dbg_activate_sw_breakpoints() 361 int error; in dbg_deactivate_sw_breakpoints() local 368 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_deactivate_sw_breakpoints() 369 if (error) { in dbg_deactivate_sw_breakpoints() 372 ret = error; in dbg_deactivate_sw_breakpoints() 422 int error; in dbg_remove_all_break() local 429 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_remove_all_break() [all …]
|
/kernel/trace/ |
D | trace_eprobe.c | 209 goto error; in alloc_event_probe() 214 goto error; in alloc_event_probe() 217 goto error; in alloc_event_probe() 221 goto error; in alloc_event_probe() 225 error: in alloc_event_probe() 635 goto error; in new_eprobe_trigger() 655 goto error; in new_eprobe_trigger() 664 error: in new_eprobe_trigger() 945 goto error; in trace_eprobe_parse_filter() 948 goto error; in trace_eprobe_parse_filter() [all …]
|
D | trace_kprobe.c | 273 goto error; in alloc_trace_kprobe() 278 goto error; in alloc_trace_kprobe() 295 goto error; in alloc_trace_kprobe() 299 error: in alloc_trace_kprobe() 837 goto error; in __trace_kprobe_create() 885 goto error; in __trace_kprobe_create() 894 goto error; in __trace_kprobe_create() 934 goto error; /* This can be -ENOMEM */ in __trace_kprobe_create() 940 goto error; in __trace_kprobe_create() 951 goto error; in __trace_kprobe_create() [all …]
|
/kernel/debug/kdb/ |
D | kdb_debugger.c | 55 int error = 0; in kdb_stub() local 134 error = kdb_main_loop(KDB_REASON_ENTER, reason, in kdb_stub() 143 if (error == KDB_CMD_KGDB) { in kdb_stub() 161 if (error == KDB_CMD_CPU) { in kdb_stub()
|