Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 25 of 69) 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.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) { } in vtime_user_enter() argument
24 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit() argument
25 static inline void vtime_guest_enter(struct task_struct *tsk) { } in vtime_guest_enter() argument
[all …]
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 …]
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 …]
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
Dpid.h230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument
232 return tsk->pid; in task_pid_nr()
235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
240 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument
242 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
246 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument
248 return tsk->tgid; in task_tgid_nr()
266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
268 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
[all …]
Ddelayacct.h89 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init() argument
92 tsk->delays = NULL; in delayacct_tsk_init()
94 __delayacct_tsk_init(tsk); in delayacct_tsk_init()
100 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free() argument
102 if (tsk->delays) in delayacct_tsk_free()
103 kmem_cache_free(delayacct_cache, tsk->delays); in delayacct_tsk_free()
104 tsk->delays = NULL; in delayacct_tsk_free()
125 static inline __u64 delayacct_blkio_ticks(struct task_struct *tsk) in delayacct_blkio_ticks() argument
127 if (tsk->delays) in delayacct_blkio_ticks()
128 return __delayacct_blkio_ticks(tsk); in delayacct_blkio_ticks()
[all …]
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) in copy_semundo() argument
22 static inline void exit_sem(struct task_struct *tsk) in exit_sem() argument
Dio_uring.h11 void __io_uring_free(struct task_struct *tsk);
26 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() argument
28 if (tsk->io_uring) in io_uring_free()
29 __io_uring_free(tsk); in io_uring_free()
38 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() 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
Dtick.h210 extern void tick_nohz_dep_set_task(struct task_struct *tsk,
212 extern void tick_nohz_dep_clear_task(struct task_struct *tsk,
214 extern void tick_nohz_dep_set_signal(struct task_struct *tsk,
248 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
252 tick_nohz_dep_set_task(tsk, bit); in tick_dep_set_task()
255 static inline void tick_dep_clear_task(struct task_struct *tsk, in tick_dep_clear_task() argument
259 tick_nohz_dep_clear_task(tsk, bit); in tick_dep_clear_task()
262 static inline void tick_dep_init_task(struct task_struct *tsk) in tick_dep_init_task() argument
264 atomic_set(&tsk->tick_dep_mask, 0); in tick_dep_init_task()
267 static inline void tick_dep_set_signal(struct task_struct *tsk, in tick_dep_set_signal() argument
[all …]
Dstackleak.h23 stackleak_task_low_bound(const struct task_struct *tsk) in stackleak_task_low_bound() argument
29 return (unsigned long)end_of_stack(tsk) + sizeof(unsigned long); in stackleak_task_low_bound()
37 stackleak_task_high_bound(const struct task_struct *tsk) in stackleak_task_high_bound() argument
43 return (unsigned long)task_pt_regs(tsk); in stackleak_task_high_bound()
Diocontext.h121 int __copy_io(unsigned long clone_flags, struct task_struct *tsk);
122 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
126 return __copy_io(clone_flags, tsk); in copy_io()
132 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
Dsyscall_user_dispatch.h16 #define clear_syscall_work_syscall_user_dispatch(tsk) \ argument
17 clear_task_syscall_work(tsk, SYSCALL_USER_DISPATCH)
33 static inline void clear_syscall_work_syscall_user_dispatch(struct task_struct *tsk) in clear_syscall_work_syscall_user_dispatch() argument
Dstacktrace.h91 extern void save_stack_trace_tsk(struct task_struct *tsk,
93 extern int save_stack_trace_tsk_reliable(struct task_struct *tsk,
100 int stack_trace_save_tsk_reliable(struct task_struct *tsk, unsigned long *store,
103 static inline int stack_trace_save_tsk_reliable(struct task_struct *tsk, in stack_trace_save_tsk_reliable() argument
Dseccomp.h75 extern void seccomp_filter_release(struct task_struct *tsk);
76 extern void get_seccomp_filter(struct task_struct *tsk);
78 static inline void seccomp_filter_release(struct task_struct *tsk) in seccomp_filter_release() argument
82 static inline void get_seccomp_filter(struct task_struct *tsk) in get_seccomp_filter() 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.h55 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
56 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples);
71 struct thread_group_cputimer *get_running_cputimer(struct task_struct *tsk) in get_running_cputimer() argument
73 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in get_running_cputimer()
79 if (!READ_ONCE(tsk->signal->posix_cputimers.timers_active)) in get_running_cputimer()
96 if (unlikely(!tsk->sighand)) in get_running_cputimer()
103 struct thread_group_cputimer *get_running_cputimer(struct task_struct *tsk) in get_running_cputimer() argument
119 static inline void account_group_user_time(struct task_struct *tsk, in account_group_user_time() argument
122 struct thread_group_cputimer *cputimer = get_running_cputimer(tsk); in account_group_user_time()
140 static inline void account_group_system_time(struct task_struct *tsk, in account_group_system_time() argument
[all …]
Dtask_stack.h68 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() argument
70 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
71 task_stack_page(tsk) : NULL; in try_get_task_stack()
74 extern void put_task_stack(struct task_struct *tsk);
76 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack() argument
78 return task_stack_page(tsk); in try_get_task_stack()
81 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack() argument
84 void exit_task_stack_account(struct task_struct *tsk);
107 extern void set_task_stack_end_magic(struct task_struct *tsk);
/include/asm-generic/
Dmmu_context.h22 struct task_struct *tsk) in enter_lazy_tlb() argument
34 static inline int init_new_context(struct task_struct *tsk, in init_new_context() argument
70 static inline void deactivate_mm(struct task_struct *tsk, in deactivate_mm() argument
/include/trace/events/
Dsched.h473 TP_PROTO(struct task_struct *tsk, u64 delay),
475 TP_ARGS(__perf_task(tsk), __perf_count(delay)),
484 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN);
485 __entry->pid = tsk->pid;
499 TP_PROTO(struct task_struct *tsk, u64 delay),
500 TP_ARGS(tsk, delay));
507 TP_PROTO(struct task_struct *tsk, u64 delay),
508 TP_ARGS(tsk, delay));
515 TP_PROTO(struct task_struct *tsk, u64 delay),
516 TP_ARGS(tsk, delay));
[all …]
/include/rv/
Dda_monitor.h187 static inline bool da_event_##name(struct da_monitor *da_mon, struct task_struct *tsk, \
196 trace_event_##name(tsk->pid, \
208 trace_error_##name(tsk->pid, \
320 static inline struct da_monitor *da_get_monitor_##name(struct task_struct *tsk) \
322 return &tsk->rv[task_mon_slot_##name].da_mon; \
461 __da_handle_event_##name(struct da_monitor *da_mon, struct task_struct *tsk, \
466 retval = da_event_##name(da_mon, tsk, event); \
475 da_handle_event_##name(struct task_struct *tsk, enum events_##name event) \
477 struct da_monitor *da_mon = da_get_monitor_##name(tsk); \
484 __da_handle_event_##name(da_mon, tsk, event); \
[all …]

123