/kernel/linux/linux-5.10/tools/power/cpupower/lib/ |
D | cpufreq.c | 265 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local 280 if (current) { in cpufreq_get_available_governors() 281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 282 if (!current->next) in cpufreq_get_available_governors() 284 current = current->next; in cpufreq_get_available_governors() 289 current = first; in cpufreq_get_available_governors() 291 current->first = first; in cpufreq_get_available_governors() 292 current->next = NULL; in cpufreq_get_available_governors() 294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors() 295 if (!current->governor) in cpufreq_get_available_governors() [all …]
|
/kernel/linux/linux-5.10/Documentation/hwmon/ |
D | max16601.rst | 58 curr1_input VCORE input current, derived from duty cycle and output 59 current. 60 curr1_max Maximum input current. 64 curr2_input VCORE phase 0 input current. 67 curr3_input VCORE phase 1 input current. 70 curr4_input VCORE phase 2 input current. 73 curr5_input VCORE phase 3 input current. 76 curr6_input VCORE phase 4 input current. 79 curr7_input VCORE phase 5 input current. 82 curr8_input VCORE phase 6 input current. [all …]
|
D | ina3221.rst | 21 The Texas Instruments INA3221 monitors voltage, current, and power on the high 23 and supply voltage, with programmable conversion times and averaging, current 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 [all …]
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | sigutil_32.c | 19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state() 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() 38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state() 39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | tty_jobctrl.c | 17 return (sigismember(¤t->blocked, sig) || in is_ignored() 18 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored() 37 if (current->signal->tty != tty) in __tty_check_change() 41 pgrp = task_pgrp(current); in __tty_check_change() 105 tty->pgrp = get_pid(task_pgrp(current)); in __proc_set_tty() 106 tty->session = get_pid(task_session(current)); in __proc_set_tty() 108 if (current->signal->tty) { in __proc_set_tty() 110 current->signal->tty->name); in __proc_set_tty() 111 tty_kref_put(current->signal->tty); in __proc_set_tty() 113 put_pid(current->signal->tty_old_pgrp); in __proc_set_tty() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | signal_32.c | 245 flush_fp_to_thread(current); in save_user_regs() 253 if (current->thread.used_vr) { in save_user_regs() 254 flush_altivec_to_thread(current); in save_user_regs() 255 if (__copy_to_user(&frame->mc_vregs, ¤t->thread.vr_state, in save_user_regs() 271 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_user_regs() 272 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) in save_user_regs() 275 if (copy_fpr_to_user(&frame->mc_fregs, current)) in save_user_regs() 290 if (current->thread.used_vsr && ctx_has_vsx_region) { in save_user_regs() 291 flush_vsx_to_thread(current); in save_user_regs() 292 if (copy_vsx_to_user(&frame->mc_vsregs, current)) in save_user_regs() [all …]
|
D | uprobes.c | 54 struct arch_uprobe_task *autask = ¤t->utask->autask; in arch_uprobe_pre_xol() 56 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 57 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 58 regs->nip = current->utask->xol_vaddr; in arch_uprobe_pre_xol() 60 user_enable_single_step(current); in arch_uprobe_pre_xol() 102 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol() 104 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 106 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 117 user_disable_single_step(current); in arch_uprobe_post_xol() 157 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol() [all …]
|
D | process.c | 95 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required() 200 BUG_ON(tsk != current); in flush_fp_to_thread() 216 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp() 217 check_if_tm_restore_required(current); in enable_kernel_fp() 226 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_fp() 228 __giveup_fpu(current); in enable_kernel_fp() 267 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec() 268 check_if_tm_restore_required(current); in enable_kernel_altivec() 277 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_altivec() 279 __giveup_altivec(current); in enable_kernel_altivec() [all …]
|
D | traps.c | 144 if (kexec_should_crash(current)) in die_will_crash() 147 !current->pid || is_global_init(current)) in die_will_crash() 229 if (kexec_should_crash(current)) in oops_end() 241 if (in_interrupt() || panic_on_oops || !current->pid || in oops_end() 242 is_global_init(current)) { in oops_end() 318 if (!unhandled_signal(current, signr)) in show_signal_msg() 325 current->comm, current->pid, signame(signr), signr, in show_signal_msg() 348 current->thread.trap_nr = code; in exception_common() 354 thread_pkey_regs_save(¤t->thread); in exception_common() 587 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC) [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/ |
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()
|
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() 180 handle_signal_unsupported(current, si, uc)) { 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() 188 } else if (signum == sig_copyctx && current->live_uc && in default_handler() [all …]
|
/kernel/linux/linux-5.10/include/linux/sched/ |
D | mm.h | 157 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context() 197 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() 198 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() 212 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore() 228 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() 229 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save() 243 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore() 248 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() 249 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save() 255 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore() [all …]
|
D | signal.h | 281 struct task_struct *task = current; in kernel_dequeue_signal() 294 spin_lock_irq(¤t->sighand->siglock); in kernel_signal_stop() 295 if (current->jobctl & JOBCTL_STOP_DEQUEUED) in kernel_signal_stop() 297 spin_unlock_irq(¤t->sighand->siglock); in kernel_signal_stop() 353 set_tsk_thread_flag(current, TIF_SIGPENDING); in restart_syscall() 392 (fatal_signal_pending(current) || in fault_signal_pending() 393 (user_mode(regs) && signal_pending(current)))); in fault_signal_pending() 468 current->restore_sigmask = true; in set_restore_sigmask() 476 current->restore_sigmask = false; in clear_restore_sigmask() 480 return current->restore_sigmask; in test_restore_sigmask() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
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() 187 if (unlikely(current->task_works)) in tracehook_notify_resume() 191 if (unlikely(current->cached_requested_key)) { in tracehook_notify_resume() 192 key_put(current->cached_requested_key); in tracehook_notify_resume() [all …]
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
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() 60 current->thread.gs_bc_cb = gs_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() [all …]
|
/kernel/linux/linux-5.10/arch/h8300/kernel/ |
D | traps.c | 48 current->thread.esp0 = ssp; in set_esp0() 62 pr_info("COMM=%s PID=%d\n", current->comm, current->pid); in dump() 63 if (current->mm) { in dump() 65 (int) current->mm->start_code, in dump() 66 (int) current->mm->end_code, in dump() 67 (int) current->mm->start_data, in dump() 68 (int) current->mm->end_data, in dump() 69 (int) current->mm->end_data, in dump() 70 (int) current->mm->brk); in dump() 72 (int) current->mm->start_stack, in dump() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/mm/ |
D | fault.c | 27 signo = current->thread.signo; in send_fault_sig() 28 si_code = current->thread.code; in send_fault_sig() 29 addr = (void __user *)current->thread.faddr; 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() 191 current->thread.code = BUS_ADRERR; in do_page_fault() 192 current->thread.faddr = address; in do_page_fault() 196 current->thread.signo = SIGSEGV; in do_page_fault() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | rseq.c | 152 if (current->rseq_sig != sig) { in rseq_get_rseq_cs() 155 sig, current->rseq_sig, current->pid, usig); in rseq_get_rseq_cs() 224 struct task_struct *t = current; in rseq_ip_fixup() 264 struct task_struct *t = current; in __rseq_handle_notify_resume() 299 struct task_struct *t = current; in rseq_syscall() 323 if (current->rseq != rseq || !current->rseq) in SYSCALL_DEFINE4() 327 if (current->rseq_sig != sig) in SYSCALL_DEFINE4() 329 ret = rseq_reset_rseq_cpu_id(current); in SYSCALL_DEFINE4() 332 current->rseq = NULL; in SYSCALL_DEFINE4() 333 current->rseq_sig = 0; in SYSCALL_DEFINE4() [all …]
|
D | acct.c | 197 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() 291 pin_kill(task_active_pid_ns(current)->bacct); in SYSCALL_DEFINE1() 417 struct pacct_struct *pacct = ¤t->signal->pacct; in fill_ac() 429 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac() 433 run_time -= current->group_leader->start_time; in fill_ac() 458 spin_lock_irq(¤t->sighand->siglock); in fill_ac() 459 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac() 468 spin_unlock_irq(¤t->sighand->siglock); in fill_ac() 483 flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; in do_acct_process() 484 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process() [all …]
|
/kernel/linux/linux-5.10/arch/mips/math-emu/ |
D | dsemul.c | 77 mm_context_t *mm_ctx = ¤t->mm->context; in alloc_emuframe() 119 pr_debug("allocate emuframe %d to %d\n", idx, current->pid); in alloc_emuframe() 131 pr_debug("free emuframe %d from %d\n", idx, current->pid); in free_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() 200 atomic_set(¤t->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_rollback() 201 free_emuframe(fr_idx, current->mm); in dsemul_thread_rollback() 249 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in mips_dsemul() 276 ret = access_process_vm(current, fr_uaddr, &fr, sizeof(fr), in mips_dsemul() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | reclaim_acct.c | 69 if (!current->reclaim_acct) in reclaimacct_substage_start() 72 current->reclaim_acct->start[stub] = ktime_get_ns(); in reclaimacct_substage_start() 78 if (!current->reclaim_acct) in reclaimacct_substage_end() 81 __reclaimacct_end(current->reclaim_acct, freed, stub, shrinker); in reclaimacct_substage_end() 110 if (!current->reclaim_acct) in reclaimacct_start() 111 current->reclaim_acct = ra; in reclaimacct_start() 113 current->reclaim_acct->reclaim_type = type; in reclaimacct_start() 114 current->reclaim_acct->start[RA_RECLAIM] = ktime_get_ns(); in reclaimacct_start() 119 if (!current->reclaim_acct) in reclaimacct_end() 122 __reclaimacct_end(current->reclaim_acct, 0, RA_RECLAIM, NULL); in reclaimacct_end() [all …]
|
/kernel/linux/linux-5.10/arch/nds32/include/asm/ |
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));
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | fgraph.c | 68 if (!current->ret_stack) in ftrace_push_return_trace() 78 if (current->curr_ret_stack == FTRACE_RETFUNC_DEPTH - 1) { 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() 89 current->ret_stack[index].calltime = calltime; in ftrace_push_return_trace() 91 current->ret_stack[index].fp = frame_pointer; in ftrace_push_return_trace() 94 current->ret_stack[index].retp = retp; in ftrace_push_return_trace() 128 trace.depth = ++current->curr_ret_depth; in function_graph_enter() [all …]
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
D | process.c | 91 arch_switch_to(current); in __switch_to() 93 return current->thread.prev_sched; in __switch_to() 98 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end() 110 return task_pid_nr(current); in get_current_pid() 122 if (current->thread.prev_sched != NULL) in new_thread_handler() 123 schedule_tail(current->thread.prev_sched); in new_thread_handler() 124 current->thread.prev_sched = NULL; in new_thread_handler() 126 fn = current->thread.request.u.thread.proc; in new_thread_handler() 127 arg = current->thread.request.u.thread.arg; in new_thread_handler() 133 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
D | bq25890.txt | 15 - ti,charge-current: integer, maximum charging current (in uA); 16 - ti,termination-current: integer, charge will be terminated when current in 18 - ti,precharge-current: integer, maximum charge current during precharge 24 - ti,boost-max-current: integer, maximum allowed current draw in boost mode 31 input current will be the lower between the resistor setting and the IINLIM 34 current is lowered, to avoid overheating (in degrees Celsius). If omitted, 51 ti,charge-current = <1000000>; 52 ti,termination-current = <50000>; 53 ti,precharge-current = <128000>; 56 ti,boost-max-current = <1000000>;
|