/Linux-v4.19/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 …]
|
D | process_32.c | 159 tsk = current; in show_stack() 161 if (tsk == current && !_ksp) in show_stack() 207 if(last_task_used_math == current) { 213 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, 214 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); 223 if (current->thread.flags & SPARC_FLAG_KTHREAD) { 224 current->thread.flags &= ~SPARC_FLAG_KTHREAD; 228 current->thread.kregs = (struct pt_regs *) 229 (task_stack_page(current) + (THREAD_SIZE - TRACEREG_SZ)); 312 if(last_task_used_math == current) { [all …]
|
D | traps_32.c | 62 printk("%s(%d): %s [#%d]\n", current->comm, task_pid_nr(current), str, ++die_counter); in die_if_kernel() 106 (void __user *)regs->pc, type - 0x80, current); in do_hw_interrupt() 119 send_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)pc, 0, current); in do_illegal_instruction() 127 send_sig_fault(SIGILL, ILL_PRVOPC, (void __user *)pc, 0, current); in do_priv_instruction() 148 0, current); in do_memaccess_unaligned() 168 if(last_task_used_math == current) in do_fpd_trap() 176 last_task_used_math = current; in do_fpd_trap() 178 fpload(¤t->thread.float_regs[0], ¤t->thread.fsr); in do_fpd_trap() 189 fpload(¤t->thread.float_regs[0], ¤t->thread.fsr); in do_fpd_trap() 210 struct task_struct *fpt = current; [all …]
|
/Linux-v4.19/tools/power/cpupower/lib/ |
D | cpufreq.c | 266 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local 281 if (current) { in cpufreq_get_available_governors() 282 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors() 283 if (!current->next) in cpufreq_get_available_governors() 285 current = current->next; in cpufreq_get_available_governors() 290 current = first; in cpufreq_get_available_governors() 292 current->first = first; in cpufreq_get_available_governors() 293 current->next = NULL; in cpufreq_get_available_governors() 295 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors() 296 if (!current->governor) in cpufreq_get_available_governors() [all …]
|
/Linux-v4.19/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() 107 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 …]
|
/Linux-v4.19/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() 33 force_sig_fault(signo, si_code, addr, current); in send_fault_sig() 71 struct mm_struct *mm = current->mm; in do_page_fault() 141 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault() 161 current->maj_flt++; in do_page_fault() 163 current->min_flt++; in do_page_fault() 195 current->thread.signo = SIGBUS; in do_page_fault() 196 current->thread.faddr = address; in do_page_fault() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | signal_32.c | 394 flush_fp_to_thread(current); in save_user_regs() 402 if (current->thread.used_vr) { in save_user_regs() 403 flush_altivec_to_thread(current); in save_user_regs() 404 if (__copy_to_user(&frame->mc_vregs, ¤t->thread.vr_state, in save_user_regs() 420 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_user_regs() 421 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) in save_user_regs() 424 if (copy_fpr_to_user(&frame->mc_fregs, current)) in save_user_regs() 439 if (current->thread.used_vsr && ctx_has_vsx_region) { in save_user_regs() 440 flush_vsx_to_thread(current); in save_user_regs() 441 if (copy_vsx_to_user(&frame->mc_vsregs, current)) in save_user_regs() [all …]
|
D | uprobes.c | 66 struct arch_uprobe_task *autask = ¤t->utask->autask; in arch_uprobe_pre_xol() 68 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol() 69 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol() 70 regs->nip = current->utask->xol_vaddr; in arch_uprobe_pre_xol() 72 user_enable_single_step(current); in arch_uprobe_pre_xol() 114 struct uprobe_task *utask = current->utask; in arch_uprobe_post_xol() 116 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol() 118 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol() 129 user_disable_single_step(current); in arch_uprobe_post_xol() 169 struct uprobe_task *utask = current->utask; in arch_uprobe_abort_xol() [all …]
|
D | process.c | 97 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required() 225 BUG_ON(tsk != current); in flush_fp_to_thread() 241 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp() 242 check_if_tm_restore_required(current); in enable_kernel_fp() 250 if(!msr_tm_active(cpumsr) && msr_tm_active(current->thread.regs->msr)) in enable_kernel_fp() 252 __giveup_fpu(current); in enable_kernel_fp() 260 load_fp_state(¤t->thread.fp_state); in restore_fp() 261 current->thread.load_fp++; in restore_fp() 305 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec() 306 check_if_tm_restore_required(current); in enable_kernel_altivec() [all …]
|
D | traps.c | 148 if (kexec_should_crash(current)) in die_will_crash() 151 !current->pid || is_global_init(current)) in die_will_crash() 233 if (kexec_should_crash(current)) in oops_end() 245 if (in_interrupt() || panic_on_oops || !current->pid || in oops_end() 246 is_global_init(current)) { in oops_end() 327 if (!unhandled_signal(current, signr)) in show_signal_msg() 334 current->comm, current->pid, signame(signr), signr, in show_signal_msg() 359 current->thread.trap_nr = code; in _exception_pkey() 365 thread_pkey_regs_save(¤t->thread); in _exception_pkey() 373 force_sig_info(signr, &info, current); in _exception_pkey() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/include/linux/sched/ |
D | mm.h | 158 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context() 160 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context() 190 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() 191 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() 205 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore() 221 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() 222 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save() 236 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore() 241 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() 242 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save() [all …]
|
/Linux-v4.19/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() 265 struct task_struct *t = current; in __rseq_handle_notify_resume() 293 struct task_struct *t = current; in rseq_syscall() 315 if (current->rseq != rseq || !current->rseq) in SYSCALL_DEFINE4() 317 if (current->rseq_len != rseq_len) in SYSCALL_DEFINE4() 319 if (current->rseq_sig != sig) in SYSCALL_DEFINE4() 321 ret = rseq_reset_rseq_cpu_id(current); in SYSCALL_DEFINE4() 324 current->rseq = NULL; in SYSCALL_DEFINE4() [all …]
|
D | seccomp.c | 80 struct task_struct *task = current; in populate_seccomp_data() 195 READ_ONCE(current->seccomp.filter); in seccomp_run_filters() 224 assert_spin_locked(¤t->sighand->siglock); in seccomp_may_assign_mode() 226 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode() 279 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_can_sync_threads() 280 assert_spin_locked(¤t->sighand->siglock); in seccomp_can_sync_threads() 283 caller = current; in seccomp_can_sync_threads() 320 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_sync_threads() 321 assert_spin_locked(¤t->sighand->siglock); in seccomp_sync_threads() 324 caller = current; in seccomp_sync_threads() [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() 428 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac() 432 run_time -= current->group_leader->start_time; in fill_ac() 456 spin_lock_irq(¤t->sighand->siglock); in fill_ac() 457 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac() 466 spin_unlock_irq(¤t->sighand->siglock); in fill_ac() 481 flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; in do_acct_process() 482 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process() [all …]
|
/Linux-v4.19/arch/um/kernel/ |
D | trap.c | 28 struct mm_struct *mm = current->mm; in handle_page_fault() 79 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in handle_page_fault() 95 current->maj_flt++; in handle_page_fault() 97 current->min_flt++; in handle_page_fault() 144 struct task_struct *tsk = current; in show_segv_info() 165 current->thread.arch.faultinfo = fi; in bad_segv() 167 current); in bad_segv() 172 force_sigsegv(SIGSEGV, current); in fatal_sigsegv() 173 do_signal(¤t->thread.regs); in fatal_sigsegv() 220 current->thread.segv_regs = container_of(regs, struct pt_regs, regs); in segv() [all …]
|
D | process.c | 92 arch_switch_to(current); in __switch_to() 94 return current->thread.prev_sched; in __switch_to() 99 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end() 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() 134 userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/include/linux/ |
D | tracehook.h | 62 int ptrace = current->ptrace; in ptrace_report_syscall() 74 if (current->exit_code) { in ptrace_report_syscall() 75 send_sig(current->exit_code, current, 1); in ptrace_report_syscall() 76 current->exit_code = 0; in ptrace_report_syscall() 79 return fatal_signal_pending(current); in ptrace_report_syscall() 129 user_single_step_siginfo(current, regs, &info); in tracehook_report_syscall_exit() 130 force_sig_info(SIGTRAP, &info, current); in tracehook_report_syscall_exit() 192 if (unlikely(current->task_works)) in tracehook_notify_resume()
|
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/ |
D | bq25890.txt | 8 - ti,charge-current: integer, maximum charging current (in uA); 9 - ti,termination-current: integer, charge will be terminated when current in 11 - ti,precharge-current: integer, maximum charge current during precharge 17 - ti,boost-max-current: integer, maximum allowed current draw in boost mode 24 input current will be the lower between the resistor setting and the IINLIM 27 current is lowered, to avoid overheating (in degrees Celsius). If omitted, 37 ti,charge-current = <1000000>; 38 ti,termination-current = <50000>; 39 ti,precharge-current = <128000>; 42 ti,boost-max-current = <1000000>;
|
/Linux-v4.19/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() 248 fr_idx = atomic_read(¤t->thread.bd_emu_frame); in mips_dsemul() 275 free_emuframe(fr_idx, current->mm); in mips_dsemul() [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | traps.c | 147 task = current; in show_backtrace() 208 if (task && task != current) { in show_stack() 363 current->comm, current->pid, current_thread_info(), current, in show_registers() 376 show_stacktrace(current, regs); in show_registers() 391 if (notify_die(DIE_OOPS, str, regs, 0, current->thread.trap_nr, in die() 412 if (regs && kexec_should_crash(current)) in die() 477 if (notify_die(DIE_OOPS, "bus error", regs, 0, current->thread.trap_nr, in do_be() 482 force_sig(SIGBUS, current); in do_be() 543 if (ll_task == NULL || ll_task == current) { in simulate_ll() 548 ll_task = current; in simulate_ll() [all …]
|
/Linux-v4.19/arch/xtensa/mm/ |
D | fault.c | 39 struct mm_struct *mm = current->mm; in do_page_fault() 70 current->comm, current->pid, in do_page_fault() 113 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) in do_page_fault() 127 current->maj_flt++; in do_page_fault() 129 current->min_flt++; in do_page_fault() 158 current->thread.bad_vaddr = address; in do_page_fault() 159 current->thread.error_code = is_write; in do_page_fault() 160 force_sig_fault(SIGSEGV, code, (void *) address, current); in do_page_fault() 184 current->thread.bad_vaddr = address; in do_page_fault() 185 force_sig_fault(SIGBUS, BUS_ADRERR, (void *) address, current); in do_page_fault() [all …]
|
/Linux-v4.19/tools/testing/selftests/rtc/ |
D | setdate.c | 33 struct rtc_time new, current; in main() local 74 retval = ioctl(fd, RTC_RD_TIME, ¤t); in main() 81 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main() 82 current.tm_hour, current.tm_min, current.tm_sec); in main()
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/ |
D | palmas-gpadc.txt | 5 1 battery temp NTC (optional current source) 7 3 temp (with ext. diode, optional current source) 15 11 DC-DC current probe (how does this work?) 26 ti,channel0-current-microamp: Channel 0 current in uA. 28 ti,channel3-current-microamp: Channel 3 current in uA. 43 ti,channel0-current-microamp = <5>; 44 ti,channel3-current-microamp = <10>;
|