Home
last modified time | relevance | path

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

12345678910>>...18

/linux-6.3-rc2/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-6.3-rc2/drivers/dma/bestcomm/
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 …]
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.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 …]
A Dbestcomm.c74 if (!tsk) in bcom_task_alloc()
79 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
82 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
83 if (!tsk->irq) in bcom_task_alloc()
93 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
94 if (!tsk->bd) in bcom_task_alloc()
102 return tsk; in bcom_task_alloc()
105 if (tsk) { in bcom_task_alloc()
106 if (tsk->irq) in bcom_task_alloc()
110 kfree(tsk); in bcom_task_alloc()
[all …]
/linux-6.3-rc2/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()
77 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-6.3-rc2/kernel/
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 …]
A Dexit.c744 do_notify_parent(tsk, tsk->exit_signal); in exit_notify()
828 if (tsk->mm) in do_exit()
845 if (tsk->mm) in do_exit()
846 setmax_mm_hiwater_rss(&tsk->signal->maxrss, tsk->mm); in do_exit()
851 audit_free(tsk); in do_exit()
862 exit_sem(tsk); in do_exit()
863 exit_shm(tsk); in do_exit()
864 exit_files(tsk); in do_exit()
865 exit_fs(tsk); in do_exit()
870 exit_thread(tsk); in do_exit()
[all …]
A Ddelayacct.c88 void __delayacct_tsk_init(struct task_struct *tsk) in __delayacct_tsk_init() argument
91 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()
182 d->blkio_count += tsk->delays->blkio_count; in delayacct_add_tsk()
183 d->swapin_count += tsk->delays->swapin_count; in delayacct_add_tsk()
[all …]
A Dfork.c855 free_task(tsk); in __put_task_struct()
977 if (!tsk) in dup_task_struct()
1017 tsk->cpus_ptr = &tsk->cpus_mask; in dup_task_struct()
1064 return tsk; in dup_task_struct()
1438 task_lock(tsk); in complete_vfork_done()
1576 tsk->min_flt = tsk->maj_flt = 0; in copy_mm()
1577 tsk->nvcsw = tsk->nivcsw = 0; in copy_mm()
1579 tsk->last_switch_count = tsk->nvcsw + tsk->nivcsw; in copy_mm()
1604 tsk->mm = mm; in copy_mm()
1625 if (!tsk->fs) in copy_fs()
[all …]
/linux-6.3-rc2/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 …]
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 …]
/linux-6.3-rc2/net/tipc/
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 …]
/linux-6.3-rc2/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-6.3-rc2/arch/powerpc/kernel/
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 …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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
77 .macro ptrauth_keys_init_cpu tsk, tmp1, tmp2, tmp3
81 __ptrauth_keys_init_cpu \tsk, \tmp1, \tmp2, \tmp3
[all …]
/linux-6.3-rc2/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-6.3-rc2/kernel/time/
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()
434 struct task_struct *tsk) in trigger_base_recalc_expires() argument
870 if (tsk->dl.dl_overrun) { in check_dl_overrun()
871 tsk->dl.dl_overrun = 0; in check_dl_overrun()
902 if (dl_task(tsk)) in check_thread_timers()
903 check_dl_overrun(tsk); in check_thread_timers()
1126 sig = tsk->signal; in fastpath_timer_check()
1153 if (dl_task(tsk) && tsk->dl.dl_overrun) in fastpath_timer_check()
[all …]
/linux-6.3-rc2/arch/loongarch/include/asm/
A Dprocessor.h39 #define TASK_SIZE_OF(tsk) \ argument
40 (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64)
142 #define thread_saved_ra(tsk) (tsk->thread.sched_ra) argument
143 #define thread_saved_fp(tsk) (tsk->thread.sched_cfa) argument
197 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \ argument
199 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) argument
200 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era) argument
201 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[3]) argument
202 #define KSTK_EUEN(tsk) (task_pt_regs(tsk)->csr_euen) argument
203 #define KSTK_ECFG(tsk) (task_pt_regs(tsk)->csr_ecfg) argument
/linux-6.3-rc2/arch/arc/include/asm/
A Dprocessor.h52 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) argument
53 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) argument
59 #define TSK_K_ESP(tsk) (tsk->thread.ksp) argument
61 #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ argument
64 #define TSK_K_BLINK(tsk) TSK_K_REG(tsk, 4) argument
65 #define TSK_K_FP(tsk) TSK_K_REG(tsk, 0) argument
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dprocessor.h314 #define task_pt_regs(tsk) ((tsk)->thread.regs) argument
318 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument
319 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument
322 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument
323 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument
328 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument
329 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument
331 extern int get_endian(struct task_struct *tsk, unsigned long adr);
332 extern int set_endian(struct task_struct *tsk, unsigned int val);
334 #define GET_UNALIGN_CTL(tsk, adr) get_unalign_ctl((tsk), (adr)) argument
[all …]

Completed in 70 milliseconds

12345678910>>...18