Home
last modified time | relevance | path

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

12345678910>>...18

/linux-6.6.21/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-6.6.21/drivers/dma/bestcomm/
Dfec.c83 struct bcom_task *tsk; in bcom_fec_rx_init() local
86 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init()
88 if (!tsk) in bcom_fec_rx_init()
91 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init()
93 priv = tsk->priv; in bcom_fec_rx_init()
97 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init()
98 bcom_task_free(tsk); in bcom_fec_rx_init()
102 return tsk; in bcom_fec_rx_init()
107 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument
109 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.c56 struct bcom_task *tsk; in bcom_ata_init() local
63 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init()
64 if (!tsk) in bcom_ata_init()
67 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init()
69 bcom_ata_reset_bd(tsk); in bcom_ata_init()
71 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init()
72 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init()
74 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init()
75 bcom_task_free(tsk); in bcom_ata_init()
80 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init()
[all …]
Dbestcomm.c50 struct bcom_task *tsk; in bcom_task_alloc() local
72 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc()
73 if (!tsk) in bcom_task_alloc()
76 tsk->tasknum = tasknum; in bcom_task_alloc()
78 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
81 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
82 if (!tsk->irq) in bcom_task_alloc()
87 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc()
89 if (!tsk->cookie) in bcom_task_alloc()
92 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
[all …]
/linux-6.6.21/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()
77 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-6.6.21/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.c143 static void __exit_signal(struct task_struct *tsk) in __exit_signal() argument
145 struct signal_struct *sig = tsk->signal; in __exit_signal()
146 bool group_dead = thread_group_leader(tsk); in __exit_signal()
151 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
156 posix_cpu_timers_exit(tsk); in __exit_signal()
158 posix_cpu_timers_exit_group(tsk); in __exit_signal()
172 if (tsk == sig->curr_target) in __exit_signal()
173 sig->curr_target = next_thread(tsk); in __exit_signal()
176 add_device_randomness((const void*) &tsk->se.sum_exec_runtime, in __exit_signal()
185 task_cputime(tsk, &utime, &stime); in __exit_signal()
[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 …]
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.c164 void __weak arch_release_task_struct(struct task_struct *tsk) in arch_release_task_struct() argument
176 static inline void free_task_struct(struct task_struct *tsk) in free_task_struct() argument
178 kmem_cache_free(task_struct_cachep, tsk); in free_task_struct()
225 static void thread_stack_delayed_free(struct task_struct *tsk) in thread_stack_delayed_free() argument
227 struct vm_stack *vm_stack = tsk->stack; in thread_stack_delayed_free()
229 vm_stack->stack_vm_area = tsk->stack_vm_area; in thread_stack_delayed_free()
272 static int alloc_thread_stack_node(struct task_struct *tsk, int node) in alloc_thread_stack_node() argument
299 tsk->stack_vm_area = s; in alloc_thread_stack_node()
300 tsk->stack = stack; in alloc_thread_stack_node()
327 tsk->stack_vm_area = vm; in alloc_thread_stack_node()
[all …]
/linux-6.6.21/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-6.6.21/net/tipc/
Dsocket.c153 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
154 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
155 static int tipc_sk_leave(struct tipc_sock *tsk);
157 static int tipc_sk_insert(struct tipc_sock *tsk);
158 static void tipc_sk_remove(struct tipc_sock *tsk);
161 static void tipc_sk_push_backlog(struct tipc_sock *tsk, bool nagle_ack);
170 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument
172 return msg_prevnode(&tsk->phdr); in tsk_own_node()
175 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument
177 return msg_destnode(&tsk->phdr); in tsk_peer_node()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/arch/s390/mm/
Dpfault.c119 struct task_struct *tsk; in pfault_interrupt() local
135 tsk = find_task_by_pid_ns(pid, &init_pid_ns); in pfault_interrupt()
136 if (tsk) in pfault_interrupt()
137 get_task_struct(tsk); in pfault_interrupt()
139 if (!tsk) in pfault_interrupt()
144 if (tsk->thread.pfault_wait == 1) { in pfault_interrupt()
152 tsk->thread.pfault_wait = 0; in pfault_interrupt()
153 list_del(&tsk->thread.list); in pfault_interrupt()
154 wake_up_process(tsk); in pfault_interrupt()
155 put_task_struct(tsk); in pfault_interrupt()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/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()
273 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) in thread_group_sample_cputime() argument
275 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime()
276 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime()
295 static void thread_group_start_cputime(struct task_struct *tsk, u64 *samples) in thread_group_start_cputime() argument
297 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_start_cputime()
298 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_start_cputime()
300 lockdep_assert_task_sighand_held(tsk); in thread_group_start_cputime()
311 thread_group_cputime(tsk, &sum); in thread_group_start_cputime()
[all …]
/linux-6.6.21/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-6.6.21/arch/arc/kernel/
Dstacktrace.c43 seed_unwind_frame_info(struct task_struct *tsk, struct pt_regs *regs, in seed_unwind_frame_info() argument
51 frame_info->task = tsk; in seed_unwind_frame_info()
58 } else if (tsk == NULL || tsk == current) { in seed_unwind_frame_info()
87 if (task_is_running(tsk)) in seed_unwind_frame_info()
90 frame_info->task = tsk; in seed_unwind_frame_info()
92 frame_info->regs.r27 = TSK_K_FP(tsk); in seed_unwind_frame_info()
93 frame_info->regs.r28 = TSK_K_ESP(tsk); in seed_unwind_frame_info()
94 frame_info->regs.r31 = TSK_K_BLINK(tsk); in seed_unwind_frame_info()
117 arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs, in arc_unwind_core() argument
125 if (seed_unwind_frame_info(tsk, regs, &frame_info)) in arc_unwind_core()
[all …]
/linux-6.6.21/arch/arc/include/asm/
Dprocessor.h49 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) argument
50 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) argument
56 #define TSK_K_ESP(tsk) (task_thread_info(tsk)->ksp) argument
58 #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ argument
61 #define TSK_K_BLINK(tsk) TSK_K_REG(tsk, 4) argument
62 #define TSK_K_FP(tsk) TSK_K_REG(tsk, 0) argument

12345678910>>...18