Home
last modified time | relevance | path

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

12345678910>>...19

/openbmc/linux/include/linux/fsl/bestcomm/
H A Dbestcomm.h108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index()
119 return ((tsk->outdex + 1) == tsk->num_bd) ? 0 : tsk->outdex + 1; in _bcom_next_outdex()
129 return tsk->index == tsk->outdex; in bcom_queue_empty()
139 return tsk->outdex == _bcom_next_index(tsk); in bcom_queue_full()
152 return ((void *)tsk->bd) + (index * tsk->bd_size); in bcom_get_bd()
166 bd = bcom_get_bd(tsk, tsk->outdex); in bcom_buffer_done()
181 bd = bcom_get_bd(tsk, tsk->index); in bcom_prepare_next_buffer()
191 tsk->cookie[tsk->index] = cookie; in bcom_submit_next_buffer()
194 tsk->index = _bcom_next_index(tsk); in bcom_submit_next_buffer()
202 void *cookie = tsk->cookie[tsk->outdex]; in bcom_retrieve_buffer()
[all …]
/openbmc/linux/drivers/dma/bestcomm/
H A Dfec.c88 if (!tsk) in bcom_fec_rx_init()
102 return tsk; in bcom_fec_rx_init()
127 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_rx_reset()
136 tsk->index = 0; in bcom_fec_rx_reset()
139 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_rx_reset()
143 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_fec_rx_reset()
190 if (!tsk) in bcom_fec_tx_init()
203 return tsk; in bcom_fec_tx_init()
229 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_tx_reset()
240 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_tx_reset()
[all …]
H A Dgen_bd.c93 if (!tsk) in bcom_gen_bd_rx_init()
109 return tsk; in bcom_gen_bd_rx_init()
134 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_gen_bd_rx_reset()
142 tsk->index = 0; in bcom_gen_bd_rx_reset()
145 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_gen_bd_rx_reset()
149 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_gen_bd_rx_reset()
178 if (!tsk) in bcom_gen_bd_tx_init()
193 return tsk; in bcom_gen_bd_tx_init()
218 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_gen_bd_tx_reset()
229 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_gen_bd_tx_reset()
[all …]
H A Data.c56 struct bcom_task *tsk; in bcom_ata_init() local
64 if (!tsk) in bcom_ata_init()
69 bcom_ata_reset_bd(tsk); in bcom_ata_init()
75 bcom_task_free(tsk); in bcom_ata_init()
82 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
88 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_ata_init()
95 return tsk; in bcom_ata_init()
132 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_ata_reset_bd()
134 tsk->index = 0; in bcom_ata_reset_bd()
135 tsk->outdex = 0; in bcom_ata_reset_bd()
[all …]
/openbmc/linux/include/linux/
H A Dvtime.h22 extern void vtime_user_enter(struct task_struct *tsk);
23 extern void vtime_user_exit(struct task_struct *tsk);
39 extern void vtime_flush(struct task_struct *tsk);
140 vtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter()
141 irqtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter()
146 vtime_account_softirq(tsk); in account_softirq_exit()
147 irqtime_account_irq(tsk, 0); in account_softirq_exit()
152 vtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter()
153 irqtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter()
158 vtime_account_hardirq(tsk); in account_hardirq_exit()
[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 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 …]
/openbmc/linux/kernel/
H A Dtsacct.c46 if (tsk->flags & PF_EXITING) in bacct_add_tsk()
48 if (thread_group_leader(tsk) && (tsk->flags & PF_FORKNOEXEC)) in bacct_add_tsk()
61 tcred = __task_cred(tsk); in bacct_add_tsk()
129 if (!likely(tsk->mm)) in __acct_update_integrals()
138 tsk->acct_timexpd = time; in __acct_update_integrals()
144 tsk->acct_rss_mem1 += delta * get_mm_rss(tsk->mm) >> 10; in __acct_update_integrals()
145 tsk->acct_vm_mem1 += delta * READ_ONCE(tsk->mm->total_vm) >> 10; in __acct_update_integrals()
169 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime()
178 tsk->acct_timexpd = 0; in acct_clear_integrals()
179 tsk->acct_rss_mem1 = 0; in acct_clear_integrals()
[all …]
H A Dsmpboot.c34 if (!tsk) in idle_thread_get()
36 return tsk; in idle_thread_get()
54 if (!tsk) { in idle_init()
55 tsk = fork_idle(cpu); in idle_init()
56 if (IS_ERR(tsk)) in idle_init()
175 if (tsk) in __smpboot_create_thread()
186 if (IS_ERR(tsk)) { in __smpboot_create_thread()
195 kthread_park(tsk); in __smpboot_create_thread()
252 kthread_park(tsk); in smpboot_park_thread()
274 if (tsk) { in smpboot_destroy_threads()
[all …]
H A Dexit.c748 do_notify_parent(tsk, tsk->exit_signal); in exit_notify()
831 if (tsk->mm) in do_exit()
848 if (tsk->mm) in do_exit()
849 setmax_mm_hiwater_rss(&tsk->signal->maxrss, tsk->mm); in do_exit()
854 audit_free(tsk); in do_exit()
865 exit_sem(tsk); in do_exit()
866 exit_shm(tsk); in do_exit()
867 exit_files(tsk); in do_exit()
868 exit_fs(tsk); in do_exit()
873 exit_thread(tsk); in do_exit()
[all …]
H A Ddelayacct.c91 if (tsk->delays) in __delayacct_tsk_init()
92 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init()
136 task_cputime(tsk, &utime, &stime); 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()
164 if (!tsk->delays) in delayacct_add_tsk()
184 d->blkio_count += tsk->delays->blkio_count; in delayacct_add_tsk()
185 d->swapin_count += tsk->delays->swapin_count; in delayacct_add_tsk()
189 d->wpcopy_count += tsk->delays->wpcopy_count; in delayacct_add_tsk()
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Ddsp.h39 #define __save_dsp(tsk) \ argument
50 #define save_dsp(tsk) \ argument
53 __save_dsp(tsk); \
56 #define __restore_dsp(tsk) \ argument
58 mthi1(tsk->thread.dsp.dspr[0]); \
59 mtlo1(tsk->thread.dsp.dspr[1]); \
67 #define restore_dsp(tsk) \ argument
70 __restore_dsp(tsk); \
73 #define __get_dsp_regs(tsk) \ argument
75 if (tsk == current) \
[all …]
H A Dfpu.h168 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()
230 _save_fp(tsk); in save_fp()
236 _restore_fp(tsk); in restore_fp()
241 if (tsk == current) { in get_fpu_regs()
248 return tsk->thread.fpu.fpr; in get_fpu_regs()
[all …]
/openbmc/linux/net/tipc/
H A Dsocket.c225 return tsk->snt_unacked > tsk->snd_win; in tsk_conn_cong()
270 tsk->maxnagle = tsk->max_pkt; in tsk_set_nagle()
531 tsk->rcv_win = tsk->snd_win; in tipc_sk_create()
596 tsk_own_node(tsk), tsk_peer_port(tsk), in __tipc_shutdown()
818 if (tsk->group_is_open && !tsk->cong_link_cnt) in tipc_poll()
1102 !tsk->cong_link_cnt && tsk->group && in tipc_send_group_bcast()
1285 if (!tsk->pkt_cnt || tsk->msg_acc / tsk->pkt_cnt < 2) { in tipc_sk_push_backlog()
1291 tsk->portid, tsk->msg_acc, tsk->pkt_cnt, in tipc_sk_push_backlog()
1315 tsk->snt_unacked += tsk->snd_backlog; in tipc_sk_push_backlog()
1995 tsk->rcv_unacked += tsk_inc(tsk, hlen + dlen); in tipc_recvmsg()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dfpu.c41 void save_fpu(struct task_struct *tsk) in save_fpu() argument
228 struct task_struct *tsk = current; in ieee_fpe_handler() local
241 struct task_struct *tsk = current; in ieee_fpe_handler() local
279 struct task_struct *tsk = current; in ieee_fpe_handler() local
323 struct task_struct *tsk = current; in ieee_fpe_handler() local
363 struct task_struct *tsk = current; in ieee_fpe_handler() local
396 struct task_struct *tsk = current; in float_rounding_mode() local
403 struct task_struct *tsk = current; in BUILD_TRAP_HANDLER() local
406 __unlazy_fpu(tsk, regs); in BUILD_TRAP_HANDLER()
409 tsk->thread.xstate->hardfpu.fpscr &= in BUILD_TRAP_HANDLER()
[all …]
/openbmc/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()
15 unlazy_fpu(tsk, task_pt_regs(tsk)); in init_fpu()
22 if (!tsk->thread.xstate) { in init_fpu()
25 if (!tsk->thread.xstate) in init_fpu()
39 set_stopped_child_used_math(tsk); in init_fpu()
46 struct task_struct *tsk = current; in __fpu_state_restore() local
48 restore_fpu(tsk); in __fpu_state_restore()
51 tsk->thread.fpu_counter++; in __fpu_state_restore()
64 if (!tsk_used_math(tsk)) { in fpu_state_restore()
[all …]
/openbmc/linux/arch/s390/mm/
H A Dpfault.c119 struct task_struct *tsk; in pfault_interrupt() local
136 if (tsk) in pfault_interrupt()
137 get_task_struct(tsk); in pfault_interrupt()
139 if (!tsk) in pfault_interrupt()
154 wake_up_process(tsk); in pfault_interrupt()
155 put_task_struct(tsk); in pfault_interrupt()
191 get_task_struct(tsk); in pfault_interrupt()
207 put_task_struct(tsk); in pfault_interrupt()
213 struct task_struct *tsk; in pfault_cpu_dead() local
220 wake_up_process(tsk); in pfault_cpu_dead()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dsignal_64.c91 if (tsk->thread.used_vr) 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()
134 BUG_ON(tsk != current); in __unsafe_setup_sigcontext()
140 if (tsk->thread.used_vr) { in __unsafe_setup_sigcontext()
227 BUG_ON(tsk != current); in setup_tm_sigcontexts()
350 BUG_ON(tsk != current); in __unsafe_restore_sigcontext()
405 tsk->thread.vrsave = 0; in __unsafe_restore_sigcontext()
451 BUG_ON(tsk != current); in restore_tm_sigcontexts()
[all …]
/openbmc/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
40 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr() argument
[all …]
/openbmc/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
/openbmc/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
22 __ptrauth_keys_install_kernel_nosync \tsk, \tmp1, \tmp2, \tmp3
26 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3
41 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3
52 .macro __ptrauth_keys_install_user tsk, tmp1, tmp2, tmp3
54 add \tmp1, \tsk, \tmp1
60 .macro __ptrauth_keys_init_cpu tsk, tmp1, tmp2, tmp3
77 .macro ptrauth_keys_init_cpu tsk, tmp1, tmp2, tmp3
81 __ptrauth_keys_init_cpu \tsk, \tmp1, \tmp2, \tmp3
[all …]
/openbmc/linux/kernel/time/
H A Dposix-cpu-timers.c79 return (tsk && same_thread_group(tsk, current)) ? pid : NULL; in pid_for_clock()
361 struct task_struct *tsk; in posix_cpu_clock_get() local
366 if (!tsk) { in posix_cpu_clock_get()
904 if (dl_task(tsk)) in check_thread_timers()
905 check_dl_overrun(tsk); in check_thread_timers()
1128 sig = tsk->signal; in fastpath_timer_check()
1155 if (dl_task(tsk) && tsk->dl.dl_overrun) in fastpath_timer_check()
1183 if (!tsk) in posix_cpu_timer_wait_running()
1187 get_task_struct(tsk); in posix_cpu_timer_wait_running()
1195 put_task_struct(tsk); in posix_cpu_timer_wait_running()
[all …]
/openbmc/linux/arch/arc/kernel/
H A Dstacktrace.c51 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()
125 if (seed_unwind_frame_info(tsk, regs, &frame_info)) in arc_unwind_core()
238 arc_unwind_core(tsk, regs, __print_sym, (void *)loglvl); in show_stacktrace()
245 show_stacktrace(tsk, NULL, loglvl); in show_stack()
[all …]
/openbmc/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
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
60 if (task_thread_info(tsk)->status & TS_USEDFPU) { in clear_fpu()
[all …]
/openbmc/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

12345678910>>...19