| /linux/include/linux/fsl/bestcomm/ |
| A D | bestcomm.h | 108 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 D | fec.c | 88 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 D | gen_bd.c | 93 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 D | ata.c | 56 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 D | bestcomm.c | 73 if (!tsk) 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() 92 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc() 93 if (!tsk->bd) in bcom_task_alloc() 101 return tsk; in bcom_task_alloc() 104 if (tsk) { in bcom_task_alloc() 105 if (tsk->irq) in bcom_task_alloc() 109 kfree(tsk); in bcom_task_alloc() [all …]
|
| /linux/include/linux/ |
| A D | vtime.h | 17 extern void vtime_user_enter(struct task_struct *tsk); 18 extern void vtime_user_exit(struct task_struct *tsk); 34 extern void vtime_flush(struct task_struct *tsk); 135 vtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter() 136 irqtime_account_irq(tsk, SOFTIRQ_OFFSET); in account_softirq_enter() 141 vtime_account_softirq(tsk); in account_softirq_exit() 142 irqtime_account_irq(tsk, 0); in account_softirq_exit() 147 vtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter() 148 irqtime_account_irq(tsk, HARDIRQ_OFFSET); in account_hardirq_enter() 153 vtime_account_hardirq(tsk); in account_hardirq_exit() [all …]
|
| A D | scs.h | 25 #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 D | pid.h | 232 return tsk->pid; in task_pid_nr() 237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns() 242 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr() 248 return tsk->tgid; in task_tgid_nr() 268 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns() 279 return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns); in task_session_nr_ns() 289 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns() 302 if (pid_alive(tsk)) in task_ppid_nr_ns() 311 return task_ppid_nr_ns(tsk, &init_pid_ns); in task_ppid_nr() 317 return task_pgrp_nr_ns(tsk, &init_pid_ns); in task_pgrp_nr() [all …]
|
| A D | futex.h | 62 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/kernel/ |
| A D | tsacct.c | 46 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 D | smpboot.c | 34 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() 188 return PTR_ERR(tsk); in __smpboot_create_thread() 195 kthread_park(tsk); in __smpboot_create_thread() 252 kthread_park(tsk); in smpboot_park_thread() [all …]
|
| A D | exit.c | 446 task_lock(tsk); in __try_to_set_owner() 454 task_unlock(tsk); in __try_to_set_owner() 759 do_notify_parent(tsk, tsk->exit_signal); in exit_notify() 915 if (tsk->mm) in do_exit() 916 setmax_mm_hiwater_rss(&tsk->signal->maxrss, tsk->mm); in do_exit() 921 audit_free(tsk); in do_exit() 932 exit_sem(tsk); in do_exit() 933 exit_shm(tsk); in do_exit() 934 exit_files(tsk); in do_exit() 935 exit_fs(tsk); in do_exit() [all …]
|
| A D | delayacct.c | 90 if (tsk->delays) in __delayacct_tsk_init() 91 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init() 135 task_cputime(tsk, &utime, &stime); 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() 163 if (!tsk->delays) in delayacct_add_tsk() 183 d->blkio_count += tsk->delays->blkio_count; in delayacct_add_tsk() 184 d->swapin_count += tsk->delays->swapin_count; in delayacct_add_tsk() 188 d->wpcopy_count += tsk->delays->wpcopy_count; in delayacct_add_tsk() [all …]
|
| A D | fork.c | 983 free_task(tsk); in __put_task_struct() 1109 if (!tsk) in dup_task_struct() 1149 tsk->cpus_ptr = &tsk->cpus_mask; in dup_task_struct() 1198 return tsk; in dup_task_struct() 1563 task_lock(tsk); in complete_vfork_done() 1701 tsk->min_flt = tsk->maj_flt = 0; in copy_mm() 1702 tsk->nvcsw = tsk->nivcsw = 0; in copy_mm() 1704 tsk->last_switch_count = tsk->nvcsw + tsk->nivcsw; in copy_mm() 1729 tsk->mm = mm; in copy_mm() 1751 if (!tsk->fs) in copy_fs() [all …]
|
| /linux/arch/mips/include/asm/ |
| A D | dsp.h | 39 #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/net/tipc/ |
| A D | socket.c | 222 return tsk->snt_unacked > tsk->snd_win; in tsk_conn_cong() 267 tsk->maxnagle = tsk->max_pkt; in tsk_set_nagle() 528 tsk->rcv_win = tsk->snd_win; in tipc_sk_create() 593 tsk_own_node(tsk), tsk_peer_port(tsk), in __tipc_shutdown() 815 if (tsk->group_is_open && !tsk->cong_link_cnt) in tipc_poll() 1098 !tsk->cong_link_cnt && tsk->group && in tipc_send_group_bcast() 1280 if (!tsk->pkt_cnt || tsk->msg_acc / tsk->pkt_cnt < 2) { in tipc_sk_push_backlog() 1286 tsk->portid, tsk->msg_acc, tsk->pkt_cnt, in tipc_sk_push_backlog() 1310 tsk->snt_unacked += tsk->snd_backlog; in tipc_sk_push_backlog() 1990 tsk->rcv_unacked += tsk_inc(tsk, hlen + dlen); in tipc_recvmsg() [all …]
|
| /linux/arch/sh/kernel/cpu/sh4/ |
| A D | fpu.c | 41 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 D | signal_64.c | 91 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/arch/s390/mm/ |
| A D | pfault.c | 119 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 …]
|
| /linux/arch/sh/kernel/cpu/ |
| A D | fpu.c | 11 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/powerpc/include/asm/ |
| A D | processor.h | 311 #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 325 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument 326 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument 331 #define GET_UNALIGN_CTL(tsk, adr) get_unalign_ctl((tsk), (adr)) argument 332 #define SET_UNALIGN_CTL(tsk, val) set_unalign_ctl((tsk), (val)) argument 339 #define PPC_GET_DEXCR_ASPECT(tsk, asp) get_dexcr_prctl((tsk), (asp)) argument [all …]
|
| /linux/include/linux/sched/ |
| A D | xacct.h | 12 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/kernel/time/ |
| A D | posix-cpu-timers.c | 79 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() 867 if (dl_task(tsk)) in check_thread_timers() 868 check_dl_overrun(tsk); in check_thread_timers() 1091 sig = tsk->signal; in fastpath_timer_check() 1118 if (dl_task(tsk) && tsk->dl.dl_overrun) in fastpath_timer_check() 1146 if (!tsk) in posix_cpu_timer_wait_running() 1150 get_task_struct(tsk); in posix_cpu_timer_wait_running() 1158 put_task_struct(tsk); in posix_cpu_timer_wait_running() [all …]
|
| /linux/arch/arm64/include/asm/ |
| A D | asm_pointer_auth.h | 12 .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/arch/arc/kernel/ |
| A D | stacktrace.c | 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() 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 …]
|