Home
last modified time | relevance | path

Searched refs:tsk (Results 1 – 25 of 66) 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.h16 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) { } in vtime_user_enter() argument
29 static inline void vtime_user_exit(struct task_struct *tsk) { } in vtime_user_exit() 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
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.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
Dstackleak.h22 stackleak_task_low_bound(const struct task_struct *tsk) in stackleak_task_low_bound() argument
28 return (unsigned long)end_of_stack(tsk) + sizeof(unsigned long); in stackleak_task_low_bound()
36 stackleak_task_high_bound(const struct task_struct *tsk) in stackleak_task_high_bound() argument
42 return (unsigned long)task_pt_regs(tsk); in stackleak_task_high_bound()
Dsched.h1577 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument
1579 return tsk->pid; in task_pid_nr()
1582 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument
1584 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns()
1587 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument
1589 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr()
1593 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument
1595 return tsk->tgid; in task_tgid_nr()
1613 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument
1615 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns()
[all …]
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
Dtick.h211 extern void tick_nohz_dep_set_task(struct task_struct *tsk,
213 extern void tick_nohz_dep_clear_task(struct task_struct *tsk,
215 extern void tick_nohz_dep_set_signal(struct task_struct *tsk,
249 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
253 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()
261 static inline void tick_dep_set_signal(struct task_struct *tsk, in tick_dep_set_signal() argument
265 tick_nohz_dep_set_signal(tsk, bit); in tick_dep_set_signal()
290 static inline void tick_dep_set_task(struct task_struct *tsk, in tick_dep_set_task() argument
[all …]
Dio_uring.h50 void __io_uring_free(struct task_struct *tsk);
78 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() argument
80 if (tsk->io_uring) in io_uring_free()
81 __io_uring_free(tsk); in io_uring_free()
109 static inline void io_uring_free(struct task_struct *tsk) in io_uring_free() 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
Dsyscall_user_dispatch.h22 #define clear_syscall_work_syscall_user_dispatch(tsk) \ argument
23 clear_task_syscall_work(tsk, SYSCALL_USER_DISPATCH)
40 static inline void clear_syscall_work_syscall_user_dispatch(struct task_struct *tsk) in clear_syscall_work_syscall_user_dispatch() argument
Dseccomp.h95 extern void seccomp_filter_release(struct task_struct *tsk);
96 extern void get_seccomp_filter(struct task_struct *tsk);
98 static inline void seccomp_filter_release(struct task_struct *tsk) in seccomp_filter_release() argument
102 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.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
82 void exit_task_stack_account(struct task_struct *tsk);
116 extern void set_task_stack_end_magic(struct task_struct *tsk);
/include/trace/events/
Dsched.h438 TP_PROTO(struct task_struct *tsk, u64 delay),
440 TP_ARGS(__perf_task(tsk), __perf_count(delay)),
449 memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN);
450 __entry->pid = tsk->pid;
464 TP_PROTO(struct task_struct *tsk, u64 delay),
465 TP_ARGS(tsk, delay));
472 TP_PROTO(struct task_struct *tsk, u64 delay),
473 TP_ARGS(tsk, delay));
480 TP_PROTO(struct task_struct *tsk, u64 delay),
481 TP_ARGS(tsk, delay));
[all …]
/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/rv/
Dda_monitor.h186 static inline bool da_event_##name(struct da_monitor *da_mon, struct task_struct *tsk, \
195 trace_event_##name(tsk->pid, \
207 trace_error_##name(tsk->pid, \
319 static inline struct da_monitor *da_get_monitor_##name(struct task_struct *tsk) \
321 return &tsk->rv[task_mon_slot_##name].da_mon; \
457 __da_handle_event_##name(struct da_monitor *da_mon, struct task_struct *tsk, \
462 retval = da_event_##name(da_mon, tsk, event); \
471 da_handle_event_##name(struct task_struct *tsk, enum events_##name event) \
473 struct da_monitor *da_mon = da_get_monitor_##name(tsk); \
480 __da_handle_event_##name(da_mon, tsk, event); \
[all …]

123