/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-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 …]
|
D | bestcomm.c | 53 struct bcom_task *tsk; in bcom_task_alloc() local 75 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc() 76 if (!tsk) in bcom_task_alloc() 79 tsk->tasknum = tasknum; in bcom_task_alloc() 81 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc() 84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc() 85 if (!tsk->irq) in bcom_task_alloc() 90 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc() 92 if (!tsk->cookie) in bcom_task_alloc() 95 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc() [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 …]
|
D | delayacct.h | 97 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() argument 100 tsk->delays = NULL; in delayacct_tsk_init() 102 __delayacct_tsk_init(tsk); in delayacct_tsk_init() 108 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() argument 110 if (tsk->delays) in delayacct_tsk_free() 111 kmem_cache_free(delayacct_cache, tsk->delays); in delayacct_tsk_free() 112 tsk->delays = NULL; in delayacct_tsk_free() 130 struct task_struct *tsk) in delayacct_add_tsk() argument 132 if (!delayacct_on || !tsk->delays) in delayacct_add_tsk() 134 return __delayacct_add_tsk(d, tsk); in delayacct_add_tsk() [all …]
|
D | futex.h | 62 static inline void futex_init_task(struct task_struct *tsk) in futex_init_task() argument 64 tsk->robust_list = NULL; in futex_init_task() 66 tsk->compat_robust_list = NULL; in futex_init_task() 68 INIT_LIST_HEAD(&tsk->pi_state_list); in futex_init_task() 69 tsk->pi_state_cache = NULL; in futex_init_task() 70 tsk->futex_state = FUTEX_STATE_OK; in futex_init_task() 71 mutex_init(&tsk->futex_exit_mutex); in futex_init_task() 74 void futex_exit_recursive(struct task_struct *tsk); 75 void futex_exit_release(struct task_struct *tsk); 76 void futex_exec_release(struct task_struct *tsk); [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 (tsk->flags & PF_EXITING) in bacct_add_tsk() 42 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk() 43 if (thread_group_leader(tsk) && (tsk->flags & PF_FORKNOEXEC)) in bacct_add_tsk() 45 if (tsk->flags & PF_SUPERPRIV) in bacct_add_tsk() 47 if (tsk->flags & PF_DUMPCORE) in bacct_add_tsk() 49 if (tsk->flags & PF_SIGNALED) in bacct_add_tsk() 51 stats->ac_nice = task_nice(tsk); in bacct_add_tsk() 52 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 …]
|
D | exit.c | 97 static void __exit_signal(struct task_struct *tsk) in __exit_signal() argument 99 struct signal_struct *sig = tsk->signal; in __exit_signal() 100 bool group_dead = thread_group_leader(tsk); in __exit_signal() 105 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal() 110 posix_cpu_timers_exit(tsk); in __exit_signal() 112 posix_cpu_timers_exit_group(tsk); in __exit_signal() 126 if (tsk == sig->curr_target) in __exit_signal() 127 sig->curr_target = next_thread(tsk); in __exit_signal() 130 add_device_randomness((const void*) &tsk->se.sum_exec_runtime, in __exit_signal() 139 task_cputime(tsk, &utime, &stime); in __exit_signal() [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 …]
|
D | fpu.h | 164 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() argument 168 save_msa(tsk); in lose_fpu_inatomic() 169 tsk->thread.fpu.fcr31 = in lose_fpu_inatomic() 173 clear_tsk_thread_flag(tsk, TIF_USEDMSA); in lose_fpu_inatomic() 177 _save_fp(tsk); in lose_fpu_inatomic() 184 KSTK_STATUS(tsk) &= ~ST0_CU1; in lose_fpu_inatomic() 185 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in lose_fpu_inatomic() 227 static inline void save_fp(struct task_struct *tsk) in save_fp() argument 230 _save_fp(tsk); in save_fp() 233 static inline void restore_fp(struct task_struct *tsk) in restore_fp() argument [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-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-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-5.10/drivers/dma-buf/ |
D | dma-buf-process-info.c | 20 struct task_struct *tsk; member 26 struct task_struct *tsk = NULL; in init_dma_buf_task_info() local 33 tsk = current->group_leader; in init_dma_buf_task_info() 34 buf->exp_pid = task_pid_nr(tsk); in init_dma_buf_task_info() 35 if (tsk->flags & PF_KTHREAD) in init_dma_buf_task_info() 36 tsk = NULL; in init_dma_buf_task_info() 40 if (tsk) in init_dma_buf_task_info() 41 get_task_comm(buf->exp_task_comm, tsk); in init_dma_buf_task_info() 67 struct task_struct *tsk = NULL; in dma_buf_single_file_show() local 74 tsk = tsk_info->tsk; in dma_buf_single_file_show() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | stacktrace.c | 42 int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame) in unwind_frame() argument 50 if (!tsk) in unwind_frame() 51 tsk = current; in unwind_frame() 53 if (!on_accessible_stack(tsk, fp, &info)) in unwind_frame() 89 if (tsk->ret_stack && in unwind_frame() 98 ret_stack = ftrace_graph_get_ret_stack(tsk, frame->graph++); in unwind_frame() 120 void notrace walk_stackframe(struct task_struct *tsk, struct stackframe *frame, in walk_stackframe() argument 128 ret = unwind_frame(tsk, frame); in walk_stackframe() 140 void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk, in dump_backtrace() argument 146 pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk); in dump_backtrace() [all …]
|
/kernel/uniproton/src/core/kernel/task/ |
D | prt_amp_task_internal.h | 20 #define OS_TSK_EN_QUE(runQue, tsk, flags) OsEnqueueTaskAmp((runQue), (tsk)) argument 21 #define OS_TSK_EN_QUE_HEAD(runQue, tsk, flags) OsEnqueueTaskHeadAmp((runQue), (tsk)) argument 22 #define OS_TSK_DE_QUE(runQue, tsk, flags) OsDequeueTaskAmp((runQue), (tsk)) argument 27 …NLINE INLINE struct TagListObject *OsGetReadyList(struct TagOsRunQue *runQue, struct TagTskCb *tsk) in OsGetReadyList() argument 34 priority = tsk->priority; in OsGetReadyList() 53 OS_SEC_ALW_INLINE INLINE void OsEnqueueTaskAmp(struct TagOsRunQue *runQue, struct TagTskCb *tsk) in OsEnqueueTaskAmp() argument 57 readyList = OsGetReadyList(runQue, tsk); in OsEnqueueTaskAmp() 58 ListTailAdd(&tsk->pendList, readyList); in OsEnqueueTaskAmp() 62 OS_SEC_ALW_INLINE INLINE void OsEnqueueTaskHeadAmp(struct TagOsRunQue *runQue, struct TagTskCb *tsk) in OsEnqueueTaskHeadAmp() argument 66 readyList = OsGetReadyList(runQue, tsk); in OsEnqueueTaskHeadAmp() [all …]
|
/kernel/linux/linux-5.10/include/linux/sched/ |
D | xacct.h | 12 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument 14 tsk->ioac.rchar += amt; in add_rchar() 17 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument 19 tsk->ioac.wchar += amt; in add_wchar() 22 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr() argument 24 tsk->ioac.syscr++; in inc_syscr() 27 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw() argument 29 tsk->ioac.syscw++; in inc_syscw() 32 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument 36 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument [all …]
|
/kernel/linux/linux-5.10/arch/arc/kernel/ |
D | stacktrace.c | 42 seed_unwind_frame_info(struct task_struct *tsk, struct pt_regs *regs, in seed_unwind_frame_info() argument 50 frame_info->task = tsk; in seed_unwind_frame_info() 57 } else if (tsk == NULL || tsk == current) { in seed_unwind_frame_info() 86 if (tsk->state == TASK_RUNNING) in seed_unwind_frame_info() 89 frame_info->task = tsk; in seed_unwind_frame_info() 91 frame_info->regs.r27 = TSK_K_FP(tsk); in seed_unwind_frame_info() 92 frame_info->regs.r28 = TSK_K_ESP(tsk); in seed_unwind_frame_info() 93 frame_info->regs.r31 = TSK_K_BLINK(tsk); in seed_unwind_frame_info() 116 arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs, in arc_unwind_core() argument 124 if (seed_unwind_frame_info(tsk, regs, &frame_info)) in arc_unwind_core() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | memtrace_ashmem.c | 21 struct task_struct *tsk; member 35 struct task_struct *tsk = args->tsk; in ashmem_debug_process_info_cb() local 41 tsk->comm, tsk->pid, fd, in ashmem_debug_process_info_cb() 49 struct task_struct *tsk = NULL; in ashmem_debug_process_info_show() local 60 for_each_process(tsk) { in ashmem_debug_process_info_show() 61 if (tsk->flags & PF_KTHREAD) in ashmem_debug_process_info_show() 64 cb_args.tsk = tsk; in ashmem_debug_process_info_show() 66 task_lock(tsk); in ashmem_debug_process_info_show() 67 iterate_fd(tsk->files, 0, in ashmem_debug_process_info_show() 69 task_unlock(tsk); in ashmem_debug_process_info_show()
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | processor.h | 55 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) argument 56 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) argument 62 #define TSK_K_ESP(tsk) (tsk->thread.ksp) argument 64 #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ argument 67 #define TSK_K_BLINK(tsk) TSK_K_REG(tsk, 4) argument 68 #define TSK_K_FP(tsk) TSK_K_REG(tsk, 0) argument
|