/linux-master/include/linux/fsl/bestcomm/ |
H A D | bestcomm.h | 68 * @tsk: The BestComm task structure 73 extern void bcom_enable(struct bcom_task *tsk); 77 * @tsk: The BestComm task structure 82 extern void bcom_disable(struct bcom_task *tsk); 87 * @tsk: The BestComm task structure 90 bcom_get_task_irq(struct bcom_task *tsk) { argument 91 return tsk->irq; 101 * @tsk: pointer to task structure 106 _bcom_next_index(struct bcom_task *tsk) argument 108 return ((tsk 117 _bcom_next_outdex(struct bcom_task *tsk) argument 127 bcom_queue_empty(struct bcom_task *tsk) argument 137 bcom_queue_full(struct bcom_task *tsk) argument 148 bcom_get_bd(struct bcom_task *tsk, unsigned int index) argument 160 bcom_buffer_done(struct bcom_task *tsk) argument 177 bcom_prepare_next_buffer(struct bcom_task *tsk) argument 187 bcom_submit_next_buffer(struct bcom_task *tsk, void *cookie) argument 200 bcom_retrieve_buffer(struct bcom_task *tsk, u32 *p_status, struct bcom_bd **p_bd) argument [all...] |
H A D | ata.h | 24 extern void bcom_ata_rx_prepare(struct bcom_task *tsk); 25 extern void bcom_ata_tx_prepare(struct bcom_task *tsk); 26 extern void bcom_ata_reset_bd(struct bcom_task *tsk); 27 extern void bcom_ata_release(struct bcom_task *tsk);
|
/linux-master/include/linux/sched/ |
H A D | xacct.h | 12 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) argument 14 tsk->ioac.rchar += amt; 17 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) argument 19 tsk->ioac.wchar += amt; 22 static inline void inc_syscr(struct task_struct *tsk) argument 24 tsk->ioac.syscr++; 27 static inline void inc_syscw(struct task_struct *tsk) argument 29 tsk->ioac.syscw++; 32 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) argument 36 static inline void add_wchar(struct task_struct *tsk, ssize_ argument 40 inc_syscr(struct task_struct *tsk) argument 44 inc_syscw(struct task_struct *tsk) argument [all...] |
/linux-master/arch/mips/include/asm/ |
H A D | dsp.h | 39 #define __save_dsp(tsk) \ 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) \ 53 __save_dsp(tsk); \ [all...] |
/linux-master/include/linux/ |
H A D | vtime.h | 16 extern void vtime_account_kernel(struct task_struct *tsk); 17 extern void vtime_account_idle(struct task_struct *tsk); 21 extern void arch_vtime_task_switch(struct task_struct *tsk); 22 extern void vtime_user_enter(struct task_struct *tsk); 23 extern void vtime_user_exit(struct task_struct *tsk); 24 extern void vtime_guest_enter(struct task_struct *tsk); 25 extern void vtime_guest_exit(struct task_struct *tsk); 26 extern void vtime_init_idle(struct task_struct *tsk, int cpu); 28 static inline void vtime_user_enter(struct task_struct *tsk) { } argument 29 static inline void vtime_user_exit(struct task_struct *tsk) { } argument 30 vtime_guest_enter(struct task_struct *tsk) argument 31 vtime_guest_exit(struct task_struct *tsk) argument 32 vtime_init_idle(struct task_struct *tsk, int cpu) argument 41 vtime_account_irq(struct task_struct *tsk, unsigned int offset) argument 42 vtime_account_softirq(struct task_struct *tsk) argument 43 vtime_account_hardirq(struct task_struct *tsk) argument 44 vtime_flush(struct task_struct *tsk) argument 135 irqtime_account_irq(struct task_struct *tsk, unsigned int offset) argument 138 account_softirq_enter(struct task_struct *tsk) argument 144 account_softirq_exit(struct task_struct *tsk) argument 150 account_hardirq_enter(struct task_struct *tsk) argument 156 account_hardirq_exit(struct task_struct *tsk) argument [all...] |
H A D | tsacct_kern.h | 16 struct taskstats *stats, struct task_struct *tsk); 20 struct taskstats *stats, struct task_struct *tsk) 26 extern void acct_update_integrals(struct task_struct *tsk); 27 extern void acct_account_cputime(struct task_struct *tsk); 28 extern void acct_clear_integrals(struct task_struct *tsk); 32 static inline void acct_update_integrals(struct task_struct *tsk) argument 34 static inline void acct_account_cputime(struct task_struct *tsk) argument 36 static inline void acct_clear_integrals(struct task_struct *tsk) argument 18 bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk) argument
|
H A D | scs.h | 25 #define task_scs(tsk) (task_thread_info(tsk)->scs_base) 26 #define task_scs_sp(tsk) (task_thread_info(tsk)->scs_sp) 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) argument 40 task_scs_sp(tsk) = task_scs(tsk); 48 static inline bool task_scs_end_corrupted(struct task_struct *tsk) argument 77 scs_task_reset(struct task_struct *tsk) argument 78 scs_prepare(struct task_struct *tsk, int node) argument 79 scs_release(struct task_struct *tsk) argument 80 task_scs_end_corrupted(struct task_struct *tsk) argument [all...] |
H A D | sem.h | 12 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); 13 extern void exit_sem(struct task_struct *tsk); 17 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) argument 22 static inline void exit_sem(struct task_struct *tsk) argument
|
H A D | futex.h | 62 static inline void futex_init_task(struct task_struct *tsk) argument 64 tsk->robust_list = NULL; 66 tsk->compat_robust_list = NULL; 68 INIT_LIST_HEAD(&tsk->pi_state_list); 69 tsk->pi_state_cache = NULL; 70 tsk->futex_state = FUTEX_STATE_OK; 71 mutex_init(&tsk->futex_exit_mutex); 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); 81 futex_init_task(struct task_struct *tsk) argument 82 futex_exit_recursive(struct task_struct *tsk) argument 83 futex_exit_release(struct task_struct *tsk) argument 84 futex_exec_release(struct task_struct *tsk) argument [all...] |
H A D | signalfd.h | 19 static inline void signalfd_notify(struct task_struct *tsk, int sig) argument 21 if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh))) 22 wake_up(&tsk->sighand->signalfd_wqh); 29 static inline void signalfd_notify(struct task_struct *tsk, int sig) { } argument
|
/linux-master/arch/sh/kernel/cpu/ |
H A D | fpu.c | 11 int init_fpu(struct task_struct *tsk) argument 13 if (tsk_used_math(tsk)) { 14 if ((boot_cpu_data.flags & CPU_HAS_FPU) && tsk == current) 15 unlazy_fpu(tsk, task_pt_regs(tsk)); 22 if (!tsk->thread.xstate) { 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, 25 if (!tsk->thread.xstate) 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; 34 struct sh_fpu_soft_struct *fp = &tsk 46 struct task_struct *tsk = current; local 56 struct task_struct *tsk = current; local [all...] |
/linux-master/drivers/dma/bestcomm/ |
H A D | gen_bd.c | 88 struct bcom_task *tsk; local 91 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), 93 if (!tsk) 96 tsk->flags = BCOM_FLAGS_NONE; 98 priv = tsk->priv; 104 if (bcom_gen_bd_rx_reset(tsk)) { 105 bcom_task_free(tsk); 109 return tsk; 114 bcom_gen_bd_rx_reset(struct bcom_task *tsk) argument 116 struct bcom_gen_bd_priv *priv = tsk 161 bcom_gen_bd_rx_release(struct bcom_task *tsk) argument 173 struct bcom_task *tsk; local 198 bcom_gen_bd_tx_reset(struct bcom_task *tsk) argument 245 bcom_gen_bd_tx_release(struct bcom_task *tsk) argument [all...] |
H A D | fec.c | 83 struct bcom_task *tsk; local 86 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), 88 if (!tsk) 91 tsk->flags = BCOM_FLAGS_NONE; 93 priv = tsk->priv; 97 if (bcom_fec_rx_reset(tsk)) { 98 bcom_task_free(tsk); 102 return tsk; 107 bcom_fec_rx_reset(struct bcom_task *tsk) argument 109 struct bcom_fec_priv *priv = tsk 154 bcom_fec_rx_release(struct bcom_task *tsk) argument 185 struct bcom_task *tsk; local 208 bcom_fec_tx_reset(struct bcom_task *tsk) argument 255 bcom_fec_tx_release(struct bcom_task *tsk) argument [all...] |
H A D | ata.c | 56 struct bcom_task *tsk; local 63 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); 64 if (!tsk) 67 tsk->flags = BCOM_FLAGS_NONE; 69 bcom_ata_reset_bd(tsk); 71 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); 72 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); 74 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { 75 bcom_task_free(tsk); 80 offsetof(struct mpc52xx_sdma, tcr[tsk 99 bcom_ata_rx_prepare(struct bcom_task *tsk) argument 113 bcom_ata_tx_prepare(struct bcom_task *tsk) argument 127 bcom_ata_reset_bd(struct bcom_task *tsk) argument 142 bcom_ata_release(struct bcom_task *tsk) argument [all...] |
/linux-master/arch/x86/um/asm/ |
H A D | processor.h | 15 #define KSTK_EIP(tsk) KSTK_REG(tsk, HOST_IP) 16 #define KSTK_ESP(tsk) KSTK_REG(tsk, HOST_SP) 17 #define KSTK_EBP(tsk) KSTK_REG(tsk, HOST_BP)
|
/linux-master/arch/parisc/include/asm/ |
H A D | vdso.h | 12 #define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name)) 13 #define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name))
|
/linux-master/arch/sh/include/asm/ |
H A D | fpu.h | 27 #define save_fpu(tsk) do { } while (0) 28 #define restore_fpu(tsk) do { } while (0) 40 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) argument 42 if (task_thread_info(tsk)->status & TS_USEDFPU) { 43 task_thread_info(tsk)->status &= ~TS_USEDFPU; 44 save_fpu(tsk); 47 tsk->thread.fpu_counter = 0; 50 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) argument 53 __unlazy_fpu(tsk, regs); 57 static inline void clear_fpu(struct task_struct *tsk, struc argument [all...] |
H A D | switch_to_32.h | 7 #define is_dsp_enabled(tsk) \ 8 (!!(tsk->thread.dsp_status.status & SR_DSP)) 10 #define __restore_dsp(tsk) \ 13 (u32 *)&tsk->thread.dsp_status; \ 33 #define __save_dsp(tsk) \ 36 (u32 *)&tsk->thread.dsp_status + 14; \ 59 #define is_dsp_enabled(tsk) (0) 60 #define __save_dsp(tsk) do { } while (0) 61 #define __restore_dsp(tsk) do { } while (0)
|
/linux-master/arch/arc/include/asm/ |
H A D | processor.h | 49 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) 50 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) 56 #define TSK_K_ESP(tsk) (task_thread_info(tsk)->ksp) 58 #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ 61 #define TSK_K_BLINK(tsk) TSK_K_REG(tsk, [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | vdso.h | 14 #define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name)) 16 #define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name)) 18 #define VDSO32_SYMBOL(tsk, name) (-1UL)
|
/linux-master/arch/alpha/include/asm/ |
H A D | processor.h | 41 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) 43 #define KSTK_ESP(tsk) \ 44 ((tsk) == current ? rdusp() : task_thread_info(tsk)->pcb.usp)
|
/linux-master/arch/powerpc/mm/ |
H A D | mmu_context.c | 16 static inline void switch_mm_pgdir(struct task_struct *tsk, argument 20 tsk->thread.pgdir = mm->pgd; 22 tsk->thread.sr0 = mm->context.sr0; 25 tsk->thread.pid = mm->context.id; 29 static inline void switch_mm_pgdir(struct task_struct *tsk, argument 35 tsk->thread.pid = mm->context.id; 39 static inline void switch_mm_pgdir(struct task_struct *tsk, argument 44 struct task_struct *tsk) 84 switch_mm_pgdir(tsk, next); 98 membarrier_arch_switch_mm(prev, next, tsk); 43 switch_mm_irqs_off(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) argument [all...] |
/linux-master/kernel/ |
H A D | tsacct.c | 22 struct taskstats *stats, struct task_struct *tsk) 34 delta = now_ns - tsk->group_leader->start_time; 38 delta = now_ns - tsk->start_time; 46 if (tsk->flags & PF_EXITING) 47 stats->ac_exitcode = tsk->exit_code; 48 if (thread_group_leader(tsk) && (tsk->flags & PF_FORKNOEXEC)) 50 if (tsk->flags & PF_SUPERPRIV) 52 if (tsk->flags & PF_DUMPCORE) 54 if (tsk 20 bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk) argument 124 __acct_update_integrals(struct task_struct *tsk, u64 utime, u64 stime) argument 152 acct_update_integrals(struct task_struct *tsk) argument 167 acct_account_cputime(struct task_struct *tsk) argument 176 acct_clear_integrals(struct task_struct *tsk) argument [all...] |
/linux-master/arch/s390/mm/ |
H A D | pfault.c | 119 struct task_struct *tsk; local 135 tsk = find_task_by_pid_ns(pid, &init_pid_ns); 136 if (tsk) 137 get_task_struct(tsk); 139 if (!tsk) 144 if (tsk->thread.pfault_wait == 1) { 152 tsk->thread.pfault_wait = 0; 153 list_del(&tsk->thread.list); 154 wake_up_process(tsk); 155 put_task_struct(tsk); 213 struct task_struct *tsk; local [all...] |
/linux-master/include/asm-generic/ |
H A D | mmu_context.h | 13 * enter_lazy_tlb - Called when "tsk" is about to enter lazy TLB mode. 16 * @tsk: task which is entering lazy tlb 18 * tsk->mm will be NULL 22 struct task_struct *tsk) 29 * @tsk: task struct for the mm 34 static inline int init_new_context(struct task_struct *tsk, argument 66 * @tsk: the task 70 static inline void deactivate_mm(struct task_struct *tsk, argument 21 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) argument
|