Home
last modified time | relevance | path

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

12

/kernel/power/
Dhibernate.c270 int error; in create_image() local
272 error = dpm_suspend_end(PMSG_FREEZE); in create_image()
273 if (error) { in create_image()
276 return error; in create_image()
279 error = platform_pre_snapshot(platform_mode); in create_image()
280 if (error || hibernation_test(TEST_PLATFORM)) in create_image()
283 error = disable_nonboot_cpus(); in create_image()
284 if (error || hibernation_test(TEST_CPUS)) in create_image()
289 error = syscore_suspend(); in create_image()
290 if (error) { in create_image()
[all …]
Dsuspend.c279 int error, nr_calls = 0; in suspend_prepare() local
286 error = __pm_notifier_call_chain(PM_SUSPEND_PREPARE, -1, &nr_calls); in suspend_prepare()
287 if (error) { in suspend_prepare()
293 error = suspend_freeze_processes(); in suspend_prepare()
295 if (!error) in suspend_prepare()
303 return error; in suspend_prepare()
328 int error, last_dev; in suspend_enter() local
330 error = platform_suspend_prepare(state); in suspend_enter()
331 if (error) in suspend_enter()
334 error = dpm_suspend_late(PMSG_SUSPEND); in suspend_enter()
[all …]
Duser.c50 int error, nr_calls = 0; in snapshot_open() local
58 error = -EBUSY; in snapshot_open()
64 error = -ENOSYS; in snapshot_open()
77 error = __pm_notifier_call_chain(PM_HIBERNATION_PREPARE, -1, &nr_calls); in snapshot_open()
78 if (error) in snapshot_open()
89 error = __pm_notifier_call_chain(PM_RESTORE_PREPARE, -1, &nr_calls); in snapshot_open()
90 if (!error) { in snapshot_open()
91 error = create_basic_memory_bitmaps(); in snapshot_open()
92 data->free_bitmaps = !error; in snapshot_open()
96 if (error) in snapshot_open()
[all …]
Dmain.c121 int error = -EINVAL; in pm_test_store() local
132 error = 0; in pm_test_store()
138 return error ? error : n; in pm_test_store()
359 int error; in state_store() local
361 error = pm_autosleep_lock(); in state_store()
362 if (error) in state_store()
363 return error; in state_store()
366 error = -EBUSY; in state_store()
372 error = pm_suspend(state); in state_store()
374 error = hibernate(); in state_store()
[all …]
Dswap.c228 int error; member
235 hb->error = 0; in hib_init_batch()
256 if (bio->bi_error && !hb->error) in hib_end_io()
257 hb->error = bio->bi_error; in hib_end_io()
269 int error = 0; in hib_submit_io() local
289 error = submit_bio_wait(bio); in hib_submit_io()
293 return error; in hib_submit_io()
299 return hb->error; in hib_wait_io()
308 int error; in mark_swapfiles() local
320 error = hib_submit_io(REQ_OP_WRITE, WRITE_SYNC, in mark_swapfiles()
[all …]
Dprocess.c132 int error; in freeze_processes() local
134 error = __usermodehelper_disable(UMH_FREEZING); in freeze_processes()
135 if (error) in freeze_processes()
136 return error; in freeze_processes()
147 error = try_to_freeze_tasks(true); in freeze_processes()
148 if (!error) { in freeze_processes()
161 if (!error && !oom_killer_disable(msecs_to_jiffies(freeze_timeout_msecs))) in freeze_processes()
162 error = -EBUSY; in freeze_processes()
164 if (error) in freeze_processes()
166 return error; in freeze_processes()
[all …]
Dsnapshot.c647 int error; in memory_bm_create() local
652 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
653 if (error) in memory_bm_create()
654 return error; in memory_bm_create()
662 error = -ENOMEM; in memory_bm_create()
672 return error; in memory_bm_create()
768 int error; in memory_bm_set_bit() local
770 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit()
771 BUG_ON(error); in memory_bm_set_bit()
779 int error; in mem_bm_set_bit_check() local
[all …]
Dpower.h249 int error; in suspend_freeze_processes() local
251 error = freeze_processes(); in suspend_freeze_processes()
256 if (error) in suspend_freeze_processes()
257 return error; in suspend_freeze_processes()
259 error = freeze_kernel_threads(); in suspend_freeze_processes()
264 if (error) in suspend_freeze_processes()
267 return error; in suspend_freeze_processes()
/kernel/
Dsys.c153 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument
158 error = -EPERM; in set_one_prio()
162 error = -EACCES; in set_one_prio()
167 error = no_nice; in set_one_prio()
170 if (error == -ESRCH) in set_one_prio()
171 error = 0; in set_one_prio()
174 return error; in set_one_prio()
182 int error = -EINVAL; in SYSCALL_DEFINE3() local
190 error = -ESRCH; in SYSCALL_DEFINE3()
205 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3()
[all …]
Dmemremap.c299 int error, nid, is_ram; in devm_memremap_pages() local
337 error = 0; in devm_memremap_pages()
348 error = -EBUSY; in devm_memremap_pages()
351 error = radix_tree_insert(&pgmap_radix, key >> PA_SECTION_SHIFT, in devm_memremap_pages()
353 if (error) { in devm_memremap_pages()
354 dev_err(dev, "%s: failed: %d\n", __func__, error); in devm_memremap_pages()
359 if (error) in devm_memremap_pages()
366 error = track_pfn_remap(NULL, &pgprot, PHYS_PFN(align_start), 0, in devm_memremap_pages()
368 if (error) in devm_memremap_pages()
373 error = arch_add_memory(nid, align_start, align_size, true); in devm_memremap_pages()
[all …]
Dksysfs.c237 int error; in ksysfs_init() local
241 error = -ENOMEM; in ksysfs_init()
244 error = sysfs_create_group(kernel_kobj, &kernel_attr_group); in ksysfs_init()
245 if (error) in ksysfs_init()
250 error = sysfs_create_bin_file(kernel_kobj, &notes_attr); in ksysfs_init()
251 if (error) in ksysfs_init()
262 return error; in ksysfs_init()
Dsignal.c727 int error; in check_kill_permission() local
735 error = audit_signal_info(sig, t); /* Let audit system see the signal */ in check_kill_permission()
736 if (error) in check_kill_permission()
737 return error; in check_kill_permission()
1300 int error = -ESRCH; in kill_pid_info() local
1307 error = group_send_sig_info(sig, info, p); in kill_pid_info()
1309 if (likely(!p || error != -ESRCH)) in kill_pid_info()
1310 return error; in kill_pid_info()
1322 int error; in kill_proc_info() local
1324 error = kill_pid_info(sig, info, find_vpid(pid)); in kill_proc_info()
[all …]
Dkexec_core.c1491 int error = 0; in kernel_kexec() local
1496 error = -EINVAL; in kernel_kexec()
1504 error = freeze_processes(); in kernel_kexec()
1505 if (error) { in kernel_kexec()
1506 error = -EBUSY; in kernel_kexec()
1510 error = dpm_suspend_start(PMSG_FREEZE); in kernel_kexec()
1511 if (error) in kernel_kexec()
1520 error = dpm_suspend_end(PMSG_FREEZE); in kernel_kexec()
1521 if (error) in kernel_kexec()
1523 error = disable_nonboot_cpus(); in kernel_kexec()
[all …]
Dcred.c220 goto error; in cred_alloc_blank()
224 error: in cred_alloc_blank()
278 goto error; in prepare_creds()
282 error: in prepare_creds()
631 goto error; in prepare_kernel_cred()
637 error: in prepare_kernel_cred()
Dptrace.c654 int error = -ESRCH; in ptrace_getsiginfo() local
657 error = -EINVAL; in ptrace_getsiginfo()
660 error = 0; in ptrace_getsiginfo()
664 return error; in ptrace_getsiginfo()
670 int error = -ESRCH; in ptrace_setsiginfo() local
673 error = -EINVAL; in ptrace_setsiginfo()
676 error = 0; in ptrace_setsiginfo()
680 return error; in ptrace_setsiginfo()
/kernel/debug/
Dgdbstub.c390 static void error_packet(char *pkt, int error) in error_packet() argument
392 error = -error; in error_packet()
394 pkt[1] = hex_asc[(error / 10)]; in error_packet()
395 pkt[2] = hex_asc[(error % 10)]; in error_packet()
653 int error; in gdb_cmd_detachkill() local
657 error = dbg_remove_all_break(); in gdb_cmd_detachkill()
658 if (error < 0) { in gdb_cmd_detachkill()
659 error_packet(remcom_out_buffer, error); in gdb_cmd_detachkill()
859 int error = 0; in gdb_cmd_break() local
894 error = dbg_set_sw_break(addr); in gdb_cmd_break()
[all …]
Ddebug_core.c251 int error; in dbg_activate_sw_breakpoints() local
259 error = kgdb_arch_set_breakpoint(&kgdb_break[i]); in dbg_activate_sw_breakpoints()
260 if (error) { in dbg_activate_sw_breakpoints()
261 ret = error; in dbg_activate_sw_breakpoints()
316 int error; in dbg_deactivate_sw_breakpoints() local
323 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_deactivate_sw_breakpoints()
324 if (error) { in dbg_deactivate_sw_breakpoints()
327 ret = error; in dbg_deactivate_sw_breakpoints()
364 int error; in dbg_remove_all_break() local
371 error = kgdb_arch_remove_breakpoint(&kgdb_break[i]); in dbg_remove_all_break()
[all …]
/kernel/time/
Ditimer.c105 int error = -EFAULT; in SYSCALL_DEFINE2() local
109 error = do_getitimer(which, &get_buffer); in SYSCALL_DEFINE2()
110 if (!error && in SYSCALL_DEFINE2()
112 error = -EFAULT; in SYSCALL_DEFINE2()
114 return error; in SYSCALL_DEFINE2()
149 u32 error, incr_error; in set_cpu_itimer() local
157 error = cputime_sub_ns(nval, ns_nval); in set_cpu_itimer()
171 it->error = error; in set_cpu_itimer()
282 int error; in SYSCALL_DEFINE3() local
294 error = do_setitimer(which, &set_buffer, ovalue ? &get_buffer : NULL); in SYSCALL_DEFINE3()
[all …]
Dposix-timers.c77 #error "SIGEV_THREAD_ID must not share bit with other SIGEV values!"
613 int error, new_timer_id; in SYSCALL_DEFINE3() local
629 error = new_timer_id; in SYSCALL_DEFINE3()
640 error = -EFAULT; in SYSCALL_DEFINE3()
647 error = -EINVAL; in SYSCALL_DEFINE3()
666 error = -EFAULT; in SYSCALL_DEFINE3()
670 error = kc->timer_create(new_timer); in SYSCALL_DEFINE3()
671 if (error) in SYSCALL_DEFINE3()
688 return error; in SYSCALL_DEFINE3()
891 int error = 0; in SYSCALL_DEFINE4() local
[all …]
Dposix-cpu-timers.c33 int error = 0; in check_clock() local
47 error = -EINVAL; in check_clock()
51 return error; in check_clock()
146 int error = check_clock(which_clock); in posix_cpu_clock_getres() local
147 if (!error) { in posix_cpu_clock_getres()
159 return error; in posix_cpu_clock_getres()
169 int error = check_clock(which_clock); in posix_cpu_clock_set() local
170 if (error == 0) { in posix_cpu_clock_set()
171 error = -EPERM; in posix_cpu_clock_set()
173 return error; in posix_cpu_clock_set()
[all …]
Dclocksource.c1006 int error = subsys_system_register(&clocksource_subsys, NULL); in init_clocksource_sysfs() local
1008 if (!error) in init_clocksource_sysfs()
1009 error = device_register(&device_clocksource); in init_clocksource_sysfs()
1010 if (!error) in init_clocksource_sysfs()
1011 error = device_create_file( in init_clocksource_sysfs()
1014 if (!error) in init_clocksource_sysfs()
1015 error = device_create_file(&device_clocksource, in init_clocksource_sysfs()
1017 if (!error) in init_clocksource_sysfs()
1018 error = device_create_file( in init_clocksource_sysfs()
1021 return error; in init_clocksource_sysfs()
Dalarmtimer.c844 int error = 0; in alarmtimer_init() local
871 error = alarmtimer_rtc_interface_setup(); in alarmtimer_init()
872 if (error) in alarmtimer_init()
873 return error; in alarmtimer_init()
875 error = platform_driver_register(&alarmtimer_driver); in alarmtimer_init()
876 if (error) in alarmtimer_init()
881 error = PTR_ERR(pdev); in alarmtimer_init()
891 return error; in alarmtimer_init()
/kernel/debug/kdb/
Dkdb_debugger.c55 int error = 0; in kdb_stub() local
141 error = kdb_main_loop(KDB_REASON_ENTER, reason, in kdb_stub()
151 if (error == KDB_CMD_KGDB) { in kdb_stub()
170 if (error == KDB_CMD_CPU) { in kdb_stub()
/kernel/printk/
Dprintk.c1433 int error; in do_syslog() local
1435 error = check_syslog_permissions(type, source); in do_syslog()
1436 if (error) in do_syslog()
1445 error = -EINVAL; in do_syslog()
1448 error = 0; in do_syslog()
1452 error = -EFAULT; in do_syslog()
1455 error = wait_event_interruptible(log_wait, in do_syslog()
1457 if (error) in do_syslog()
1459 error = syslog_print(buf, len); in do_syslog()
1467 error = -EINVAL; in do_syslog()
[all …]
/kernel/trace/
Dtrace_kprobe.c283 goto error; in alloc_trace_kprobe()
288 goto error; in alloc_trace_kprobe()
301 goto error; in alloc_trace_kprobe()
307 goto error; in alloc_trace_kprobe()
311 goto error; in alloc_trace_kprobe()
316 goto error; in alloc_trace_kprobe()
321 error: in alloc_trace_kprobe()
734 goto error; in create_trace_kprobe()
741 goto error; in create_trace_kprobe()
749 goto error; in create_trace_kprobe()
[all …]

12