| /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() 114 bcom_gen_bd_rx_reset(struct bcom_task *tsk) in bcom_gen_bd_rx_reset() argument 116 struct bcom_gen_bd_priv *priv = tsk->priv; in bcom_gen_bd_rx_reset() [all …]
|
| H A D | ata.c | 56 struct bcom_task *tsk; in bcom_ata_init() local 63 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init() 64 if (!tsk) in bcom_ata_init() 67 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init() 69 bcom_ata_reset_bd(tsk); in bcom_ata_init() 71 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init() 72 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init() 74 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init() 75 bcom_task_free(tsk); in bcom_ata_init() 80 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init() [all …]
|
| H A D | bestcomm.c | 50 struct bcom_task *tsk; in bcom_task_alloc() local 72 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc() 73 if (!tsk) in bcom_task_alloc() 76 tsk->tasknum = tasknum; in bcom_task_alloc() 78 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc() 81 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc() 82 if (!tsk->irq) in bcom_task_alloc() 87 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc() 89 if (!tsk->cookie) in bcom_task_alloc() 92 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc() [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/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() 170 return msg_prevnode(&tsk->phdr); in tsk_own_node() 173 static u32 tsk_peer_node(struct tipc_sock *tsk) in tsk_peer_node() 175 return msg_destnode(&tsk in tsk_peer_node() 167 tsk_own_node(struct tipc_sock * tsk) tsk_own_node() argument 172 tsk_peer_node(struct tipc_sock * tsk) tsk_peer_node() argument 177 tsk_peer_port(struct tipc_sock * tsk) tsk_peer_port() argument 182 tsk_unreliable(struct tipc_sock * tsk) tsk_unreliable() argument 187 tsk_set_unreliable(struct tipc_sock * tsk,bool unreliable) tsk_set_unreliable() argument 192 tsk_unreturnable(struct tipc_sock * tsk) tsk_unreturnable() argument 197 tsk_set_unreturnable(struct tipc_sock * tsk,bool unreturnable) tsk_set_unreturnable() argument 202 tsk_importance(struct tipc_sock * tsk) tsk_importance() argument 220 tsk_conn_cong(struct tipc_sock * tsk) tsk_conn_cong() argument 243 tsk_inc(struct tipc_sock * tsk,int msglen) tsk_inc() argument 252 tsk_set_nagle(struct tipc_sock * tsk) tsk_set_nagle() argument 334 tsk_peer_msg(struct tipc_sock * tsk,struct tipc_msg * msg) tsk_peer_msg() argument 463 struct tipc_sock *tsk; tipc_sk_create() local 542 struct tipc_sock *tsk = container_of(head, struct tipc_sock, rcu); tipc_sk_callback() local 551 struct tipc_sock *tsk = tipc_sk(sk); __tipc_shutdown() local 627 struct tipc_sock *tsk; tipc_release() local 677 struct tipc_sock *tsk = tipc_sk(sock->sk); __tipc_bind() local 749 struct tipc_sock *tsk = tipc_sk(sk); tipc_getname() local 793 struct tipc_sock *tsk = tipc_sk(sk); tipc_poll() local 845 struct tipc_sock *tsk = tipc_sk(sk); tipc_sendmcast() local 904 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 961 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_unicast() local 1004 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_anycast() local 1086 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_bcast() local 1159 struct tipc_sock *tsk = tipc_sk(sk); tipc_send_group_mcast() local 1270 tipc_sk_push_backlog(struct tipc_sock * tsk,bool nagle_ack) tipc_sk_push_backlog() argument 1324 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 1409 struct tipc_sock *tsk = tipc_sk(sk); __tipc_sendmsg() local 1558 struct tipc_sock *tsk = tipc_sk(sk); __tipc_sendstream() local 1657 tipc_sk_finish_conn(struct tipc_sock * tsk,u32 peer_port,u32 peer_node) tipc_sk_finish_conn() argument 1733 tipc_sk_anc_data_recv(struct msghdr * m,struct sk_buff * skb,struct tipc_sock * tsk) tipc_sk_anc_data_recv() argument 1789 tipc_sk_build_ack(struct tipc_sock * tsk) tipc_sk_build_ack() argument 1816 tipc_sk_send_ack(struct tipc_sock * tsk) tipc_sk_send_ack() argument 1886 struct tipc_sock *tsk = tipc_sk(sk); tipc_recvmsg() local 2014 struct tipc_sock *tsk = tipc_sk(sk); tipc_recvstream() local 2149 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_proto_rcv() local 2190 tipc_sk_filter_connect(struct tipc_sock * tsk,struct sk_buff * skb,struct sk_buff_head * xmitq) tipc_sk_filter_connect() argument 2308 struct tipc_sock *tsk = tipc_sk(sk); rcvbuf_limit() local 2338 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_filter_rcv() local 2485 struct tipc_sock *tsk; tipc_sk_rcv() local 2574 struct tipc_sock *tsk = tipc_sk(sk); tipc_connect() local 2828 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_check_probing_state() local 2853 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_retry_connect() local 2868 struct tipc_sock *tsk = tipc_sk(sk); tipc_sk_timeout() local 2902 tipc_sk_publish(struct tipc_sock * tsk,struct tipc_uaddr * ua) tipc_sk_publish() argument 2927 tipc_sk_withdraw(struct tipc_sock * tsk,struct tipc_uaddr * ua) tipc_sk_withdraw() argument 2968 struct tipc_sock *tsk; tipc_sk_reinit() local 2997 struct tipc_sock *tsk; tipc_sk_lookup() local 3008 tipc_sk_insert(struct tipc_sock * tsk) tipc_sk_insert() argument 3031 tipc_sk_remove(struct tipc_sock * tsk) tipc_sk_remove() argument 3067 tipc_sk_join(struct tipc_sock * tsk,struct tipc_group_req * mreq) tipc_sk_join() argument 3106 tipc_sk_leave(struct tipc_sock * tsk) tipc_sk_leave() argument 3141 struct tipc_sock *tsk = tipc_sk(sk); tipc_setsockopt() local 3235 struct tipc_sock *tsk = tipc_sk(sk); tipc_getsockopt() local 3462 __tipc_nl_add_sk_con(struct sk_buff * skb,struct tipc_sock * tsk) __tipc_nl_add_sk_con() argument 3499 __tipc_nl_add_sk_info(struct sk_buff * skb,struct tipc_sock * tsk) __tipc_nl_add_sk_info() argument 3521 __tipc_nl_add_sk(struct sk_buff * skb,struct netlink_callback * cb,struct tipc_sock * tsk) __tipc_nl_add_sk() argument 3554 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 3557 struct tipc_sock *tsk; tipc_nl_sk_walk() local 3622 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 3737 __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 3782 struct tipc_sock *tsk; tipc_nl_publ_dump() local 3837 struct tipc_sock *tsk; tipc_sk_filtering() local 3941 struct tipc_sock *tsk; tipc_sk_dump() local [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/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/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 …]
|
| /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/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, int signr, sigset_t *set, in __unsafe_setup_sigcontext() 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/kernel/ |
| 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() 168 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local 171 if (tsk) in __smpboot_create_thread() [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/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/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 …]
|
| H A D | pointer_auth.h | 101 extern int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg); 103 extern int ptrauth_set_enabled_keys(struct task_struct *tsk, unsigned long keys, 105 extern int ptrauth_get_enabled_keys(struct task_struct *tsk); 130 #define ptrauth_thread_switch_user(tsk) \ argument 131 ptrauth_keys_install_user(&(tsk)->thread.keys_user) 135 #define ptrauth_prctl_reset_keys(tsk, arg) (-EINVAL) argument 136 #define ptrauth_set_enabled_keys(tsk, keys, enabled) (-EINVAL) argument 137 #define ptrauth_get_enabled_keys(tsk) (-EINVAL) argument 140 #define ptrauth_thread_switch_user(tsk) argument 144 #define ptrauth_thread_init_kernel(tsk) \ argument [all …]
|
| /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 …]
|
| /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) 145 #define thread_saved_ra(tsk) (tsk->thread.sched_ra) argument 146 #define thread_saved_fp(tsk) (tsk->thread.sched_cfa) argument 201 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \ argument 203 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) argument 204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era) argument 205 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[3]) argument 206 #define KSTK_EUEN(tsk) (task_pt_regs(tsk)->csr_euen) argument 207 #define KSTK_ECFG(tsk) (task_pt_regs(tsk)->csr_ecfg) argument
|
| /linux/arch/arm64/kernel/ |
| H A D | pointer_auth.c | 11 int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg) in ptrauth_prctl_reset_keys() argument 13 struct ptrauth_keys_user *keys = &tsk->thread.keys_user; in ptrauth_prctl_reset_keys() 21 if (is_compat_thread(task_thread_info(tsk))) in ptrauth_prctl_reset_keys() 67 int ptrauth_set_enabled_keys(struct task_struct *tsk, unsigned long keys, in ptrauth_set_enabled_keys() argument 75 if (is_compat_thread(task_thread_info(tsk))) in ptrauth_set_enabled_keys() 82 sctlr = tsk->thread.sctlr_user; in ptrauth_set_enabled_keys() 85 tsk->thread.sctlr_user = sctlr; in ptrauth_set_enabled_keys() 86 if (tsk == current) in ptrauth_set_enabled_keys() 93 int ptrauth_get_enabled_keys(struct task_struct *tsk) in ptrauth_get_enabled_keys() argument 100 if (is_compat_thread(task_thread_info(tsk))) in ptrauth_get_enabled_keys() [all …]
|
| /linux/arch/powerpc/mm/ |
| H A D | mmu_context.c | 16 static inline void switch_mm_pgdir(struct task_struct *tsk, in switch_mm_pgdir() argument 20 tsk->thread.pgdir = mm->pgd; in switch_mm_pgdir() 22 tsk->thread.sr0 = mm->context.sr0; in switch_mm_pgdir() 25 tsk->thread.pid = mm->context.id; in switch_mm_pgdir() 29 static inline void switch_mm_pgdir(struct task_struct *tsk, in switch_mm_pgdir() argument 35 tsk->thread.pid = mm->context.id; in switch_mm_pgdir() 39 static inline void switch_mm_pgdir(struct task_struct *tsk, in switch_mm_pgdir() argument 44 struct task_struct *tsk) in switch_mm_irqs_off() argument 84 switch_mm_pgdir(tsk, next); in switch_mm_irqs_off() 98 membarrier_arch_switch_mm(prev, next, tsk); in switch_mm_irqs_off() [all …]
|
| /linux/kernel/time/ |
| H A D | itimer.c | 47 static void get_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, in get_cpu_itimer() argument 51 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in get_cpu_itimer() 53 spin_lock_irq(&tsk->sighand->siglock); in get_cpu_itimer() 60 thread_group_sample_cputime(tsk, samples); in get_cpu_itimer() 70 spin_unlock_irq(&tsk->sighand->siglock); in get_cpu_itimer() 78 struct task_struct *tsk = current; in do_getitimer() local 82 spin_lock_irq(&tsk->sighand->siglock); in do_getitimer() 83 value->it_value = itimer_get_remtime(&tsk->signal->real_timer); in do_getitimer() 85 ktime_to_timespec64(tsk->signal->it_real_incr); in do_getitimer() 86 spin_unlock_irq(&tsk->sighand->siglock); in do_getitimer() [all …]
|