/arch/powerpc/sysdev/bestcomm/ |
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 …]
|
D | fec.c | 87 struct bcom_task *tsk; in bcom_fec_rx_init() local 90 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_fec_bd), in bcom_fec_rx_init() 92 if (!tsk) in bcom_fec_rx_init() 95 tsk->flags = BCOM_FLAGS_NONE; in bcom_fec_rx_init() 97 priv = tsk->priv; in bcom_fec_rx_init() 101 if (bcom_fec_rx_reset(tsk)) { in bcom_fec_rx_init() 102 bcom_task_free(tsk); in bcom_fec_rx_init() 106 return tsk; in bcom_fec_rx_init() 111 bcom_fec_rx_reset(struct bcom_task *tsk) in bcom_fec_rx_reset() argument 113 struct bcom_fec_priv *priv = tsk->priv; in bcom_fec_rx_reset() [all …]
|
D | ata.c | 60 struct bcom_task *tsk; in bcom_ata_init() local 67 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init() 68 if (!tsk) in bcom_ata_init() 71 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init() 73 bcom_ata_reset_bd(tsk); in bcom_ata_init() 75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init() 76 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init() 78 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init() 79 bcom_task_free(tsk); in bcom_ata_init() 84 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init() [all …]
|
D | gen_bd.c | 92 struct bcom_task *tsk; in bcom_gen_bd_rx_init() local 95 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_gen_bd), in bcom_gen_bd_rx_init() 97 if (!tsk) in bcom_gen_bd_rx_init() 100 tsk->flags = BCOM_FLAGS_NONE; in bcom_gen_bd_rx_init() 102 priv = tsk->priv; in bcom_gen_bd_rx_init() 108 if (bcom_gen_bd_rx_reset(tsk)) { in bcom_gen_bd_rx_init() 109 bcom_task_free(tsk); in bcom_gen_bd_rx_init() 113 return tsk; in bcom_gen_bd_rx_init() 118 bcom_gen_bd_rx_reset(struct bcom_task *tsk) in bcom_gen_bd_rx_reset() argument 120 struct bcom_gen_bd_priv *priv = tsk->priv; in bcom_gen_bd_rx_reset() [all …]
|
D | bestcomm.c | 53 struct bcom_task *tsk; in bcom_task_alloc() local 75 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc() 76 if (!tsk) in bcom_task_alloc() 79 tsk->tasknum = tasknum; in bcom_task_alloc() 81 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc() 84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc() 85 if (tsk->irq == NO_IRQ) in bcom_task_alloc() 90 tsk->cookie = kmalloc(sizeof(void*) * bd_count, GFP_KERNEL); in bcom_task_alloc() 91 if (!tsk->cookie) in bcom_task_alloc() 94 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc() [all …]
|
/arch/x86/include/asm/ |
D | i387.h | 78 static inline int restore_fpu_checking(struct task_struct *tsk) in restore_fpu_checking() argument 80 if (task_thread_info(tsk)->status & TS_XSAVE) in restore_fpu_checking() 81 return xrstor_checking(&tsk->thread.xstate->xsave); in restore_fpu_checking() 83 return fxrstor_checking(&tsk->thread.xstate->fxsave); in restore_fpu_checking() 91 static inline void clear_fpu_state(struct task_struct *tsk) in clear_fpu_state() argument 93 struct xsave_struct *xstate = &tsk->thread.xstate->xsave; in clear_fpu_state() 94 struct i387_fxsave_struct *fx = &tsk->thread.xstate->fxsave; in clear_fpu_state() 99 if ((task_thread_info(tsk)->status & TS_XSAVE) && in clear_fpu_state() 135 static inline void fxsave(struct task_struct *tsk) in fxsave() argument 145 : "=m" (tsk->thread.xstate->fxsave)); in fxsave() [all …]
|
/arch/mips/include/asm/ |
D | dsp.h | 43 #define __save_dsp(tsk) \ argument 45 tsk->thread.dsp.dspr[0] = mfhi1(); \ 46 tsk->thread.dsp.dspr[1] = mflo1(); \ 47 tsk->thread.dsp.dspr[2] = mfhi2(); \ 48 tsk->thread.dsp.dspr[3] = mflo2(); \ 49 tsk->thread.dsp.dspr[4] = mfhi3(); \ 50 tsk->thread.dsp.dspr[5] = mflo3(); \ 51 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \ 54 #define save_dsp(tsk) \ argument 57 __save_dsp(tsk); \ [all …]
|
D | processor.h | 71 #define TASK_SIZE_OF(tsk) \ argument 72 (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE) 301 #define prepare_to_copy(tsk) do { } while (0) argument 305 extern unsigned long thread_saved_pc(struct task_struct *tsk); 314 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32) argument 315 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk) - 1) argument 316 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc) argument 317 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29]) argument 318 #define KSTK_STATUS(tsk) (task_pt_regs(tsk)->cp0_status) argument
|
/arch/mn10300/kernel/ |
D | fpu.c | 23 struct task_struct *tsk = current; in fpu_disabled() local 40 fpu_state_owner = tsk; in fpu_disabled() 45 if (is_using_fpu(tsk)) { in fpu_disabled() 46 fpu_restore(&tsk->thread.fpu_state); in fpu_disabled() 49 set_using_fpu(tsk); in fpu_disabled() 59 info.si_addr = (void *) tsk->thread.uregs->pc; in fpu_disabled() 62 force_sig_info(SIGFPE, &info, tsk); in fpu_disabled() 74 struct task_struct *tsk = fpu_state_owner; in fpu_exception() local 82 if (!tsk) in fpu_exception() 89 info.si_addr = (void *) tsk->thread.uregs->pc; in fpu_exception() [all …]
|
/arch/sh/kernel/cpu/sh4/ |
D | fpu.c | 46 void save_fpu(struct task_struct *tsk, struct pt_regs *regs) in save_fpu() argument 50 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in save_fpu() 90 :"0"((char *)(&tsk->thread.fpu.hard.status)), in save_fpu() 98 static void restore_fpu(struct task_struct *tsk) in restore_fpu() argument 141 :"0"(&tsk->thread.fpu), "r"(FPSCR_RCHG) in restore_fpu() 286 struct task_struct *tsk = current; in ieee_fpe_handler() local 288 save_fpu(tsk, regs); in ieee_fpe_handler() 289 if ((tsk->thread.fpu.hard.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler() 291 denormal_to_double(&tsk->thread.fpu.hard, in ieee_fpe_handler() 300 struct task_struct *tsk = current; in ieee_fpe_handler() local [all …]
|
/arch/powerpc/include/asm/ |
D | processor.h | 77 extern void prepare_to_copy(struct task_struct *tsk); 111 #define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \ argument 238 #define thread_saved_pc(tsk) \ argument 239 ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) 241 #define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs) argument 245 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) argument 246 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0) argument 249 #define GET_FPEXC_CTL(tsk, adr) get_fpexc_mode((tsk), (adr)) argument 250 #define SET_FPEXC_CTL(tsk, val) set_fpexc_mode((tsk), (val)) argument 252 extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr); [all …]
|
D | mmu_context.h | 18 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm); 22 extern void switch_stab(struct task_struct *tsk, struct mm_struct *mm); 23 extern void switch_slb(struct task_struct *tsk, struct mm_struct *mm); 31 struct task_struct *tsk) in switch_mm() argument 38 tsk->thread.pgdir = next->pgd; in switch_mm() 58 switch_slb(tsk, next); in switch_mm() 60 switch_stab(tsk, next); in switch_mm() 68 #define deactivate_mm(tsk,mm) do { } while (0) argument 85 struct task_struct *tsk) in enter_lazy_tlb() argument
|
/arch/sh/include/asm/ |
D | fpu.h | 27 static inline void save_fpu(struct task_struct *tsk, struct pt_regs *regs) in save_fpu() argument 29 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in save_fpu() 42 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in unlazy_fpu() argument 45 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) in unlazy_fpu() 46 save_fpu(tsk, regs); in unlazy_fpu() 50 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) in clear_fpu() argument 53 if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { in clear_fpu() 54 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in clear_fpu() 60 static inline int init_fpu(struct task_struct *tsk) in init_fpu() argument 62 if (tsk_used_math(tsk)) { in init_fpu() [all …]
|
/arch/arm/include/asm/ |
D | a.out-core.h | 25 struct task_struct *tsk = current; in aout_dump_thread() local 28 dump->start_code = tsk->mm->start_code; in aout_dump_thread() 31 dump->u_tsize = (tsk->mm->end_code - tsk->mm->start_code) >> PAGE_SHIFT; in aout_dump_thread() 32 dump->u_dsize = (tsk->mm->brk - tsk->mm->start_data + PAGE_SIZE - 1) >> PAGE_SHIFT; in aout_dump_thread() 35 dump->u_debugreg[0] = tsk->thread.debug.bp[0].address; in aout_dump_thread() 36 dump->u_debugreg[1] = tsk->thread.debug.bp[1].address; in aout_dump_thread() 37 dump->u_debugreg[2] = tsk->thread.debug.bp[0].insn.arm; in aout_dump_thread() 38 dump->u_debugreg[3] = tsk->thread.debug.bp[1].insn.arm; in aout_dump_thread() 39 dump->u_debugreg[4] = tsk->thread.debug.nsaved; in aout_dump_thread()
|
/arch/s390/mm/ |
D | fault.c | 105 static inline int check_space(struct task_struct *tsk) in check_space() argument 116 return tsk->thread.mm_segment.ar4; in check_space() 121 save_access_regs(tsk->thread.acrs); in check_space() 128 if (tsk->thread.acrs[S390_lowcore.exc_access_id]) in check_space() 129 return tsk->thread.mm_segment.ar4; in check_space() 210 struct task_struct *tsk = current; in do_out_of_memory() local 211 struct mm_struct *mm = tsk->mm; in do_out_of_memory() 214 if (is_global_init(tsk)) { in do_out_of_memory() 219 printk("VM: killing process %s\n", tsk->comm); in do_out_of_memory() 229 struct task_struct *tsk = current; in do_sigbus() local [all …]
|
D | pgtable.c | 234 void disable_noexec(struct mm_struct *mm, struct task_struct *tsk) in disable_noexec() argument 250 update_mm(mm, tsk); in disable_noexec() 258 struct task_struct *tsk = current; in s390_enable_sie() local 262 if (tsk->mm->context.has_pgste) in s390_enable_sie() 266 task_lock(tsk); in s390_enable_sie() 267 if (!tsk->mm || atomic_read(&tsk->mm->mm_users) > 1 || in s390_enable_sie() 268 tsk->mm != tsk->active_mm || !hlist_empty(&tsk->mm->ioctx_list)) { in s390_enable_sie() 269 task_unlock(tsk); in s390_enable_sie() 272 task_unlock(tsk); in s390_enable_sie() 275 tsk->mm->context.alloc_pgste = 1; in s390_enable_sie() [all …]
|
/arch/x86/kernel/ |
D | i387.c | 118 int init_fpu(struct task_struct *tsk) in init_fpu() argument 120 if (tsk_used_math(tsk)) { in init_fpu() 121 if (HAVE_HWFP && tsk == current) in init_fpu() 122 unlazy_fpu(tsk); in init_fpu() 129 if (!tsk->thread.xstate) { in init_fpu() 130 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 132 if (!tsk->thread.xstate) in init_fpu() 138 memset(tsk->thread.xstate, 0, xstate_size); in init_fpu() 139 finit_task(tsk); in init_fpu() 140 set_stopped_child_used_math(tsk); in init_fpu() [all …]
|
/arch/ia64/include/asm/ |
D | thread_info.h | 44 #define INIT_THREAD_INFO(tsk) \ argument 46 .task = &tsk, \ 62 #define alloc_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) argument 63 #define task_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE)) argument 66 #define alloc_thread_info(tsk) ((struct thread_info *) 0) argument 67 #define task_thread_info(tsk) ((struct thread_info *) 0) argument 70 #define task_stack_page(tsk) ((void *)(tsk)) argument 88 #define free_task_struct(tsk) free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER) argument
|
/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 31 save_fpu(struct task_struct *tsk, struct pt_regs *regs) in save_fpu() argument 35 clear_tsk_thread_flag(tsk, TIF_USEDFPU); in save_fpu() 57 : "0" ((char *)(&tsk->thread.fpu.hard.status)), in save_fpu() 67 restore_fpu(struct task_struct *tsk) in restore_fpu() argument 91 : "0" (&tsk->thread.fpu), "r" (FPSCR_RCHG) in restore_fpu() 494 struct task_struct *tsk = current; in ieee_fpe_handler() local 496 if ((tsk->thread.fpu.hard.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler() 498 denormal_to_double (&tsk->thread.fpu.hard, in ieee_fpe_handler() 506 struct task_struct *tsk = current; in ieee_fpe_handler() local 513 hx = tsk->thread.fpu.hard.fp_regs[n]; in ieee_fpe_handler() [all …]
|
/arch/avr32/kernel/ |
D | ptrace.c | 25 static struct pt_regs *get_user_regs(struct task_struct *tsk) in get_user_regs() argument 27 return (struct pt_regs *)((unsigned long)task_stack_page(tsk) + in get_user_regs() 31 static void ptrace_single_step(struct task_struct *tsk) in ptrace_single_step() argument 34 tsk->pid, task_pt_regs(tsk)->pc, task_pt_regs(tsk)->sr); in ptrace_single_step() 48 set_tsk_thread_flag(tsk, TIF_BREAKPOINT); in ptrace_single_step() 49 set_tsk_thread_flag(tsk, TIF_SINGLE_STEP); in ptrace_single_step() 68 static int ptrace_read_user(struct task_struct *tsk, unsigned long offset, in ptrace_read_user() argument 79 regs = (unsigned long *)get_user_regs(tsk); in ptrace_read_user() 86 tsk->comm, tsk->pid, offset, data, value); in ptrace_read_user() 96 static int ptrace_write_user(struct task_struct *tsk, unsigned long offset, in ptrace_write_user() argument [all …]
|
/arch/h8300/include/asm/ |
D | processor.h | 114 #define prepare_to_copy(tsk) do { } while (0) argument 126 unsigned long thread_saved_pc(struct task_struct *tsk); 129 #define KSTK_EIP(tsk) \ argument 132 if ((tsk)->thread.esp0 > PAGE_SIZE && \ 133 MAP_NR((tsk)->thread.esp0) < max_mapnr) \ 134 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ 136 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp) argument
|
/arch/m68k/include/asm/ |
D | processor_mm.h | 104 #define prepare_to_copy(tsk) do { } while (0) argument 115 extern unsigned long thread_saved_pc(struct task_struct *tsk); 119 #define KSTK_EIP(tsk) \ argument 122 if ((tsk)->thread.esp0 > PAGE_SIZE && \ 123 (virt_addr_valid((tsk)->thread.esp0))) \ 124 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ 126 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp) argument
|
D | processor_no.h | 118 #define prepare_to_copy(tsk) do { } while (0) argument 129 unsigned long thread_saved_pc(struct task_struct *tsk); 132 #define KSTK_EIP(tsk) \ argument 135 if ((tsk)->thread.esp0 > PAGE_SIZE && \ 136 (virt_addr_valid((tsk)->thread.esp0))) \ 137 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ 139 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp) argument
|
/arch/sparc/include/asm/ |
D | processor_32.h | 109 #define release_thread(tsk) do { } while(0) argument 113 #define prepare_to_copy(tsk) do { } while (0) argument 117 #define task_pt_regs(tsk) ((tsk)->thread.kregs) argument 118 #define KSTK_EIP(tsk) ((tsk)->thread.kregs->pc) argument 119 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->u_regs[UREG_FP]) argument
|
/arch/mips/kernel/ |
D | stacktrace.c | 36 struct task_struct *tsk, struct pt_regs *regs) in save_context_stack() argument 45 (unsigned long)task_stack_page(tsk); in save_context_stack() 58 pc = unwind_stack(tsk, &sp, pc, &ra); in save_context_stack() 74 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument 81 if (tsk != current) { in save_stack_trace_tsk() 82 regs->regs[29] = tsk->thread.reg29; in save_stack_trace_tsk() 84 regs->cp0_epc = tsk->thread.reg31; in save_stack_trace_tsk() 87 save_context_stack(trace, tsk, regs); in save_stack_trace_tsk()
|