| /linux/include/linux/fsl/bestcomm/ |
| H A D | bestcomm.h | 73 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 …]
|
| /linux/drivers/dma/bestcomm/ |
| H A D | fec.c | 83 struct bcom_task *tsk; in bcom_fec_rx_init() local 86 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init() 88 if (!tsk) in bcom_fec_rx_init() 91 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init() 93 priv = tsk->priv; in bcom_fec_rx_init() 97 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init() 98 bcom_task_free(tsk); in bcom_fec_rx_init() 102 return tsk; in bcom_fec_rx_init() 107 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument 109 struct bcom_fec_priv *priv = tsk->priv; in bcom_fec_rx_reset() [all …]
|
| H A D | gen_bd.c | 88 struct bcom_task *tsk; in bcom_gen_bd_rx_init() local 91 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), in bcom_gen_bd_rx_init() 93 if (!tsk) in bcom_gen_bd_rx_init() 96 tsk->flags = BCOM_FLAGS_NONE; in bcom_gen_bd_rx_init() 98 priv = tsk->priv; in bcom_gen_bd_rx_init() 104 if (bcom_gen_bd_rx_reset(tsk)) { in bcom_gen_bd_rx_init() 105 bcom_task_free(tsk); in bcom_gen_bd_rx_init() 109 return tsk; in bcom_gen_bd_rx_init() 113 bcom_gen_bd_rx_reset(struct bcom_task *tsk) 115 struct bcom_gen_bd_priv *priv = tsk in bcom_gen_bd_rx_reset() 114 bcom_gen_bd_rx_reset(struct bcom_task * tsk) bcom_gen_bd_rx_reset() argument 161 bcom_gen_bd_rx_release(struct bcom_task * tsk) bcom_gen_bd_rx_release() argument 173 struct bcom_task *tsk; bcom_gen_bd_tx_init() local 198 bcom_gen_bd_tx_reset(struct bcom_task * tsk) bcom_gen_bd_tx_reset() argument 245 bcom_gen_bd_tx_release(struct bcom_task * tsk) bcom_gen_bd_tx_release() argument [all...] |
| H A D | ata.c | 56 struct bcom_task *tsk; in bcom_ata_init() local 62 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init() 63 if (!tsk) in bcom_ata_init() 66 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init() 68 bcom_ata_reset_bd(tsk); in bcom_ata_init() 70 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init() 72 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init() 73 bcom_task_free(tsk); in bcom_ata_init() 78 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init() 79 var->bd_base = tsk in bcom_ata_init() 99 bcom_ata_rx_prepare(struct bcom_task * tsk) bcom_ata_rx_prepare() argument 113 bcom_ata_tx_prepare(struct bcom_task * tsk) bcom_ata_tx_prepare() argument 127 bcom_ata_reset_bd(struct bcom_task * tsk) bcom_ata_reset_bd() argument 142 bcom_ata_release(struct bcom_task * tsk) bcom_ata_release() argument [all...] |
| H A D | bestcomm.c | 49 struct bcom_task *tsk; in bcom_task_alloc() 71 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc() 72 if (!tsk) in bcom_task_alloc() 75 tsk->tasknum = tasknum; in bcom_task_alloc() 77 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc() 80 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc() 81 if (!tsk->irq) in bcom_task_alloc() 86 tsk in bcom_task_alloc() 50 struct bcom_task *tsk; bcom_task_alloc() local 119 bcom_task_free(struct bcom_task * tsk) bcom_task_free() argument 234 bcom_enable(struct bcom_task * tsk) bcom_enable() argument 241 bcom_disable(struct bcom_task * tsk) bcom_disable() argument [all...] |
| /linux/net/tipc/ |
| H A D | socket.c | 151 static int tipc_sk_publish(struct tipc_sock *tsk, struct tipc_uaddr *ua); 152 static int tipc_sk_withdraw(struct tipc_sock *tsk, struct tipc_uaddr *ua); 153 static int tipc_sk_leave(struct tipc_sock *tsk); 155 static int tipc_sk_insert(struct tipc_sock *tsk); 156 static void tipc_sk_remove(struct tipc_sock *tsk); 159 static void tipc_sk_push_backlog(struct tipc_sock *tsk, bool nagle_ack); 168 static u32 tsk_own_node(struct tipc_sock *tsk) in tsk_own_node() argument 170 return msg_prevnode(&tsk->phdr); in tsk_own_node() 173 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() argument 175 return msg_destnode(&tsk in tsk_peer_node() 178 tsk_peer_port(struct tipc_sock * tsk) tsk_peer_port() argument 183 tsk_unreliable(struct tipc_sock * tsk) tsk_unreliable() argument 188 tsk_set_unreliable(struct tipc_sock * tsk,bool unreliable) tsk_set_unreliable() argument 193 tsk_unreturnable(struct tipc_sock * tsk) tsk_unreturnable() argument 198 tsk_set_unreturnable(struct tipc_sock * tsk,bool unreturnable) tsk_set_unreturnable() argument 203 tsk_importance(struct tipc_sock * tsk) tsk_importance() argument 221 tsk_conn_cong(struct tipc_sock * tsk) tsk_conn_cong() argument 244 tsk_inc(struct tipc_sock * tsk,int msglen) tsk_inc() argument 253 tsk_set_nagle(struct tipc_sock * tsk) tsk_set_nagle() argument 335 tsk_peer_msg(struct tipc_sock * tsk,struct tipc_msg * msg) tsk_peer_msg() argument 464 struct tipc_sock *tsk; tipc_sk_create() local 544 struct tipc_sock *tsk = container_of(head, struct tipc_sock, rcu); tipc_sk_callback() local 553 struct tipc_sock *tsk = tipc_sk(sk); __tipc_shutdown() local 629 struct tipc_sock *tsk; tipc_release() local 679 struct tipc_sock *tsk = tipc_sk(sock->sk); __tipc_bind() local 751 struct tipc_sock *tsk = tipc_sk(sk); tipc_getname() local 795 struct tipc_sock *tsk = tipc_sk(sk); tipc_poll() local 847 struct tipc_sock *tsk = tipc_sk(sk); tipc_sendmcast() local 906 tipc_send_group_msg(struct net * net,struct tipc_sock * tsk,struct msghdr * m,struct tipc_member * mb,u32 dnode,u32 dport,int dlen) tipc_send_group_msg() argument 963 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_unicast() local 1006 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_anycast() local 1088 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_bcast() local 1161 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_mcast() local 1272 tipc_sk_push_backlog(struct tipc_sock * tsk,bool nagle_ack) tipc_sk_push_backlog() argument 1326 tipc_sk_conn_proto_rcv(struct tipc_sock * tsk,struct sk_buff * skb,struct sk_buff_head * inputq,struct sk_buff_head * xmitq) tipc_sk_conn_proto_rcv() argument 1414 struct tipc_sock *tsk = tipc_sk(sk); __tipc_sendmsg() local 1563 struct tipc_sock *tsk = tipc_sk(sk); __tipc_sendstream() local 1662 tipc_sk_finish_conn(struct tipc_sock * tsk,u32 peer_port,u32 peer_node) tipc_sk_finish_conn() argument 1738 tipc_sk_anc_data_recv(struct msghdr * m,struct sk_buff * skb,struct tipc_sock * tsk) tipc_sk_anc_data_recv() argument 1794 tipc_sk_build_ack(struct tipc_sock * tsk) tipc_sk_build_ack() argument 1821 tipc_sk_send_ack(struct tipc_sock * tsk) tipc_sk_send_ack() argument 1891 struct tipc_sock *tsk = tipc_sk(sk); tipc_recvmsg() local 2019 struct tipc_sock *tsk = tipc_sk(sk); tipc_recvstream() local 2154 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_proto_rcv() local 2195 tipc_sk_filter_connect(struct tipc_sock * tsk,struct sk_buff * skb,struct sk_buff_head * xmitq) tipc_sk_filter_connect() argument 2313 struct tipc_sock *tsk = tipc_sk(sk); rcvbuf_limit() local 2343 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_filter_rcv() local 2490 struct tipc_sock *tsk; tipc_sk_rcv() local 2579 struct tipc_sock *tsk = tipc_sk(sk); tipc_connect() local 2833 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_check_probing_state() local 2858 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_retry_connect() local 2873 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_timeout() local 2907 tipc_sk_publish(struct tipc_sock * tsk,struct tipc_uaddr * ua) tipc_sk_publish() argument 2932 tipc_sk_withdraw(struct tipc_sock * tsk,struct tipc_uaddr * ua) tipc_sk_withdraw() argument 2973 struct tipc_sock *tsk; tipc_sk_reinit() local 3002 struct tipc_sock *tsk; tipc_sk_lookup() local 3013 tipc_sk_insert(struct tipc_sock * tsk) tipc_sk_insert() argument 3036 tipc_sk_remove(struct tipc_sock * tsk) tipc_sk_remove() argument 3072 tipc_sk_join(struct tipc_sock * tsk,struct tipc_group_req * mreq) tipc_sk_join() argument 3111 tipc_sk_leave(struct tipc_sock * tsk) tipc_sk_leave() argument 3146 struct tipc_sock *tsk = tipc_sk(sk); tipc_setsockopt() local 3239 struct tipc_sock *tsk = tipc_sk(sk); tipc_getsockopt() local 3467 __tipc_nl_add_sk_con(struct sk_buff * skb,struct tipc_sock * tsk) __tipc_nl_add_sk_con() argument 3504 __tipc_nl_add_sk_info(struct sk_buff * skb,struct tipc_sock * tsk) __tipc_nl_add_sk_info() argument 3526 __tipc_nl_add_sk(struct sk_buff * skb,struct netlink_callback * cb,struct tipc_sock * tsk) __tipc_nl_add_sk() argument 3559 tipc_nl_sk_walk(struct sk_buff * skb,struct netlink_callback * cb,int (* skb_handler)(struct sk_buff * skb,struct netlink_callback * cb,struct tipc_sock * tsk)) tipc_nl_sk_walk() argument 3562 struct tipc_sock *tsk; tipc_nl_sk_walk() local 3627 tipc_sk_fill_sock_diag(struct sk_buff * skb,struct netlink_callback * cb,struct tipc_sock * tsk,u32 sk_filter_state,u64 (* tipc_diag_gen_cookie)(struct sock * sk)) tipc_sk_fill_sock_diag() argument 3742 __tipc_nl_list_sk_publ(struct sk_buff * skb,struct netlink_callback * cb,struct tipc_sock * tsk,u32 * last_publ) __tipc_nl_list_sk_publ() argument 3787 struct tipc_sock *tsk; tipc_nl_publ_dump() local 3842 struct tipc_sock *tsk; tipc_sk_filtering() local 3946 struct tipc_sock *tsk; tipc_sk_dump() local [all...] |
| /linux/arch/mips/include/asm/ |
| H A D | dsp.h | 39 #define __save_dsp(tsk) \ argument 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) \ argument 53 __save_dsp(tsk); \ [all …]
|
| H A D | fpu.h | 179 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() argument 183 save_msa(tsk); in lose_fpu_inatomic() 184 tsk->thread.fpu.fcr31 = in lose_fpu_inatomic() 188 clear_tsk_thread_flag(tsk, TIF_USEDMSA); in lose_fpu_inatomic() 192 _save_fp(tsk); in lose_fpu_inatomic() 199 KSTK_STATUS(tsk) &= ~ST0_CU1; in lose_fpu_inatomic() 200 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in lose_fpu_inatomic() 242 static inline void save_fp(struct task_struct *tsk) in save_fp() argument 245 _save_fp(tsk); in save_fp() 248 static inline void restore_fp(struct task_struct *tsk) in restore_fp() argument [all …]
|
| /linux/arch/sh/kernel/cpu/sh4/ |
| H A D | fpu.c | 41 void save_fpu(struct task_struct *tsk) in save_fpu() argument 84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu() 91 void restore_fpu(struct task_struct *tsk) in restore_fpu() argument 134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu() 228 struct task_struct *tsk = current; in ieee_fpe_handler() local 230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler() 232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler() 241 struct task_struct *tsk = current; in ieee_fpe_handler() local 248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | signal_64.c | 87 static void prepare_setup_sigcontext(struct task_struct *tsk) in prepare_setup_sigcontext() argument 91 if (tsk->thread.used_vr) in prepare_setup_sigcontext() 92 flush_altivec_to_thread(tsk); in prepare_setup_sigcontext() 94 tsk->thread.vrsave = mfspr(SPRN_VRSAVE); in prepare_setup_sigcontext() 97 flush_fp_to_thread(tsk); in prepare_setup_sigcontext() 100 if (tsk->thread.used_vsr) in prepare_setup_sigcontext() 101 flush_vsx_to_thread(tsk); in prepare_setup_sigcontext() 109 #define unsafe_setup_sigcontext(sc, tsk, signr, set, handler, ctx_has_vsx_region, label)\ argument 111 if (__unsafe_setup_sigcontext(sc, tsk, signr, set, handler, ctx_has_vsx_region))\ 115 struct task_struct *tsk, in in __unsafe_setup_sigcontext() argument 208 setup_tm_sigcontexts(struct sigcontext __user * sc,struct sigcontext __user * tm_sc,struct task_struct * tsk,int signr,sigset_t * set,unsigned long handler,unsigned long msr) setup_tm_sigcontexts() argument 333 unsafe_restore_sigcontext(tsk,set,sig,sc,label) global() argument 337 __unsafe_restore_sigcontext(struct task_struct * tsk,sigset_t * set,int sig,struct sigcontext __user * sc) __unsafe_restore_sigcontext() argument 437 restore_tm_sigcontexts(struct task_struct * tsk,struct sigcontext __user * sc,struct sigcontext __user * tm_sc) restore_tm_sigcontexts() argument 614 restore_tm_sigcontexts(struct task_struct * tsk,struct sigcontext __user * sc,struct sigcontext __user * tm_sc) restore_tm_sigcontexts() argument 858 handle_rt_signal64(struct ksignal * ksig,sigset_t * set,struct task_struct * tsk) handle_rt_signal64() argument [all...] |
| /linux/arch/sh/kernel/cpu/ |
| H A D | fpu.c | 11 int init_fpu(struct task_struct *tsk) in init_fpu() argument 13 if (tsk_used_math(tsk)) { in init_fpu() 14 if ((boot_cpu_data.flags & CPU_HAS_FPU) && tsk == current) in init_fpu() 15 unlazy_fpu(tsk, task_pt_regs(tsk)); in init_fpu() 22 if (!tsk->thread.xstate) { in init_fpu() 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 25 if (!tsk->thread.xstate) in init_fpu() 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() 39 set_stopped_child_used_math(tsk); in init_fpu() [all …]
|
| /linux/arch/s390/mm/ |
| H A D | pfault.c | 120 struct task_struct *tsk; in pfault_interrupt() local 136 tsk = find_task_by_pid_ns(pid, &init_pid_ns); in pfault_interrupt() 137 if (tsk) in pfault_interrupt() 138 get_task_struct(tsk); in pfault_interrupt() 140 if (!tsk) in pfault_interrupt() 145 if (tsk->thread.pfault_wait == 1) { in pfault_interrupt() 153 tsk->thread.pfault_wait = 0; in pfault_interrupt() 154 list_del(&tsk->thread.list); in pfault_interrupt() 155 wake_up_process(tsk); in pfault_interrupt() 156 put_task_struct(tsk); in pfault_interrupt() [all …]
|
| /linux/include/linux/ |
| H A D | scs.h | 25 #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 …]
|
| H A D | pid.h | 296 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() argument 298 return tsk->pid; in task_pid_nr() 301 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() argument 303 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns() 306 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() argument 308 return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); in task_pid_vnr() 312 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() argument 314 return tsk->tgid; in task_tgid_nr() 332 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() argument 334 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | processor.h | 311 #define task_pt_regs(tsk) ((tsk)->thread.regs) argument 315 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument 316 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument 319 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument 320 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument 322 extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr); 323 extern int set_fpexc_mode(struct task_struct *tsk, unsigned int val); 325 #define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr)) argument 326 #define SET_ENDIAN(tsk, val) set_endian((tsk), (val)) argument 328 extern int get_endian(struct task_struct *tsk, unsigned long adr); [all …]
|
| /linux/kernel/ |
| H A D | exit.c | 159 static void __exit_signal(struct release_task_post *post, struct task_struct *tsk) in __exit_signal() argument 161 struct signal_struct *sig = tsk->signal; in __exit_signal() 162 bool group_dead = thread_group_leader(tsk); in __exit_signal() 167 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal() 182 if (tsk == sig->curr_target) in __exit_signal() 183 sig->curr_target = next_thread(tsk); in __exit_signal() 192 task_cputime(tsk, &utime, &stime); in __exit_signal() 196 sig->gtime += task_gtime(tsk); in __exit_signal() 197 sig->min_flt += tsk->min_flt; in __exit_signal() 198 sig->maj_flt += tsk in __exit_signal() 230 struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); delayed_put_task_struct() local 408 kill_orphaned_pgrp(struct task_struct * tsk,struct task_struct * parent) kill_orphaned_pgrp() argument 433 coredump_task_exit(struct task_struct * tsk,struct core_state * core_state) coredump_task_exit() argument 460 __try_to_set_owner(struct task_struct * tsk,struct mm_struct * mm) __try_to_set_owner() argument 748 exit_notify(struct task_struct * tsk,int group_dead) exit_notify() argument 877 synchronize_group_exit(struct task_struct * tsk,long code) synchronize_group_exit() argument 908 struct task_struct *tsk = current; do_exit() local 1045 struct task_struct *tsk = current; make_task_dead() local 1577 do_wait_thread(struct wait_opts * wo,struct task_struct * tsk) do_wait_thread() argument 1591 ptrace_do_wait(struct wait_opts * wo,struct task_struct * tsk) ptrace_do_wait() argument 1697 struct task_struct *tsk = current; __do_wait() local [all...] |
| H A D | fork.c | 180 void __weak arch_release_task_struct(struct task_struct *tsk) in arch_release_task_struct() argument 191 static inline void free_task_struct(struct task_struct *tsk) in free_task_struct() argument 193 kmem_cache_free(task_struct_cachep, tsk); in free_task_struct() 215 static struct vm_struct *alloc_thread_stack_node_from_cache(struct task_struct *tsk, int node) in alloc_thread_stack_node_from_cache() argument 286 static void thread_stack_delayed_free(struct task_struct *tsk) in thread_stack_delayed_free() argument 288 struct vm_stack *vm_stack = tsk->stack; in thread_stack_delayed_free() 290 vm_stack->stack_vm_area = tsk->stack_vm_area; in thread_stack_delayed_free() 333 static int alloc_thread_stack_node(struct task_struct *tsk, int node) in alloc_thread_stack_node() argument 338 vm_area = alloc_thread_stack_node_from_cache(tsk, node); in alloc_thread_stack_node() 354 tsk in alloc_thread_stack_node() 381 free_thread_stack(struct task_struct * tsk) free_thread_stack() argument 403 thread_stack_delayed_free(struct task_struct * tsk) thread_stack_delayed_free() argument 410 alloc_thread_stack_node(struct task_struct * tsk,int node) alloc_thread_stack_node() argument 422 free_thread_stack(struct task_struct * tsk) free_thread_stack() argument 437 thread_stack_delayed_free(struct task_struct * tsk) thread_stack_delayed_free() argument 444 alloc_thread_stack_node(struct task_struct * tsk,int node) alloc_thread_stack_node() argument 453 free_thread_stack(struct task_struct * tsk) free_thread_stack() argument 485 account_kernel_stack(struct task_struct * tsk,int account) account_kernel_stack() argument 503 exit_task_stack_account(struct task_struct * tsk) exit_task_stack_account() argument 517 release_task_stack(struct task_struct * tsk) release_task_stack() argument 526 put_task_stack(struct task_struct * tsk) put_task_stack() argument 533 free_task(struct task_struct * tsk) free_task() argument 782 __put_task_struct(struct task_struct * tsk) __put_task_struct() argument 907 set_task_stack_end_magic(struct task_struct * tsk) set_task_stack_end_magic() argument 917 struct task_struct *tsk; dup_task_struct() local 1432 complete_vfork_done(struct task_struct * tsk) complete_vfork_done() argument 1478 mm_release(struct task_struct * tsk,struct mm_struct * mm) mm_release() argument 1511 mm_exit_exec_release(struct task_struct * tsk,struct mm_struct * mm) mm_exit_exec_release() argument 1527 dup_mm(struct task_struct * tsk,struct mm_struct * oldmm) dup_mm() argument 1568 copy_mm(u64 clone_flags,struct task_struct * tsk) copy_mm() argument 1606 copy_exec_state(u64 clone_flags,struct task_struct * tsk) copy_exec_state() argument 1627 copy_fs(u64 clone_flags,struct task_struct * tsk,enum copy_fs_flags_t flags) copy_fs() argument 1669 copy_files(u64 clone_flags,struct task_struct * tsk,int no_files) copy_files() argument 1700 copy_sighand(u64 clone_flags,struct task_struct * tsk) copy_sighand() argument 1749 copy_signal(u64 clone_flags,struct task_struct * tsk) copy_signal() argument 1964 struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); __delayed_free_task() local 1969 delayed_free_task(struct task_struct * tsk) delayed_free_task() argument 1977 copy_oom_score_adj(u64 clone_flags,struct task_struct * tsk) copy_oom_score_adj() argument [all...] |
| H A D | smpboot.c | 30 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() local 32 if (!tsk) in idle_thread_get() 34 return tsk; in idle_thread_get() 50 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local 52 if (!tsk) { in idle_init() 53 tsk = fork_idle(cpu); in idle_init() 54 if (IS_ERR(tsk)) in idle_init() 57 per_cpu(idle_threads, cpu) = tsk; in idle_init() 170 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local 173 if (tsk) in __smpboot_create_thread() [all …]
|
| /linux/kernel/time/ |
| H A D | posix-cpu-timers.c | 35 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if 78 struct task_struct *tsk = pid_task(pid, PIDTYPE_PID); in pid_for_clock() local 79 return (tsk && same_thread_group(tsk, current)) ? pid : NULL; in pid_for_clock() 264 * @tsk: Task for which cputime needs to be started 273 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) in thread_group_sample_cputime() argument 275 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; in thread_group_sample_cputime() 276 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime() 285 * @tsk: Task for which cputime needs to be started 295 static void thread_group_start_cputime(struct task_struct *tsk, u6 argument 326 __thread_group_cputime(struct task_struct * tsk,u64 * samples) __thread_group_cputime() argument 361 struct task_struct *tsk; posix_cpu_clock_get() local 418 timer_base(struct k_itimer * timer,struct task_struct * tsk) timer_base() argument 435 trigger_base_recalc_expires(struct k_itimer * timer,struct task_struct * tsk) trigger_base_recalc_expires() argument 647 posix_cpu_timers_exit(struct task_struct * tsk) posix_cpu_timers_exit() argument 651 posix_cpu_timers_exit_group(struct task_struct * tsk) posix_cpu_timers_exit_group() argument 906 check_dl_overrun(struct task_struct * tsk) check_dl_overrun() argument 933 check_thread_timers(struct task_struct * tsk,struct list_head * firing) check_thread_timers() argument 983 check_cpu_itimer(struct task_struct * tsk,struct cpu_itimer * it,u64 * expires,u64 cur_time,int signo) check_cpu_itimer() argument 1010 check_process_timers(struct task_struct * tsk,struct list_head * firing) check_process_timers() argument 1146 fastpath_timer_check(struct task_struct * tsk) fastpath_timer_check() argument 1211 struct task_struct *tsk = rcu_dereference(timr->it.cpu.handling); posix_cpu_timer_wait_running() local 1274 posix_cpu_timers_work_scheduled(struct task_struct * tsk) posix_cpu_timers_work_scheduled() argument 1279 __run_posix_cpu_timers(struct task_struct * tsk) __run_posix_cpu_timers() argument 1289 posix_cpu_timers_enable_work(struct task_struct * tsk,unsigned long start) posix_cpu_timers_enable_work() argument 1327 __run_posix_cpu_timers(struct task_struct * tsk) __run_posix_cpu_timers() argument 1346 posix_cpu_timers_work_scheduled(struct task_struct * tsk) posix_cpu_timers_work_scheduled() argument 1351 posix_cpu_timers_enable_work(struct task_struct * tsk,unsigned long start) posix_cpu_timers_enable_work() argument 1358 handle_posix_cpu_timers(struct task_struct * tsk) handle_posix_cpu_timers() argument 1470 struct task_struct *tsk = current; run_posix_cpu_timers() local 1504 set_process_cpu_timer(struct task_struct * tsk,unsigned int clkid,u64 * newval,u64 * oldval) set_process_cpu_timer() argument [all...] |
| /linux/include/linux/sched/ |
| H A D | xacct.h | 12 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 add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar() argument 36 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar() argument [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | asm_pointer_auth.h | 12 .macro __ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3 14 add \tmp1, \tsk, \tmp1 20 .macro ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3 22 __ptrauth_keys_install_kernel_nosync \tsk, \tmp1, \tmp2, \tmp3 26 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3 28 __ptrauth_keys_install_kernel_nosync \tsk, \tmp1, \tmp2, \tmp3 35 .macro __ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3 38 .macro ptrauth_keys_install_kernel_nosync tsk, tmp1, tmp2, tmp3 41 .macro ptrauth_keys_install_kernel tsk, tmp1, tmp2, tmp3 52 .macro __ptrauth_keys_install_user tsk, tmp1, tmp2, tmp3 [all …]
|
| /linux/arch/arc/kernel/ |
| H A D | stacktrace.c | 43 seed_unwind_frame_info(struct task_struct *tsk, struct pt_regs *regs, in seed_unwind_frame_info() argument 51 frame_info->task = tsk; in seed_unwind_frame_info() 58 } else if (tsk == NULL || tsk == current) { in seed_unwind_frame_info() 87 if (task_is_running(tsk)) in seed_unwind_frame_info() 90 frame_info->task = tsk; in seed_unwind_frame_info() 92 frame_info->regs.r27 = TSK_K_FP(tsk); in seed_unwind_frame_info() 93 frame_info->regs.r28 = TSK_K_ESP(tsk); in seed_unwind_frame_info() 94 frame_info->regs.r31 = TSK_K_BLINK(tsk); in seed_unwind_frame_info() 117 arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs, in arc_unwind_core() argument 125 if (seed_unwind_frame_info(tsk, regs, &frame_info)) in arc_unwind_core() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | processor.h | 39 #define TASK_SIZE_OF(tsk) \ argument 40 (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) 146 #define thread_saved_ra(tsk) (tsk->thread.sched_ra) argument 147 #define thread_saved_fp(tsk) (tsk->thread.sched_cfa) 202 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \ 204 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) argument 145 thread_saved_ra(tsk) global() argument 201 __KSTK_TOS(tsk) global() argument 203 task_pt_regs(tsk) global() argument 205 KSTK_ESP(tsk) global() argument 206 KSTK_EUEN(tsk) global() argument 207 KSTK_ECFG(tsk) global() argument [all...] |
| /linux/arch/arc/include/asm/ |
| H A D | processor.h | 49 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) argument 50 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) argument 56 #define TSK_K_ESP(tsk) (task_thread_info(tsk)->ksp) argument 58 #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ argument 61 #define TSK_K_BLINK(tsk) TSK_K_REG(tsk, 4) argument 62 #define TSK_K_FP(tsk) TSK_K_REG(tsk, 0) argument
|
| /linux/arch/sh/include/asm/ |
| H A D | fpu.h | 27 #define save_fpu(tsk) do { } while (0) argument 28 #define restore_fpu(tsk) do { } while (0) argument 40 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in __unlazy_fpu() argument 42 if (task_thread_info(tsk)->status & TS_USEDFPU) { in __unlazy_fpu() 43 task_thread_info(tsk)->status &= ~TS_USEDFPU; in __unlazy_fpu() 44 save_fpu(tsk); in __unlazy_fpu() 47 tsk->thread.fpu_counter = 0; in __unlazy_fpu() 50 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in unlazy_fpu() argument 53 __unlazy_fpu(tsk, regs); in unlazy_fpu() 57 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) in clear_fpu() argument [all …]
|