Home
last modified time | relevance | path

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

123

/include/linux/fsl/bestcomm/
Dbestcomm.h73 extern void bcom_enable(struct bcom_task *tsk);
82 extern void bcom_disable(struct bcom_task *tsk);
90 bcom_get_task_irq(struct bcom_task *tsk) { in bcom_get_task_irq() argument
91 return tsk->irq; in bcom_get_task_irq()
106 _bcom_next_index(struct bcom_task *tsk) in _bcom_next_index() argument
108 return ((tsk->index + 1) == tsk->num_bd) ? 0 : tsk->index + 1; in _bcom_next_index()
117 _bcom_next_outdex(struct bcom_task *tsk) in _bcom_next_outdex() argument
119 return ((tsk->outdex + 1) == tsk->num_bd) ? 0 : tsk->outdex + 1; in _bcom_next_outdex()
127 bcom_queue_empty(struct bcom_task *tsk) in bcom_queue_empty() argument
129 return tsk->index == tsk->outdex; in bcom_queue_empty()
[all …]
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);
Dgen_bd.h24 bcom_gen_bd_rx_reset(struct bcom_task *tsk);
27 bcom_gen_bd_rx_release(struct bcom_task *tsk);
35 bcom_gen_bd_tx_reset(struct bcom_task *tsk);
38 bcom_gen_bd_tx_release(struct bcom_task *tsk);
Dfec.h44 bcom_fec_rx_reset(struct bcom_task *tsk);
47 bcom_fec_rx_release(struct bcom_task *tsk);
54 bcom_fec_tx_reset(struct bcom_task *tsk);
57 bcom_fec_tx_release(struct bcom_task *tsk);
/include/linux/
Dvtime.h60 extern void vtime_account_system(struct task_struct *tsk);
61 extern void vtime_account_idle(struct task_struct *tsk);
66 static inline void vtime_account_system(struct task_struct *tsk) { } in vtime_account_system() argument
70 extern void arch_vtime_task_switch(struct task_struct *tsk);
71 extern void vtime_user_enter(struct task_struct *tsk);
72 extern void vtime_user_exit(struct task_struct *tsk);
73 extern void vtime_guest_enter(struct task_struct *tsk);
74 extern void vtime_guest_exit(struct task_struct *tsk);
75 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
77 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() argument
[all …]
Dscs.h36 #define task_scs(tsk) (task_thread_info(tsk)->shadow_call_stack) argument
38 static inline void task_set_scs(struct task_struct *tsk, void *s) in task_set_scs() argument
40 task_scs(tsk) = s; in task_set_scs()
44 extern void scs_task_reset(struct task_struct *tsk);
45 extern int scs_prepare(struct task_struct *tsk, int node);
46 extern bool scs_corrupted(struct task_struct *tsk);
47 extern void scs_release(struct task_struct *tsk);
51 #define task_scs(tsk) NULL argument
53 static inline void task_set_scs(struct task_struct *tsk, void *s) {} in task_set_scs() argument
55 static inline void scs_task_reset(struct task_struct *tsk) {} in scs_task_reset() argument
[all …]
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 …]
Ddelayacct.h97 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() argument
100 tsk->delays = NULL; in delayacct_tsk_init()
102 __delayacct_tsk_init(tsk); in delayacct_tsk_init()
108 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() argument
110 if (tsk->delays) in delayacct_tsk_free()
111 kmem_cache_free(delayacct_cache, tsk->delays); in delayacct_tsk_free()
112 tsk->delays = NULL; in delayacct_tsk_free()
130 struct task_struct *tsk) in delayacct_add_tsk() argument
132 if (!delayacct_on || !tsk->delays) in delayacct_add_tsk()
134 return __delayacct_add_tsk(d, tsk); in delayacct_add_tsk()
[all …]
Dtsacct_kern.h16 struct taskstats *stats, struct task_struct *tsk);
20 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk() argument
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) in acct_update_integrals() argument
34 static inline void acct_account_cputime(struct task_struct *tsk) in acct_account_cputime() argument
36 static inline void acct_clear_integrals(struct task_struct *tsk) in acct_clear_integrals() argument
Dsem.h16 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
17 extern void exit_sem(struct task_struct *tsk);
25 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo() argument
30 static inline void exit_sem(struct task_struct *tsk) in exit_sem() argument
Dsignalfd.h19 static inline void signalfd_notify(struct task_struct *tsk, int sig) in signalfd_notify() argument
21 if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh))) in signalfd_notify()
22 wake_up(&tsk->sighand->signalfd_wqh); in signalfd_notify()
29 static inline void signalfd_notify(struct task_struct *tsk, int sig) { } in signalfd_notify() argument
Dsched.h1341 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument
1343 return tsk->pid; in task_pid_nr()
1346 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
1348 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
1351 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument
1353 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
1357 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument
1359 return tsk->tgid; in task_tgid_nr()
1377 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
1379 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
[all …]
Dvmacache.h8 static inline void vmacache_flush(struct task_struct *tsk) in vmacache_flush() argument
10 memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); in vmacache_flush()
Dseccomp.h84 extern void put_seccomp_filter(struct task_struct *tsk);
85 extern void get_seccomp_filter(struct task_struct *tsk);
87 static inline void put_seccomp_filter(struct task_struct *tsk) in put_seccomp_filter() argument
91 static inline void get_seccomp_filter(struct task_struct *tsk) in get_seccomp_filter() argument
Dstacktrace.h73 extern void save_stack_trace_tsk(struct task_struct *tsk,
75 extern int save_stack_trace_tsk_reliable(struct task_struct *tsk,
82 int stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store,
85 static inline int stack_trace_save_tsk_reliable(struct task_struct *tsk, in stack_trace_save_tsk_reliable() argument
Dnsproxy.h68 int copy_namespaces(unsigned long flags, struct task_struct *tsk);
69 void exit_task_namespaces(struct task_struct *tsk);
70 void switch_task_namespaces(struct task_struct *tsk, struct nsproxy *new);
Dtick.h203 extern void tick_nohz_dep_set_task(struct task_struct *tsk,
205 extern void tick_nohz_dep_clear_task(struct task_struct *tsk,
241 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
245 tick_nohz_dep_set_task(tsk, bit); in tick_dep_set_task()
247 static inline void tick_dep_clear_task(struct task_struct *tsk, in tick_dep_clear_task() argument
251 tick_nohz_dep_clear_task(tsk, bit); in tick_dep_clear_task()
282 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
284 static inline void tick_dep_clear_task(struct task_struct *tsk, in tick_dep_clear_task() argument
Dhw_breakpoint.h51 struct task_struct *tsk);
84 extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk);
99 struct task_struct *tsk) { return NULL; } in register_user_hw_breakpoint() argument
127 static inline void flush_ptrace_hw_breakpoint(struct task_struct *tsk) { } in flush_ptrace_hw_breakpoint() argument
/include/linux/sched/
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 inc_syscfs(struct task_struct *tsk) in inc_syscfs() argument
34 tsk->ioac.syscfs++; in inc_syscfs()
[all …]
Dcputime.h63 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
64 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples);
79 struct thread_group_cputimer *get_running_cputimer(struct task_struct *tsk) in get_running_cputimer() argument
81 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
87 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
104 if (unlikely(!tsk->sighand)) in get_running_cputimer()
111 struct thread_group_cputimer *get_running_cputimer(struct task_struct *tsk) in get_running_cputimer() argument
127 static inline void account_group_user_time(struct task_struct *tsk, in account_group_user_time() argument
130 struct thread_group_cputimer *cputimer = get_running_cputimer(tsk); in account_group_user_time()
148 static inline void account_group_system_time(struct task_struct *tsk, in account_group_system_time() argument
[all …]
Dtask_stack.h66 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() argument
68 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
69 task_stack_page(tsk) : NULL; in try_get_task_stack()
72 extern void put_task_stack(struct task_struct *tsk);
74 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() argument
76 return task_stack_page(tsk); in try_get_task_stack()
79 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack() argument
114 extern void set_task_stack_end_magic(struct task_struct *tsk);
Drt.h21 static inline bool task_is_realtime(struct task_struct *tsk) in task_is_realtime() argument
23 int policy = tsk->policy; in task_is_realtime()
42 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked() argument
44 return tsk->pi_blocked_on != NULL; in tsk_is_pi_blocked()
52 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked() argument
Dmm.h158 static inline bool in_vfork(struct task_struct *tsk) in in_vfork() argument
178 ret = tsk->vfork_done && in in_vfork()
179 rcu_dereference(tsk->real_parent)->mm == tsk->mm; in in_vfork()
392 struct task_struct *tsk) in membarrier_arch_switch_mm() argument
/include/trace/events/
Dsched.h353 TP_PROTO(struct task_struct *tsk, u64 delay),
355 TP_ARGS(__perf_task(tsk), __perf_count(delay)),
364 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN);
365 __entry->pid = tsk->pid;
379 TP_PROTO(struct task_struct *tsk, u64 delay),
380 TP_ARGS(tsk, delay));
387 TP_PROTO(struct task_struct *tsk, u64 delay),
388 TP_ARGS(tsk, delay));
395 TP_PROTO(struct task_struct *tsk, u64 delay),
396 TP_ARGS(tsk, delay));
[all …]
/include/asm-generic/
Dmmu_context.h16 struct task_struct *tsk) in enter_lazy_tlb() argument
20 static inline int init_new_context(struct task_struct *tsk, in init_new_context() argument
37 struct task_struct *tsk) in switch_mm() argument

123