/linux/tools/power/cpupower/lib/ |
A D | cpufreq.c | 280 if (current) { in cpufreq_get_available_governors() 281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 284 current = current->next; in cpufreq_get_available_governors() 358 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies() 361 current = current->next; in cpufreq_get_available_frequencies() 414 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies() 417 current = current->next; in cpufreq_get_boost_frequencies() 489 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list() 492 current = current->next; in sysfs_get_cpu_list() 722 current->next = malloc(sizeof(*current)); in cpufreq_get_stats() [all …]
|
/linux/arch/sparc/kernel/ |
A D | sigutil_32.c | 21 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 22 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state() 24 clear_tsk_thread_flag(current, TIF_USEDFPU); in save_fpu_state() 27 if (current == last_task_used_math) { in save_fpu_state() 29 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 30 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state() 36 ¤t->thread.float_regs[0], in save_fpu_state() 40 if (current->thread.fpqdepth != 0) in save_fpu_state() 42 ¤t->thread.fpqueue[0], in save_fpu_state() 60 if (current == last_task_used_math) { in restore_fpu_state() [all …]
|
/linux/drivers/tty/ |
A D | tty_jobctrl.c | 39 if (current->signal->tty != tty) in __tty_check_change() 43 pgrp = task_pgrp(current); in __tty_check_change() 112 if (current->signal->tty) { in __proc_set_tty() 114 current->signal->tty->name); in __proc_set_tty() 115 tty_kref_put(current->signal->tty); in __proc_set_tty() 136 if (current->signal->leader && in tty_open_proc_set_tty() 137 !current->signal->tty && in tty_open_proc_set_tty() 269 if (!current->signal->leader) in disassociate_ctty() 367 if (current->signal->leader && in tiocsctty() 375 if (!current->signal->leader || current->signal->tty) { in tiocsctty() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | signal_32.c | 244 flush_fp_to_thread(current); in prepare_save_user_regs() 246 if (current->thread.used_vr) in prepare_save_user_regs() 253 flush_vsx_to_thread(current); in prepare_save_user_regs() 256 if (current->thread.used_spe) in prepare_save_user_regs() 257 flush_spe_to_thread(current); in prepare_save_user_regs() 271 if (current->thread.used_vr) { in __unsafe_save_user_regs() 310 if (current->thread.used_spe) { in __unsafe_save_user_regs() 377 if (current->thread.used_vr) { in save_tm_user_regs_unsafe() 421 if (current->thread.used_vsr) { in save_tm_user_regs_unsafe() 494 current->thread.used_vr = true; in restore_user_regs() [all …]
|
A D | process.c | 218 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp() 230 __giveup_fpu(current); in enable_kernel_fp() 269 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec() 352 __giveup_vsx(current); in enable_kernel_vsx() 388 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe() 1610 if (t != current) in set_thread_tidr() 1887 memset(¤t->thread.fp_state, 0, sizeof(current->thread.fp_state)); in start_thread() 1891 memset(¤t->thread.vr_state, 0, sizeof(current->thread.vr_state)); in start_thread() 1899 memset(current->thread.evr, 0, sizeof(current->thread.evr)); in start_thread() 2164 tsk = current; in show_stack() [all …]
|
A D | traps.c | 148 !current->pid || is_global_init(current)) in die_will_crash() 242 is_global_init(current)) { in oops_end() 325 current->comm, current->pid, signame(signr), signr, in show_signal_msg() 889 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu() 924 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu() 939 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu() 946 smp_processor_id(), current->comm, current->pid, regs->nip, in p9_hmi_special_emu() 965 smp_processor_id(), current->comm, current->pid, in p9_hmi_special_emu() 1182 flush_fp_to_thread(current); in parse_fpe() 1682 current->thread.load_tm++; in tm_unavailable() [all …]
|
A D | uprobes.c | 63 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 64 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 65 regs_set_return_ip(regs, current->utask->xol_vaddr); in arch_uprobe_pre_xol() 67 user_enable_single_step(current); in arch_uprobe_pre_xol() 109 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol() 111 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 113 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 124 user_disable_single_step(current); in arch_uprobe_post_xol() 165 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol() 167 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol() [all …]
|
/linux/include/linux/sched/ |
A D | mm.h | 247 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() 261 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore() 278 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save() 292 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore() 298 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save() 304 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore() 311 current->flags |= PF_MEMALLOC_PIN; in memalloc_pin_save() 317 current->flags = (current->flags & ~PF_MEMALLOC_PIN) | flags; in memalloc_pin_restore() 342 old = current->active_memcg; in set_active_memcg() 343 current->active_memcg = memcg; in set_active_memcg() [all …]
|
A D | signal.h | 492 current->restore_sigmask = true; in set_restore_sigmask() 500 current->restore_sigmask = false; in clear_restore_sigmask() 504 return current->restore_sigmask; in test_restore_sigmask() 512 if (!current->restore_sigmask) in test_and_clear_restore_sigmask() 514 current->restore_sigmask = false; in test_and_clear_restore_sigmask() 539 res = ¤t->saved_sigmask; in sigmask_to_save() 556 sp - current->sas_ss_sp < current->sas_ss_size; in __on_sig_stack() 559 sp - current->sas_ss_sp <= current->sas_ss_size; in __on_sig_stack() 585 if (!current->sas_ss_size) in sas_ss_flags() 602 return current->sas_ss_sp; in sigsp() [all …]
|
/linux/include/linux/ |
A D | tracehook.h | 60 int ptrace = current->ptrace; in ptrace_report_syscall() 65 current->ptrace_message = message; in ptrace_report_syscall() 73 if (current->exit_code) { in ptrace_report_syscall() 74 send_sig(current->exit_code, current, 1); in ptrace_report_syscall() 75 current->exit_code = 0; in ptrace_report_syscall() 78 current->ptrace_message = 0; in ptrace_report_syscall() 79 return fatal_signal_pending(current); in ptrace_report_syscall() 188 if (unlikely(current->task_works)) in tracehook_notify_resume() 193 key_put(current->cached_requested_key); in tracehook_notify_resume() 194 current->cached_requested_key = NULL; in tracehook_notify_resume() [all …]
|
/linux/tools/testing/selftests/arm64/signal/ |
A D | test_signals.c | 15 struct tdescr *current; variable 19 current = &tde; in main() 21 ksft_print_msg("%s :: %s\n", current->name, current->descr); in main() 22 if (test_setup(current) && test_init(current)) { in main() 23 test_run(current); in main() 24 test_cleanup(current); in main() 26 test_result(current); in main() 28 return current->result; in main()
|
A D | test_signals_utils.c | 23 extern struct tdescr *current; 101 default_result(current, 1); in handle_signal_unsupported() 158 default_result(current, 1); in handle_signal_ok() 179 if (current->sig_unsupp && signum == current->sig_unsupp && in default_handler() 182 } else if (current->sig_trig && signum == current->sig_trig && in default_handler() 183 handle_signal_trigger(current, si, uc)) { in default_handler() 185 } else if (current->sig_ok && signum == current->sig_ok && in default_handler() 186 handle_signal_ok(current, si, uc)) { in default_handler() 189 handle_signal_copyctx(current, si, uc)) { in default_handler() 198 default_result(current, 1); in default_handler() [all …]
|
/linux/arch/s390/kernel/ |
A D | guarded_storage.c | 25 if (!current->thread.gs_cb) { in gs_enable() 33 current->thread.gs_cb = gs_cb; in gs_enable() 41 if (current->thread.gs_cb) { in gs_disable() 43 kfree(current->thread.gs_cb); in gs_disable() 44 current->thread.gs_cb = NULL; in gs_disable() 55 gs_cb = current->thread.gs_bc_cb; in gs_set_bc_cb() 71 gs_cb = current->thread.gs_bc_cb; in gs_clear_bc_cb() 72 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb() 83 gs_cb = current->thread.gs_bc_cb; in gs_load_bc_cb() 85 kfree(current->thread.gs_cb); in gs_load_bc_cb() [all …]
|
A D | signal.c | 111 save_access_regs(current->thread.acrs); in store_sigregs() 118 restore_access_regs(current->thread.acrs); in load_sigregs() 170 sizeof(current->thread.acrs)); in restore_sigregs() 221 struct pt_regs *regs = task_pt_regs(current); in SYSCALL_DEFINE0() 243 struct pt_regs *regs = task_pt_regs(current); in SYSCALL_DEFINE0() 283 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe() 361 regs->gprs[6] = current->thread.last_break; in setup_frame() 428 regs->gprs[5] = current->thread.last_break; in setup_rt_frame() 466 current->thread.system_call = in arch_do_signal_or_restart() 471 if (current->thread.system_call) { in arch_do_signal_or_restart() [all …]
|
/linux/Documentation/hwmon/ |
A D | max16601.rst | 67 and output current. 68 curr1_max Maximum input current. 72 curr[P+2]_input VCORE phase P input current. 80 curr[N+3]_input VSA input current. 83 curr[N+4]_input VCORE output current. 84 curr[N+4]_crit Critical output current. 86 curr[N+4]_max Maximum output current. 93 curr[2*N+5]_input VSA output current. 96 curr[2*N+5]_crit Critical output current. 98 curr[2*N+5]_max Maximum output current. [all …]
|
A D | ina3221.rst | 21 The Texas Instruments INA3221 monitors voltage, current, and power on the high 35 curr[123]_crit Critical alert current(mA) setting, activates the 36 corresponding alarm when the respective current 38 curr[123]_crit_alarm Critical alert current limit exceeded 39 curr[123]_max Warning alert current(mA) setting, activates the 40 corresponding alarm when the respective current 42 curr[123]_max_alarm Warning alert current limit exceeded 46 curr4_input Sum of current(mA) measurement channels, 49 curr4_crit Critical alert current(mA) setting for sum of current 51 when the respective current is above this value [all …]
|
/linux/arch/m68k/mm/ |
A D | fault.c | 27 signo = current->thread.signo; in send_fault_sig() 28 si_code = current->thread.code; in send_fault_sig() 71 struct mm_struct *mm = current->mm; in do_page_fault() 185 current->thread.signo = SIGBUS; in do_page_fault() 186 current->thread.faddr = address; in do_page_fault() 190 current->thread.signo = SIGBUS; in do_page_fault() 192 current->thread.faddr = address; in do_page_fault() 196 current->thread.signo = SIGSEGV; in do_page_fault() 198 current->thread.faddr = address; in do_page_fault() 202 current->thread.signo = SIGSEGV; in do_page_fault() [all …]
|
/linux/arch/h8300/kernel/ |
A D | traps.c | 44 current->thread.esp0 = ssp; in set_esp0() 58 pr_info("COMM=%s PID=%d\n", current->comm, current->pid); in dump() 59 if (current->mm) { in dump() 61 (int) current->mm->start_code, in dump() 62 (int) current->mm->end_code, in dump() 63 (int) current->mm->start_data, in dump() 64 (int) current->mm->end_data, in dump() 65 (int) current->mm->end_data, in dump() 66 (int) current->mm->brk); in dump() 68 (int) current->mm->start_stack, in dump() [all …]
|
/linux/kernel/ |
A D | rseq.c | 164 if (current->rseq_sig != sig) { in rseq_get_rseq_cs() 167 sig, current->rseq_sig, current->pid, usig); in rseq_get_rseq_cs() 240 struct task_struct *t = current; in rseq_ip_fixup() 337 if (current->rseq != rseq || !current->rseq) in SYSCALL_DEFINE4() 341 if (current->rseq_sig != sig) in SYSCALL_DEFINE4() 346 current->rseq = NULL; in SYSCALL_DEFINE4() 347 current->rseq_sig = 0; in SYSCALL_DEFINE4() 354 if (current->rseq) { in SYSCALL_DEFINE4() 362 if (current->rseq_sig != sig) in SYSCALL_DEFINE4() 377 current->rseq = rseq; in SYSCALL_DEFINE4() [all …]
|
A D | acct.c | 537 if (group_dead && current->mm) { in acct_collect() 540 mmap_read_lock(current->mm); in acct_collect() 541 vma = current->mm->mmap; in acct_collect() 546 mmap_read_unlock(current->mm); in acct_collect() 552 if (thread_group_leader(current)) { in acct_collect() 554 if (current->flags & PF_FORKNOEXEC) in acct_collect() 557 if (current->flags & PF_SUPERPRIV) in acct_collect() 559 if (current->flags & PF_DUMPCORE) in acct_collect() 561 if (current->flags & PF_SIGNALED) in acct_collect() 567 pacct->ac_minflt += current->min_flt; in acct_collect() [all …]
|
/linux/arch/mips/math-emu/ |
A D | dsemul.c | 77 mm_context_t *mm_ctx = ¤t->mm->context; in alloc_emuframe() 183 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in dsemul_thread_rollback() 196 regs->cp0_epc = current->thread.bd_emu_branch_pc; in dsemul_thread_rollback() 198 regs->cp0_epc = current->thread.bd_emu_cont_pc; in dsemul_thread_rollback() 201 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback() 280 free_emuframe(fr_idx, current->mm); in mips_dsemul() 285 current->thread.bd_emu_branch_pc = branch_pc; in mips_dsemul() 286 current->thread.bd_emu_cont_pc = cont_pc; in mips_dsemul() 287 atomic_set(¤t->thread.bd_emu_frame, fr_idx); in mips_dsemul() 298 if (!dsemul_thread_cleanup(current)) { in do_dsemulret() [all …]
|
/linux/kernel/trace/ |
A D | fgraph.c | 68 if (!current->ret_stack) in ftrace_push_return_trace() 79 atomic_inc(¤t->trace_overrun); in ftrace_push_return_trace() 85 index = ++current->curr_ret_stack; in ftrace_push_return_trace() 87 current->ret_stack[index].ret = ret; in ftrace_push_return_trace() 88 current->ret_stack[index].func = func; in ftrace_push_return_trace() 94 current->ret_stack[index].retp = retp; in ftrace_push_return_trace() 141 current->curr_ret_stack--; in function_graph_enter() 143 current->curr_ret_depth--; in function_graph_enter() 154 index = current->curr_ret_stack; in ftrace_pop_return_trace() 183 current->ret_stack[index].fp, in ftrace_pop_return_trace() [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
A D | bq25890.yaml | 34 ti,charge-current: 38 ti,termination-current: 44 ti,precharge-current: 58 ti,boost-max-current: 89 - ti,charge-current 90 - ti,termination-current 91 - ti,precharge-current 94 - ti,boost-max-current 113 ti,charge-current = <1000000>; 114 ti,termination-current = <50000>; [all …]
|
/linux/arch/nds32/include/asm/ |
A D | fpu.h | 78 if (last_task_used_math == current) { 81 if (test_tsk_fpu(task_pt_regs(current))) { 83 save_fpu(current); 85 disable_ptreg_fpu(task_pt_regs(current)); 93 if (last_task_used_math != current) { 96 load_fpu(¤t->thread.fpu); 97 last_task_used_math = current; 100 if (!test_tsk_fpu(task_pt_regs(current))) { 101 load_fpu(¤t->thread.fpu); 104 enable_ptreg_fpu(task_pt_regs(current));
|
/linux/arch/um/kernel/ |
A D | process.c | 91 arch_switch_to(current); in __switch_to() 93 return current->thread.prev_sched; in __switch_to() 111 return task_pid_nr(current); in get_current_pid() 123 if (current->thread.prev_sched != NULL) in new_thread_handler() 124 schedule_tail(current->thread.prev_sched); in new_thread_handler() 125 current->thread.prev_sched = NULL; in new_thread_handler() 127 fn = current->thread.request.u.thread.proc; in new_thread_handler() 128 arg = current->thread.request.u.thread.arg; in new_thread_handler() 142 schedule_tail(current->thread.prev_sched); in fork_handler() 149 arch_switch_to(current); in fork_handler() [all …]
|