Searched refs:tsk (Results 1 - 25 of 442) sorted by relevance

1234567891011>>

/linux-master/include/linux/fsl/bestcomm/
H A Dbestcomm.h68 * @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 Data.h24 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 Dxacct.h12 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 Ddsp.h39 #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 Dvtime.h12 extern void vtime_account_kernel(struct task_struct *tsk);
13 extern void vtime_account_idle(struct task_struct *tsk);
17 extern void vtime_user_enter(struct task_struct *tsk);
18 extern void vtime_user_exit(struct task_struct *tsk);
19 extern void vtime_guest_enter(struct task_struct *tsk);
20 extern void vtime_guest_exit(struct task_struct *tsk);
21 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
23 static inline void vtime_user_enter(struct task_struct *tsk) { } argument
24 static inline void vtime_user_exit(struct task_struct *tsk) { } argument
25 static inline void vtime_guest_enter(struct task_struct *tsk) { } argument
26 vtime_guest_exit(struct task_struct *tsk) argument
27 vtime_init_idle(struct task_struct *tsk, int cpu) argument
36 vtime_account_irq(struct task_struct *tsk, unsigned int offset) argument
37 vtime_account_softirq(struct task_struct *tsk) argument
38 vtime_account_hardirq(struct task_struct *tsk) argument
39 vtime_flush(struct task_struct *tsk) argument
130 irqtime_account_irq(struct task_struct *tsk, unsigned int offset) argument
133 account_softirq_enter(struct task_struct *tsk) argument
139 account_softirq_exit(struct task_struct *tsk) argument
145 account_hardirq_enter(struct task_struct *tsk) argument
151 account_hardirq_exit(struct task_struct *tsk) argument
[all...]
H A Dtsacct_kern.h16 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 Dscs.h25 #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 Dsem.h12 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 Dfutex.h62 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 Dsignalfd.h19 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
H A Dio_uring.h11 void __io_uring_free(struct task_struct *tsk);
28 static inline void io_uring_free(struct task_struct *tsk) argument
30 if (tsk->io_uring)
31 __io_uring_free(tsk);
40 static inline void io_uring_free(struct task_struct *tsk) argument
/linux-master/arch/sh/kernel/cpu/
H A Dfpu.c11 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 Dgen_bd.c88 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 Dfec.c83 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 Data.c56 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 Dprocessor.h15 #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 Dvdso.h12 #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/arc/include/asm/
H A Dprocessor.h49 #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/sh/include/asm/
H A Dfpu.h27 #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...]
/linux-master/arch/s390/include/asm/
H A Dvdso.h14 #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 Dprocessor.h41 #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 Dmmu_context.c16 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 Dtsacct.c22 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 Dpfault.c119 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 Dmmu_context.h13 * 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

Completed in 254 milliseconds

1234567891011>>