Home
last modified time | relevance | path

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

12345678910>>...19

/linux-6.12.1/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.12.1/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.12.1/include/linux/
Dvtime.h12 extern void vtime_account_kernel(struct task_struct *tsk);
13 extern void vtime_account_idle(struct task_struct *tsk);
17 extern void vtime_user_enter(struct task_struct *tsk);
18 extern void vtime_user_exit(struct task_struct *tsk);
19 extern void vtime_guest_enter(struct task_struct *tsk);
20 extern void vtime_guest_exit(struct task_struct *tsk);
21 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
23 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() argument
24 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit() argument
25 static inline void vtime_guest_enter(struct task_struct *tsk) { } in vtime_guest_enter() 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 …]
Dpid.h230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument
232 return tsk->pid; in task_pid_nr()
235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
240 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument
242 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
246 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument
248 return tsk->tgid; in task_tgid_nr()
266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
268 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
[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.12.1/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.c145 static void __exit_signal(struct task_struct *tsk) in __exit_signal() argument
147 struct signal_struct *sig = tsk->signal; in __exit_signal()
148 bool group_dead = thread_group_leader(tsk); in __exit_signal()
153 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
158 posix_cpu_timers_exit(tsk); in __exit_signal()
160 posix_cpu_timers_exit_group(tsk); in __exit_signal()
174 if (tsk == sig->curr_target) in __exit_signal()
175 sig->curr_target = next_thread(tsk); in __exit_signal()
178 add_device_randomness((const void*) &tsk->se.sum_exec_runtime, in __exit_signal()
187 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.c87 void __delayacct_tsk_init(struct task_struct *tsk) in __delayacct_tsk_init() argument
89 tsk->delays = kmem_cache_zalloc(delayacct_cache, GFP_KERNEL); in __delayacct_tsk_init()
90 if (tsk->delays) in __delayacct_tsk_init()
91 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init()
128 int delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk) in delayacct_add_tsk() argument
135 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
140 task_cputime_scaled(tsk, &utimescaled, &stimescaled); in delayacct_add_tsk()
150 t1 = tsk->sched_info.pcount; in delayacct_add_tsk()
151 t2 = tsk->sched_info.run_delay; in delayacct_add_tsk()
152 t3 = tsk->se.sum_exec_runtime; in delayacct_add_tsk()
[all …]
Dfork.c173 void __weak arch_release_task_struct(struct task_struct *tsk) in arch_release_task_struct() argument
184 static inline void free_task_struct(struct task_struct *tsk) in free_task_struct() argument
186 kmem_cache_free(task_struct_cachep, tsk); in free_task_struct()
231 static void thread_stack_delayed_free(struct task_struct *tsk) in thread_stack_delayed_free() argument
233 struct vm_stack *vm_stack = tsk->stack; in thread_stack_delayed_free()
235 vm_stack->stack_vm_area = tsk->stack_vm_area; in thread_stack_delayed_free()
278 static int alloc_thread_stack_node(struct task_struct *tsk, int node) in alloc_thread_stack_node() argument
305 tsk->stack_vm_area = s; in alloc_thread_stack_node()
306 tsk->stack = stack; in alloc_thread_stack_node()
333 tsk->stack_vm_area = vm; in alloc_thread_stack_node()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/net/tipc/
Dsocket.c150 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua);
151 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua);
152 static int tipc_sk_leave(struct tipc_sock *tsk);
154 static int tipc_sk_insert(struct tipc_sock *tsk);
155 static void tipc_sk_remove(struct tipc_sock *tsk);
158 static void tipc_sk_push_backlog(struct tipc_sock *tsk, bool nagle_ack);
167 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument
169 return msg_prevnode(&tsk->phdr); in tsk_own_node()
172 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument
174 return msg_destnode(&tsk->phdr); in tsk_peer_node()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/arch/powerpc/include/asm/
Dprocessor.h311 #define task_pt_regs(tsk) ((tsk)->thread.regs) argument
315 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument
316 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument
319 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument
320 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument
322 extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr);
323 extern int set_fpexc_mode(struct task_struct *tsk, unsigned int val);
325 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument
326 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument
328 extern int get_endian(struct task_struct *tsk, unsigned long adr);
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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 …]

12345678910>>...19