Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/linux-5.19.10/include/linux/fsl/bestcomm/
Dbestcomm.h73 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 …]
/linux-5.19.10/drivers/dma/bestcomm/
Dfec.c87 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 …]
Dgen_bd.c88 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 …]
Data.c60 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 …]
Dbestcomm.c55 struct bcom_task *tsk; in bcom_task_alloc() local
77 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc()
78 if (!tsk) in bcom_task_alloc()
81 tsk->tasknum = tasknum; in bcom_task_alloc()
83 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
86 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
87 if (!tsk->irq) in bcom_task_alloc()
92 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc()
94 if (!tsk->cookie) in bcom_task_alloc()
97 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
[all …]
/linux-5.19.10/include/linux/
Dvtime.h16 extern void vtime_account_kernel(struct task_struct *tsk);
17 extern void vtime_account_idle(struct task_struct *tsk);
21 extern void arch_vtime_task_switch(struct task_struct *tsk);
22 extern void vtime_user_enter(struct task_struct *tsk);
23 extern void vtime_user_exit(struct task_struct *tsk);
24 extern void vtime_guest_enter(struct task_struct *tsk);
25 extern void vtime_guest_exit(struct task_struct *tsk);
26 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
28 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() argument
29 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit() argument
[all …]
Dscs.h25 #define task_scs(tsk) (task_thread_info(tsk)->scs_base) argument
26 #define task_scs_sp(tsk) (task_thread_info(tsk)->scs_sp) argument
31 int scs_prepare(struct task_struct *tsk, int node);
32 void scs_release(struct task_struct *tsk);
34 static inline void scs_task_reset(struct task_struct *tsk) in scs_task_reset() argument
40 task_scs_sp(tsk) = task_scs(tsk); in scs_task_reset()
48 static inline bool task_scs_end_corrupted(struct task_struct *tsk) in task_scs_end_corrupted() argument
50 unsigned long *magic = __scs_magic(task_scs(tsk)); in task_scs_end_corrupted()
51 unsigned long sz = task_scs_sp(tsk) - task_scs(tsk); in task_scs_end_corrupted()
61 static inline void scs_task_reset(struct task_struct *tsk) {} in scs_task_reset() argument
[all …]
Dfutex.h62 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 …]
/linux-5.19.10/kernel/
Dtsacct.c22 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument
34 delta = now_ns - tsk->group_leader->start_time; in bacct_add_tsk()
38 delta = now_ns - tsk->start_time; in bacct_add_tsk()
46 if (tsk->flags & PF_EXITING) in bacct_add_tsk()
47 stats->ac_exitcode = tsk->exit_code; in bacct_add_tsk()
48 if (thread_group_leader(tsk) && (tsk->flags & PF_FORKNOEXEC)) in bacct_add_tsk()
50 if (tsk->flags & PF_SUPERPRIV) in bacct_add_tsk()
52 if (tsk->flags & PF_DUMPCORE) in bacct_add_tsk()
54 if (tsk->flags & PF_SIGNALED) in bacct_add_tsk()
56 stats->ac_nice = task_nice(tsk); in bacct_add_tsk()
[all …]
Dexit.c94 static void __exit_signal(struct task_struct *tsk) in __exit_signal() argument
96 struct signal_struct *sig = tsk->signal; in __exit_signal()
97 bool group_dead = thread_group_leader(tsk); in __exit_signal()
102 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
107 posix_cpu_timers_exit(tsk); in __exit_signal()
109 posix_cpu_timers_exit_group(tsk); in __exit_signal()
123 if (tsk == sig->curr_target) in __exit_signal()
124 sig->curr_target = next_thread(tsk); in __exit_signal()
127 add_device_randomness((const void*) &tsk->se.sum_exec_runtime, in __exit_signal()
136 task_cputime(tsk, &utime, &stime); in __exit_signal()
[all …]
Ddelayacct.c88 void __delayacct_tsk_init(struct task_struct *tsk) in __delayacct_tsk_init() argument
90 tsk->delays = kmem_cache_zalloc(delayacct_cache, GFP_KERNEL); in __delayacct_tsk_init()
91 if (tsk->delays) in __delayacct_tsk_init()
92 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init()
129 int delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk) in delayacct_add_tsk() argument
136 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
141 task_cputime_scaled(tsk, &utimescaled, &stimescaled); in delayacct_add_tsk()
151 t1 = tsk->sched_info.pcount; in delayacct_add_tsk()
152 t2 = tsk->sched_info.run_delay; in delayacct_add_tsk()
153 t3 = tsk->se.sum_exec_runtime; in delayacct_add_tsk()
[all …]
Dfork.c163 void __weak arch_release_task_struct(struct task_struct *tsk) in arch_release_task_struct() argument
175 static inline void free_task_struct(struct task_struct *tsk) in free_task_struct() argument
177 kmem_cache_free(task_struct_cachep, tsk); in free_task_struct()
224 static void thread_stack_delayed_free(struct task_struct *tsk) in thread_stack_delayed_free() argument
226 struct vm_stack *vm_stack = tsk->stack; in thread_stack_delayed_free()
228 vm_stack->stack_vm_area = tsk->stack_vm_area; in thread_stack_delayed_free()
275 static int alloc_thread_stack_node(struct task_struct *tsk, int node) in alloc_thread_stack_node() argument
302 tsk->stack_vm_area = s; in alloc_thread_stack_node()
303 tsk->stack = stack; in alloc_thread_stack_node()
330 tsk->stack_vm_area = vm; in alloc_thread_stack_node()
[all …]
Dsmpboot.c32 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() local
34 if (!tsk) in idle_thread_get()
36 return tsk; in idle_thread_get()
52 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local
54 if (!tsk) { in idle_init()
55 tsk = fork_idle(cpu); in idle_init()
56 if (IS_ERR(tsk)) in idle_init()
59 per_cpu(idle_threads, cpu) = tsk; in idle_init()
172 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
175 if (tsk) in __smpboot_create_thread()
[all …]
/linux-5.19.10/arch/mips/include/asm/
Ddsp.h39 #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 …]
Dfpu.h164 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 …]
/linux-5.19.10/net/tipc/
Dsocket.c152 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
153 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
154 static int tipc_sk_leave(struct tipc_sock *tsk);
156 static int tipc_sk_insert(struct tipc_sock *tsk);
157 static void tipc_sk_remove(struct tipc_sock *tsk);
160 static void tipc_sk_push_backlog(struct tipc_sock *tsk, bool nagle_ack);
169 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument
171 return msg_prevnode(&tsk->phdr); in tsk_own_node()
174 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument
176 return msg_destnode(&tsk->phdr); in tsk_peer_node()
[all …]
/linux-5.19.10/arch/sh/kernel/cpu/sh4/
Dfpu.c41 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 …]
/linux-5.19.10/arch/powerpc/kernel/
Dsignal_64.c87 static void prepare_setup_sigcontext(struct task_struct *tsk) in prepare_setup_sigcontext() argument
91 if (tsk->thread.used_vr) in prepare_setup_sigcontext()
92 flush_altivec_to_thread(tsk); in prepare_setup_sigcontext()
94 tsk->thread.vrsave = mfspr(SPRN_VRSAVE); in prepare_setup_sigcontext()
97 flush_fp_to_thread(tsk); in prepare_setup_sigcontext()
100 if (tsk->thread.used_vsr) in prepare_setup_sigcontext()
101 flush_vsx_to_thread(tsk); in prepare_setup_sigcontext()
109 #define unsafe_setup_sigcontext(sc, tsk, signr, set, handler, ctx_has_vsx_region, label)\ argument
111 if (__unsafe_setup_sigcontext(sc, tsk, signr, set, handler, ctx_has_vsx_region))\
115 struct task_struct *tsk, int signr, sigset_t *set, in __unsafe_setup_sigcontext() argument
[all …]
/linux-5.19.10/arch/sh/kernel/cpu/
Dfpu.c11 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 …]
/linux-5.19.10/include/linux/sched/
Dxacct.h12 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 …]
/linux-5.19.10/arch/arm64/include/asm/
Dasm_pointer_auth.h12 .macro __ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3
14 add \tmp1, \tsk, \tmp1
20 .macro ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3
22 __ptrauth_keys_install_kernel_nosync \tsk, \tmp1, \tmp2, \tmp3
26 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3
28 __ptrauth_keys_install_kernel_nosync \tsk, \tmp1, \tmp2, \tmp3
35 .macro __ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3
38 .macro ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3
41 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3
52 .macro __ptrauth_keys_install_user tsk, tmp1, tmp2, tmp3
[all …]
/linux-5.19.10/arch/arc/kernel/
Dstacktrace.c42 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 (task_is_running(tsk)) 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 …]
/linux-5.19.10/kernel/time/
Dposix-cpu-timers.c78 struct task_struct *tsk = pid_task(pid, PIDTYPE_PID); in pid_for_clock() local
79 return (tsk && same_thread_group(tsk, current)) ? pid : NULL; in pid_for_clock()
274 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) in thread_group_sample_cputime() argument
276 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime()
277 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime()
296 static void thread_group_start_cputime(struct task_struct *tsk, u64 *samples) in thread_group_start_cputime() argument
298 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_start_cputime()
299 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_start_cputime()
301 lockdep_assert_task_sighand_held(tsk); in thread_group_start_cputime()
312 thread_group_cputime(tsk, &sum); in thread_group_start_cputime()
[all …]
/linux-5.19.10/arch/arc/include/asm/
Dprocessor.h55 #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
/linux-5.19.10/arch/powerpc/include/asm/
Dprocessor.h315 #define task_pt_regs(tsk) ((tsk)->thread.regs) argument
319 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument
320 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument
323 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument
324 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument
326 extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr);
327 extern int set_fpexc_mode(struct task_struct *tsk, unsigned int val);
329 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument
330 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument
332 extern int get_endian(struct task_struct *tsk, unsigned long adr);
[all …]

12345678910>>...18