/kernel/linux/linux-5.10/include/linux/fsl/bestcomm/ |
D | bestcomm.h | 73 extern void bcom_enable(struct bcom_task *tsk); 82 extern void bcom_disable(struct bcom_task *tsk); 90 bcom_get_task_irq(struct bcom_task *tsk) { in bcom_get_task_irq() argument 91 return tsk->irq; in bcom_get_task_irq() 106 _bcom_next_index(struct bcom_task *tsk) in _bcom_next_index() argument 108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index() 117 _bcom_next_outdex(struct bcom_task *tsk) in _bcom_next_outdex() argument 119 return ((tsk->outdex + 1) == tsk->num_bd) ? 0 : tsk->outdex + 1; in _bcom_next_outdex() 127 bcom_queue_empty(struct bcom_task *tsk) in bcom_queue_empty() argument 129 return tsk->index == tsk->outdex; in bcom_queue_empty() [all …]
|
/kernel/linux/linux-4.19/include/linux/fsl/bestcomm/ |
D | bestcomm.h | 73 extern void bcom_enable(struct bcom_task *tsk); 82 extern void bcom_disable(struct bcom_task *tsk); 90 bcom_get_task_irq(struct bcom_task *tsk) { in bcom_get_task_irq() argument 91 return tsk->irq; in bcom_get_task_irq() 106 _bcom_next_index(struct bcom_task *tsk) in _bcom_next_index() argument 108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index() 117 _bcom_next_outdex(struct bcom_task *tsk) in _bcom_next_outdex() argument 119 return ((tsk->outdex + 1) == tsk->num_bd) ? 0 : tsk->outdex + 1; in _bcom_next_outdex() 127 bcom_queue_empty(struct bcom_task *tsk) in bcom_queue_empty() argument 129 return tsk->index == tsk->outdex; in bcom_queue_empty() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/bestcomm/ |
D | fec.c | 87 struct bcom_task *tsk; in bcom_fec_rx_init() local 90 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init() 92 if (!tsk) in bcom_fec_rx_init() 95 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init() 97 priv = tsk->priv; in bcom_fec_rx_init() 101 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init() 102 bcom_task_free(tsk); in bcom_fec_rx_init() 106 return tsk; in bcom_fec_rx_init() 111 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument 113 struct bcom_fec_priv *priv = tsk->priv; in bcom_fec_rx_reset() [all …]
|
D | gen_bd.c | 88 struct bcom_task *tsk; in bcom_gen_bd_rx_init() local 91 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), in bcom_gen_bd_rx_init() 93 if (!tsk) in bcom_gen_bd_rx_init() 96 tsk->flags = BCOM_FLAGS_NONE; in bcom_gen_bd_rx_init() 98 priv = tsk->priv; in bcom_gen_bd_rx_init() 104 if (bcom_gen_bd_rx_reset(tsk)) { in bcom_gen_bd_rx_init() 105 bcom_task_free(tsk); in bcom_gen_bd_rx_init() 109 return tsk; in bcom_gen_bd_rx_init() 114 bcom_gen_bd_rx_reset(struct bcom_task *tsk) in bcom_gen_bd_rx_reset() argument 116 struct bcom_gen_bd_priv *priv = tsk->priv; in bcom_gen_bd_rx_reset() [all …]
|
D | ata.c | 60 struct bcom_task *tsk; in bcom_ata_init() local 67 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init() 68 if (!tsk) in bcom_ata_init() 71 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init() 73 bcom_ata_reset_bd(tsk); in bcom_ata_init() 75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init() 76 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init() 78 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init() 79 bcom_task_free(tsk); in bcom_ata_init() 84 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init() [all …]
|
/kernel/linux/linux-4.19/drivers/dma/bestcomm/ |
D | fec.c | 87 struct bcom_task *tsk; in bcom_fec_rx_init() local 90 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init() 92 if (!tsk) in bcom_fec_rx_init() 95 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init() 97 priv = tsk->priv; in bcom_fec_rx_init() 101 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init() 102 bcom_task_free(tsk); in bcom_fec_rx_init() 106 return tsk; in bcom_fec_rx_init() 111 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument 113 struct bcom_fec_priv *priv = tsk->priv; in bcom_fec_rx_reset() [all …]
|
D | gen_bd.c | 92 struct bcom_task *tsk; in bcom_gen_bd_rx_init() local 95 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), in bcom_gen_bd_rx_init() 97 if (!tsk) in bcom_gen_bd_rx_init() 100 tsk->flags = BCOM_FLAGS_NONE; in bcom_gen_bd_rx_init() 102 priv = tsk->priv; in bcom_gen_bd_rx_init() 108 if (bcom_gen_bd_rx_reset(tsk)) { in bcom_gen_bd_rx_init() 109 bcom_task_free(tsk); in bcom_gen_bd_rx_init() 113 return tsk; in bcom_gen_bd_rx_init() 118 bcom_gen_bd_rx_reset(struct bcom_task *tsk) in bcom_gen_bd_rx_reset() argument 120 struct bcom_gen_bd_priv *priv = tsk->priv; in bcom_gen_bd_rx_reset() [all …]
|
D | ata.c | 60 struct bcom_task *tsk; in bcom_ata_init() local 67 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init() 68 if (!tsk) in bcom_ata_init() 71 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init() 73 bcom_ata_reset_bd(tsk); in bcom_ata_init() 75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init() 76 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init() 78 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init() 79 bcom_task_free(tsk); in bcom_ata_init() 84 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init() [all …]
|
/kernel/linux/linux-4.19/include/linux/ |
D | vtime.h | 60 extern void vtime_account_system(struct task_struct *tsk); 61 extern void vtime_account_idle(struct task_struct *tsk); 66 static inline void vtime_account_system(struct task_struct *tsk) { } in vtime_account_system() argument 70 extern void arch_vtime_task_switch(struct task_struct *tsk); 71 extern void vtime_user_enter(struct task_struct *tsk); 72 extern void vtime_user_exit(struct task_struct *tsk); 73 extern void vtime_guest_enter(struct task_struct *tsk); 74 extern void vtime_guest_exit(struct task_struct *tsk); 75 extern void vtime_init_idle(struct task_struct *tsk, int cpu); 77 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() argument [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | vtime.h | 64 extern void vtime_account_kernel(struct task_struct *tsk); 65 extern void vtime_account_idle(struct task_struct *tsk); 67 static inline void vtime_account_kernel(struct task_struct *tsk) { } in vtime_account_kernel() argument 71 extern void arch_vtime_task_switch(struct task_struct *tsk); 72 extern void vtime_user_enter(struct task_struct *tsk); 73 extern void vtime_user_exit(struct task_struct *tsk); 74 extern void vtime_guest_enter(struct task_struct *tsk); 75 extern void vtime_guest_exit(struct task_struct *tsk); 76 extern void vtime_init_idle(struct task_struct *tsk, int cpu); 78 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() argument [all …]
|
D | scs.h | 33 #define task_scs(tsk) (task_thread_info(tsk)->scs_base) argument 34 #define task_scs_sp(tsk) (task_thread_info(tsk)->scs_sp) argument 37 int scs_prepare(struct task_struct *tsk, int node); 38 void scs_release(struct task_struct *tsk); 40 static inline void scs_task_reset(struct task_struct *tsk) in scs_task_reset() argument 46 task_scs_sp(tsk) = task_scs(tsk); in scs_task_reset() 54 static inline bool task_scs_end_corrupted(struct task_struct *tsk) in task_scs_end_corrupted() argument 56 unsigned long *magic = __scs_magic(task_scs(tsk)); in task_scs_end_corrupted() 57 unsigned long sz = task_scs_sp(tsk) - task_scs(tsk); in task_scs_end_corrupted() 65 static inline void scs_task_reset(struct task_struct *tsk) {} in scs_task_reset() argument [all …]
|
/kernel/linux/linux-4.19/kernel/ |
D | tsacct.c | 33 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument 42 delta = ktime_get_ns() - tsk->start_time; in bacct_add_tsk() 49 if (thread_group_leader(tsk)) { in bacct_add_tsk() 50 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk() 51 if (tsk->flags & PF_FORKNOEXEC) in bacct_add_tsk() 54 if (tsk->flags & PF_SUPERPRIV) in bacct_add_tsk() 56 if (tsk->flags & PF_DUMPCORE) in bacct_add_tsk() 58 if (tsk->flags & PF_SIGNALED) in bacct_add_tsk() 60 stats->ac_nice = task_nice(tsk); in bacct_add_tsk() 61 stats->ac_sched = tsk->policy; in bacct_add_tsk() [all …]
|
D | exit.c | 91 static void __exit_signal(struct task_struct *tsk) in __exit_signal() argument 93 struct signal_struct *sig = tsk->signal; in __exit_signal() 94 bool group_dead = thread_group_leader(tsk); in __exit_signal() 99 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal() 104 posix_cpu_timers_exit(tsk); in __exit_signal() 106 posix_cpu_timers_exit_group(tsk); in __exit_signal() 113 if (unlikely(has_group_leader_pid(tsk))) in __exit_signal() 114 posix_cpu_timers_exit_group(tsk); in __exit_signal() 129 if (tsk == sig->curr_target) in __exit_signal() 130 sig->curr_target = next_thread(tsk); in __exit_signal() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | tsacct.c | 22 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument 32 delta = ktime_get_ns() - tsk->start_time; in bacct_add_tsk() 41 if (thread_group_leader(tsk)) { in bacct_add_tsk() 42 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk() 43 if (tsk->flags & PF_FORKNOEXEC) in bacct_add_tsk() 46 if (tsk->flags & PF_SUPERPRIV) in bacct_add_tsk() 48 if (tsk->flags & PF_DUMPCORE) in bacct_add_tsk() 50 if (tsk->flags & PF_SIGNALED) in bacct_add_tsk() 52 stats->ac_nice = task_nice(tsk); in bacct_add_tsk() 53 stats->ac_sched = tsk->policy; in bacct_add_tsk() [all …]
|
D | delayacct.c | 34 void __delayacct_tsk_init(struct task_struct *tsk) in __delayacct_tsk_init() argument 36 tsk->delays = kmem_cache_zalloc(delayacct_cache, GFP_KERNEL); in __delayacct_tsk_init() 37 if (tsk->delays) in __delayacct_tsk_init() 38 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init() 85 int __delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk) in __delayacct_add_tsk() argument 92 task_cputime(tsk, &utime, &stime); in __delayacct_add_tsk() 97 task_cputime_scaled(tsk, &utimescaled, &stimescaled); in __delayacct_add_tsk() 107 t1 = tsk->sched_info.pcount; in __delayacct_add_tsk() 108 t2 = tsk->sched_info.run_delay; in __delayacct_add_tsk() 109 t3 = tsk->se.sum_exec_runtime; in __delayacct_add_tsk() [all …]
|
/kernel/linux/linux-4.19/arch/mips/include/asm/ |
D | dsp.h | 43 #define __save_dsp(tsk) \ argument 45 tsk->thread.dsp.dspr[0] = mfhi1(); \ 46 tsk->thread.dsp.dspr[1] = mflo1(); \ 47 tsk->thread.dsp.dspr[2] = mfhi2(); \ 48 tsk->thread.dsp.dspr[3] = mflo2(); \ 49 tsk->thread.dsp.dspr[4] = mfhi3(); \ 50 tsk->thread.dsp.dspr[5] = mflo3(); \ 51 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \ 54 #define save_dsp(tsk) \ argument 57 __save_dsp(tsk); \ [all …]
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | dsp.h | 39 #define __save_dsp(tsk) \ argument 41 tsk->thread.dsp.dspr[0] = mfhi1(); \ 42 tsk->thread.dsp.dspr[1] = mflo1(); \ 43 tsk->thread.dsp.dspr[2] = mfhi2(); \ 44 tsk->thread.dsp.dspr[3] = mflo2(); \ 45 tsk->thread.dsp.dspr[4] = mfhi3(); \ 46 tsk->thread.dsp.dspr[5] = mflo3(); \ 47 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \ 50 #define save_dsp(tsk) \ argument 53 __save_dsp(tsk); \ [all …]
|
/kernel/linux/linux-5.10/net/tipc/ |
D | socket.c | 140 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope, 142 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, 144 static int tipc_sk_leave(struct tipc_sock *tsk); 146 static int tipc_sk_insert(struct tipc_sock *tsk); 147 static void tipc_sk_remove(struct tipc_sock *tsk); 150 static void tipc_sk_push_backlog(struct tipc_sock *tsk, bool nagle_ack); 159 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument 161 return msg_prevnode(&tsk->phdr); in tsk_own_node() 164 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument 166 return msg_destnode(&tsk->phdr); in tsk_peer_node() [all …]
|
/kernel/linux/linux-4.19/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 44 void save_fpu(struct task_struct *tsk) in save_fpu() argument 87 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu() 94 void restore_fpu(struct task_struct *tsk) in restore_fpu() argument 137 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu() 231 struct task_struct *tsk = current; in ieee_fpe_handler() local 233 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler() 235 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler() 244 struct task_struct *tsk = current; in ieee_fpe_handler() local 251 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 252 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 41 void save_fpu(struct task_struct *tsk) in save_fpu() argument 84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu() 91 void restore_fpu(struct task_struct *tsk) in restore_fpu() argument 134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu() 228 struct task_struct *tsk = current; in ieee_fpe_handler() local 230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler() 232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler() 241 struct task_struct *tsk = current; in ieee_fpe_handler() local 248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() [all …]
|
/kernel/linux/linux-4.19/net/tipc/ |
D | socket.c | 130 static int tipc_sk_publish(struct tipc_sock *tsk, uint scope, 132 static int tipc_sk_withdraw(struct tipc_sock *tsk, uint scope, 134 static int tipc_sk_leave(struct tipc_sock *tsk); 136 static int tipc_sk_insert(struct tipc_sock *tsk); 137 static void tipc_sk_remove(struct tipc_sock *tsk); 147 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument 149 return msg_prevnode(&tsk->phdr); in tsk_own_node() 152 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument 154 return msg_destnode(&tsk->phdr); in tsk_peer_node() 157 static u32 tsk_peer_port(struct tipc_sock *tsk) in tsk_peer_port() argument [all …]
|
/kernel/linux/linux-4.19/arch/sh/kernel/cpu/ |
D | fpu.c | 11 int init_fpu(struct task_struct *tsk) in init_fpu() argument 13 if (tsk_used_math(tsk)) { in init_fpu() 14 if ((boot_cpu_data.flags & CPU_HAS_FPU) && tsk == current) in init_fpu() 15 unlazy_fpu(tsk, task_pt_regs(tsk)); in init_fpu() 22 if (!tsk->thread.xstate) { in init_fpu() 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 25 if (!tsk->thread.xstate) in init_fpu() 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() 39 set_stopped_child_used_math(tsk); in init_fpu() [all …]
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/ |
D | fpu.c | 11 int init_fpu(struct task_struct *tsk) in init_fpu() argument 13 if (tsk_used_math(tsk)) { in init_fpu() 14 if ((boot_cpu_data.flags & CPU_HAS_FPU) && tsk == current) in init_fpu() 15 unlazy_fpu(tsk, task_pt_regs(tsk)); in init_fpu() 22 if (!tsk->thread.xstate) { in init_fpu() 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 25 if (!tsk->thread.xstate) in init_fpu() 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() 39 set_stopped_child_used_math(tsk); in init_fpu() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | signal_64.c | 92 struct task_struct *tsk, int signr, sigset_t *set, in setup_sigcontext() argument 107 struct pt_regs *regs = tsk->thread.regs; in setup_sigcontext() 113 BUG_ON(tsk != current); in setup_sigcontext() 119 if (tsk->thread.used_vr) { in setup_sigcontext() 120 flush_altivec_to_thread(tsk); in setup_sigcontext() 122 err |= __copy_to_user(v_regs, &tsk->thread.vr_state, in setup_sigcontext() 135 tsk->thread.vrsave = vrsave; in setup_sigcontext() 142 flush_fp_to_thread(tsk); in setup_sigcontext() 144 err |= copy_fpr_to_user(&sc->fp_regs, tsk); in setup_sigcontext() 157 if (tsk->thread.used_vsr && ctx_has_vsx_region) { in setup_sigcontext() [all …]
|
/kernel/linux/linux-4.19/arch/powerpc/kernel/ |
D | signal_64.c | 96 struct task_struct *tsk, int signr, sigset_t *set, in setup_sigcontext() argument 111 struct pt_regs *regs = tsk->thread.regs; in setup_sigcontext() 117 BUG_ON(tsk != current); in setup_sigcontext() 123 if (tsk->thread.used_vr) { in setup_sigcontext() 124 flush_altivec_to_thread(tsk); in setup_sigcontext() 126 err |= __copy_to_user(v_regs, &tsk->thread.vr_state, in setup_sigcontext() 139 tsk->thread.vrsave = vrsave; in setup_sigcontext() 146 flush_fp_to_thread(tsk); in setup_sigcontext() 148 err |= copy_fpr_to_user(&sc->fp_regs, tsk); in setup_sigcontext() 161 if (tsk->thread.used_vsr && ctx_has_vsx_region) { in setup_sigcontext() [all …]
|