Home
last modified time | relevance | path

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

12345678910>>...16

/linux/include/linux/fsl/bestcomm/
H A 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/drivers/dma/bestcomm/
H A 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 …]
H A 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 …]
H A 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 …]
/linux/include/linux/
H A 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 …]
H A 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 …]
H A Dpid.h234 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument
236 return tsk->pid; in task_pid_nr()
239 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
241 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
244 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument
246 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
250 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument
252 return tsk->tgid; in task_tgid_nr()
270 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
272 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
[all …]
H A Dfutex.h65 static inline void futex_init_task(struct task_struct *tsk) in futex_init_task() argument
67 tsk->robust_list = NULL; in futex_init_task()
69 tsk->compat_robust_list = NULL; in futex_init_task()
71 INIT_LIST_HEAD(&tsk->pi_state_list); in futex_init_task()
72 tsk->pi_state_cache = NULL; in futex_init_task()
73 tsk->futex_state = FUTEX_STATE_OK; in futex_init_task()
74 mutex_init(&tsk->futex_exit_mutex); in futex_init_task()
77 void futex_exit_recursive(struct task_struct *tsk);
78 void futex_exit_release(struct task_struct *tsk);
79 void futex_exec_release(struct task_struct *tsk);
[all …]
/linux/kernel/
H A 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 …]
H A Dexit.c159 static void __exit_signal(struct release_task_post *post, struct task_struct *tsk) in __exit_signal() argument
161 struct signal_struct *sig = tsk->signal; in __exit_signal()
162 bool group_dead = thread_group_leader(tsk); in __exit_signal()
167 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
172 posix_cpu_timers_exit(tsk); in __exit_signal()
174 posix_cpu_timers_exit_group(tsk); in __exit_signal()
188 if (tsk == sig->curr_target) in __exit_signal()
189 sig->curr_target = next_thread(tsk); in __exit_signal()
198 task_cputime(tsk, &utime, &stime); in __exit_signal()
202 sig->gtime += task_gtime(tsk); in __exit_signal()
[all …]
H A Dsmpboot.c30 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() local
32 if (!tsk) in idle_thread_get()
34 return tsk; in idle_thread_get()
50 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local
52 if (!tsk) { in idle_init()
53 tsk = fork_idle(cpu); in idle_init()
54 if (IS_ERR(tsk)) in idle_init()
57 per_cpu(idle_threads, cpu) = tsk; in idle_init()
168 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
171 if (tsk) in __smpboot_create_thread()
[all …]
H A Dfork.c176 void __weak arch_release_task_struct(struct task_struct *tsk) in arch_release_task_struct() argument
187 static inline void free_task_struct(struct task_struct *tsk) in free_task_struct() argument
189 kmem_cache_free(task_struct_cachep, tsk); in free_task_struct()
211 static struct vm_struct *alloc_thread_stack_node_from_cache(struct task_struct *tsk, int node) in alloc_thread_stack_node_from_cache() argument
282 static void thread_stack_delayed_free(struct task_struct *tsk) in thread_stack_delayed_free() argument
284 struct vm_stack *vm_stack = tsk->stack; in thread_stack_delayed_free()
286 vm_stack->stack_vm_area = tsk->stack_vm_area; in thread_stack_delayed_free()
329 static int alloc_thread_stack_node(struct task_struct *tsk, int node) in alloc_thread_stack_node() argument
334 vm_area = alloc_thread_stack_node_from_cache(tsk, node); in alloc_thread_stack_node()
349 tsk->stack_vm_area = vm_area; in alloc_thread_stack_node()
[all …]
/linux/arch/mips/include/asm/
H A 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 …]
H A Dfpu.h179 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() argument
183 save_msa(tsk); in lose_fpu_inatomic()
184 tsk->thread.fpu.fcr31 = in lose_fpu_inatomic()
188 clear_tsk_thread_flag(tsk, TIF_USEDMSA); in lose_fpu_inatomic()
192 _save_fp(tsk); in lose_fpu_inatomic()
199 KSTK_STATUS(tsk) &= ~ST0_CU1; in lose_fpu_inatomic()
200 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in lose_fpu_inatomic()
242 static inline void save_fp(struct task_struct *tsk) in save_fp() argument
245 _save_fp(tsk); in save_fp()
248 static inline void restore_fp(struct task_struct *tsk) in restore_fp() argument
[all …]
/linux/arch/sh/kernel/cpu/sh4/
H A 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/arch/powerpc/kernel/
H A 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 …]
H A Dprocess.c83 static void check_if_tm_restore_required(struct task_struct *tsk) in check_if_tm_restore_required() argument
91 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
92 MSR_TM_ACTIVE(tsk->thread.regs->msr) && in check_if_tm_restore_required()
94 regs_set_return_msr(&tsk->thread.ckpt_regs, in check_if_tm_restore_required()
95 tsk->thread.regs->msr); in check_if_tm_restore_required()
101 static inline void check_if_tm_restore_required(struct task_struct *tsk) { } in check_if_tm_restore_required() argument
151 static void __giveup_fpu(struct task_struct *tsk) in __giveup_fpu() argument
155 save_fpu(tsk); in __giveup_fpu()
156 msr = tsk->thread.regs->msr; in __giveup_fpu()
160 regs_set_return_msr(tsk->thread.regs, msr); in __giveup_fpu()
[all …]
/linux/arch/sh/kernel/cpu/
H A 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/arch/powerpc/include/asm/
H A 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/include/linux/sched/
H A 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/arch/arc/kernel/
H A 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/arch/arm64/include/asm/
H A 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/arch/loongarch/include/asm/
H A Dprocessor.h39 #define TASK_SIZE_OF(tsk) \ argument
40 (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64)
145 #define thread_saved_ra(tsk) (tsk->thread.sched_ra) argument
146 #define thread_saved_fp(tsk) (tsk->thread.sched_cfa) argument
201 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \ argument
203 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) argument
204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era) argument
205 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[3]) argument
206 #define KSTK_EUEN(tsk) (task_pt_regs(tsk)->csr_euen) argument
207 #define KSTK_ECFG(tsk) (task_pt_regs(tsk)->csr_ecfg) argument
/linux/arch/arc/include/asm/
H A 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
/linux/arch/sh/include/asm/
H A Dfpu.h27 #define save_fpu(tsk) do { } while (0) argument
28 #define restore_fpu(tsk) do { } while (0) argument
40 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in __unlazy_fpu() argument
42 if (task_thread_info(tsk)->status & TS_USEDFPU) { in __unlazy_fpu()
43 task_thread_info(tsk)->status &= ~TS_USEDFPU; in __unlazy_fpu()
44 save_fpu(tsk); in __unlazy_fpu()
47 tsk->thread.fpu_counter = 0; in __unlazy_fpu()
50 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in unlazy_fpu() argument
53 __unlazy_fpu(tsk, regs); in unlazy_fpu()
57 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) in clear_fpu() argument
[all …]

12345678910>>...16