Home
last modified time | relevance | path

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

12345678910>>...18

/linux/include/linux/fsl/bestcomm/
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 …]
/linux/drivers/dma/bestcomm/
A Dfec.c92 if (!tsk) in bcom_fec_rx_init()
106 return tsk; in bcom_fec_rx_init()
131 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_rx_reset()
140 tsk->index = 0; in bcom_fec_rx_reset()
143 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_rx_reset()
147 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_fec_rx_reset()
194 if (!tsk) in bcom_fec_tx_init()
207 return tsk; in bcom_fec_tx_init()
233 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_tx_reset()
244 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_tx_reset()
[all …]
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 …]
A Data.c60 struct bcom_task *tsk; in bcom_ata_init() local
68 if (!tsk) in bcom_ata_init()
73 bcom_ata_reset_bd(tsk); in bcom_ata_init()
79 bcom_task_free(tsk); in bcom_ata_init()
86 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
92 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_ata_init()
99 return tsk; in bcom_ata_init()
136 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_ata_reset_bd()
138 tsk->index = 0; in bcom_ata_reset_bd()
139 tsk->outdex = 0; in bcom_ata_reset_bd()
[all …]
A Dbestcomm.c76 if (!tsk) in bcom_task_alloc()
81 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
85 if (!tsk->irq) in bcom_task_alloc()
95 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
96 if (!tsk->bd) in bcom_task_alloc()
104 return tsk; in bcom_task_alloc()
107 if (tsk) { in bcom_task_alloc()
108 if (tsk->irq) in bcom_task_alloc()
112 kfree(tsk); in bcom_task_alloc()
[all …]
/linux/include/linux/
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 …]
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()
61 static inline void scs_task_reset(struct task_struct *tsk) {} in scs_task_reset() argument
[all …]
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 …]
/linux/net/tipc/
A Dsocket.c224 return tsk->snt_unacked > tsk->snd_win; in tsk_conn_cong()
269 tsk->maxnagle = tsk->max_pkt; in tsk_set_nagle()
529 tsk->rcv_win = tsk->snd_win; in tipc_sk_create()
594 tsk_own_node(tsk), tsk_peer_port(tsk), in __tipc_shutdown()
816 if (tsk->group_is_open && !tsk->cong_link_cnt) in tipc_poll()
1100 !tsk->cong_link_cnt && tsk->group && in tipc_send_group_bcast()
1283 if (!tsk->pkt_cnt || tsk->msg_acc / tsk->pkt_cnt < 2) { in tipc_sk_push_backlog()
1289 tsk->portid, tsk->msg_acc, tsk->pkt_cnt, in tipc_sk_push_backlog()
1313 tsk->snt_unacked += tsk->snd_backlog; in tipc_sk_push_backlog()
1993 tsk->rcv_unacked += tsk_inc(tsk, hlen + dlen); in tipc_recvmsg()
[all …]
/linux/kernel/
A Dtsacct.c48 if (tsk->flags & PF_DUMPCORE) in bacct_add_tsk()
50 if (tsk->flags & PF_SIGNALED) in bacct_add_tsk()
56 tcred = __task_cred(tsk); in bacct_add_tsk()
124 if (!likely(tsk->mm)) in __acct_update_integrals()
133 tsk->acct_timexpd = time; in __acct_update_integrals()
139 tsk->acct_rss_mem1 += delta * get_mm_rss(tsk->mm) >> 10; in __acct_update_integrals()
140 tsk->acct_vm_mem1 += delta * READ_ONCE(tsk->mm->total_vm) >> 10; in __acct_update_integrals()
164 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime()
173 tsk->acct_timexpd = 0; in acct_clear_integrals()
174 tsk->acct_rss_mem1 = 0; in acct_clear_integrals()
[all …]
A Dexit.c688 do_notify_parent(tsk, tsk->exit_signal); in exit_notify()
791 if (tsk->mm) in do_exit()
808 if (tsk->mm) in do_exit()
809 setmax_mm_hiwater_rss(&tsk->signal->maxrss, tsk->mm); in do_exit()
814 audit_free(tsk); in do_exit()
825 exit_sem(tsk); in do_exit()
826 exit_shm(tsk); in do_exit()
827 exit_files(tsk); in do_exit()
828 exit_fs(tsk); in do_exit()
833 exit_thread(tsk); in do_exit()
[all …]
A Ddelayacct.c68 void __delayacct_tsk_init(struct task_struct *tsk) in __delayacct_tsk_init() argument
71 if (tsk->delays) in __delayacct_tsk_init()
72 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init()
125 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
140 t1 = tsk->sched_info.pcount; in delayacct_add_tsk()
141 t2 = tsk->sched_info.run_delay; in delayacct_add_tsk()
142 t3 = tsk->se.sum_exec_runtime; in delayacct_add_tsk()
153 if (!tsk->delays) in delayacct_add_tsk()
167 d->blkio_count += tsk->delays->blkio_count; in delayacct_add_tsk()
168 d->swapin_count += tsk->delays->swapin_count; in delayacct_add_tsk()
[all …]
A Dfork.c883 if (!tsk) in dup_task_struct()
937 tsk->cpus_ptr = &tsk->cpus_mask; in dup_task_struct()
972 return tsk; in dup_task_struct()
1337 task_lock(tsk); in complete_vfork_done()
1476 tsk->min_flt = tsk->maj_flt = 0; in copy_mm()
1477 tsk->nvcsw = tsk->nivcsw = 0; in copy_mm()
1479 tsk->last_switch_count = tsk->nvcsw + tsk->nivcsw; in copy_mm()
1483 tsk->mm = NULL; in copy_mm()
1507 tsk->mm = mm; in copy_mm()
1527 if (!tsk->fs) in copy_fs()
[all …]
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 …]
/linux/arch/mips/include/asm/
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 …]
/linux/arch/sh/kernel/cpu/sh4/
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 …]
/linux/arch/powerpc/kernel/
A Dsignal_64.c86 if (tsk->thread.used_vr) in prepare_setup_sigcontext()
92 flush_fp_to_thread(tsk); in prepare_setup_sigcontext()
95 if (tsk->thread.used_vsr) in prepare_setup_sigcontext()
96 flush_vsx_to_thread(tsk); in prepare_setup_sigcontext()
129 BUG_ON(tsk != current); in __unsafe_setup_sigcontext()
135 if (tsk->thread.used_vr) { in __unsafe_setup_sigcontext()
222 BUG_ON(tsk != current); in setup_tm_sigcontexts()
345 BUG_ON(tsk != current); in __unsafe_restore_sigcontext()
397 tsk->thread.vrsave = 0; in __unsafe_restore_sigcontext()
443 BUG_ON(tsk != current); in restore_tm_sigcontexts()
[all …]
A Dprocess.c96 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
160 save_fpu(tsk); in __giveup_fpu()
173 __giveup_fpu(tsk); in giveup_fpu()
203 giveup_fpu(tsk); in flush_fp_to_thread()
243 save_altivec(tsk); in __giveup_altivec()
327 __giveup_vsx(tsk); in giveup_vsx()
585 save_fpu(tsk); in save_all()
605 save_all(tsk); in flush_all_to_thread()
901 return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM); in tm_enabled()
985 tsk->pid); in tm_reclaim_task()
[all …]
/linux/arch/sh/kernel/cpu/
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 …]
/linux/arch/arm64/kernel/
A Dstacktrace.c71 if (!tsk) in unwind_frame()
72 tsk = current; in unwind_frame()
119 if (tsk->ret_stack && in unwind_frame()
152 ret = unwind_frame(tsk, frame); in walk_stackframe()
178 if (!tsk) in dump_backtrace()
179 tsk = current; in dump_backtrace()
181 if (!try_get_task_stack(tsk)) in dump_backtrace()
184 if (tsk == current) { in dump_backtrace()
193 thread_saved_fp(tsk), in dump_backtrace()
194 thread_saved_pc(tsk)); in dump_backtrace()
[all …]
/linux/kernel/time/
A Dposix-cpu-timers.c72 return (tsk && same_thread_group(tsk, current)) ? pid : NULL; in pid_for_clock()
355 struct task_struct *tsk; in posix_cpu_clock_get() local
360 if (!tsk) { in posix_cpu_clock_get()
428 struct task_struct *tsk) in trigger_base_recalc_expires() argument
864 if (tsk->dl.dl_overrun) { in check_dl_overrun()
865 tsk->dl.dl_overrun = 0; in check_dl_overrun()
896 if (dl_task(tsk)) in check_thread_timers()
897 check_dl_overrun(tsk); in check_thread_timers()
1120 sig = tsk->signal; in fastpath_timer_check()
1147 if (dl_task(tsk) && tsk->dl.dl_overrun) in fastpath_timer_check()
[all …]
/linux/arch/powerpc/include/asm/
A Dprocessor.h301 #define task_pt_regs(tsk) ((tsk)->thread.regs) argument
305 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument
306 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument
309 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument
310 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument
315 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument
316 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument
318 extern int get_endian(struct task_struct *tsk, unsigned long adr);
319 extern int set_endian(struct task_struct *tsk, unsigned int val);
321 #define GET_UNALIGN_CTL(tsk, adr) get_unalign_ctl((tsk), (adr)) argument
[all …]
/linux/include/linux/sched/
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 …]
/linux/arch/arc/kernel/
A Dstacktrace.c50 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()
124 if (seed_unwind_frame_info(tsk, regs, &frame_info)) in arc_unwind_core()
237 arc_unwind_core(tsk, regs, __print_sym, (void *)loglvl); in show_stacktrace()
244 show_stacktrace(tsk, NULL, loglvl); in show_stack()
[all …]
/linux/arch/arm64/include/asm/
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
74 .macro ptrauth_keys_init_cpu tsk, tmp1, tmp2, tmp3
78 __ptrauth_keys_init_cpu \tsk, \tmp1, \tmp2, \tmp3
[all …]

Completed in 118 milliseconds

12345678910>>...18