Home
last modified time | relevance | path

Searched refs:thread_info (Results 1 – 25 of 166) sorted by relevance

1234567

/Linux-v4.19/arch/arm/include/asm/
Dthread_info.h49 struct thread_info { struct
86 static inline struct thread_info *current_thread_info(void) __attribute_const__; argument
88 static inline struct thread_info *current_thread_info(void) in current_thread_info()
90 return (struct thread_info *) in current_thread_info()
107 extern void crunch_task_disable(struct thread_info *);
108 extern void crunch_task_copy(struct thread_info *, void *);
109 extern void crunch_task_restore(struct thread_info *, void *);
110 extern void crunch_task_release(struct thread_info *);
112 extern void iwmmxt_task_disable(struct thread_info *);
113 extern void iwmmxt_task_copy(struct thread_info *, void *);
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dirq.h51 extern struct thread_info *critirq_ctx[NR_CPUS];
52 extern struct thread_info *dbgirq_ctx[NR_CPUS];
53 extern struct thread_info *mcheckirq_ctx[NR_CPUS];
62 extern struct thread_info *hardirq_ctx[NR_CPUS];
63 extern struct thread_info *softirq_ctx[NR_CPUS];
66 extern void call_do_softirq(struct thread_info *tp);
67 extern void call_do_irq(struct pt_regs *regs, struct thread_info *tp);
/Linux-v4.19/arch/xtensa/kernel/
Dasm-offsets.c85 OFFSET(TI_TASK, thread_info, task); in main()
86 OFFSET(TI_FLAGS, thread_info, flags); in main()
87 OFFSET(TI_STSTUS, thread_info, status); in main()
88 OFFSET(TI_CPU, thread_info, cpu); in main()
89 OFFSET(TI_PRE_COUNT, thread_info, preempt_count); in main()
90 OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); in main()
95 DEFINE(THREAD_CPENABLE, offsetof (struct thread_info, cpenable)); in main()
97 DEFINE(THREAD_XTREGS_CP0, offsetof (struct thread_info, xtregs_cp)); in main()
98 DEFINE(THREAD_XTREGS_CP1, offsetof (struct thread_info, xtregs_cp)); in main()
99 DEFINE(THREAD_XTREGS_CP2, offsetof (struct thread_info, xtregs_cp)); in main()
[all …]
/Linux-v4.19/arch/arm/kernel/
Dasm-offsets.c57 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
58 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
59 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
60 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
61 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
62 DEFINE(TI_CPU_DOMAIN, offsetof(struct thread_info, cpu_domain)); in main()
63 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
64 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
65 DEFINE(TI_TP_VALUE, offsetof(struct thread_info, tp_value)); in main()
66 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
[all …]
/Linux-v4.19/include/linux/
Dthread_info.h22 #define current_thread_info() ((struct thread_info *)current)
53 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag()
58 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag()
63 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag()
72 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag()
77 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag()
82 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag()
/Linux-v4.19/arch/sparc/kernel/
Dtraps_32.c373 if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) ||
374 TI_TASK != offsetof(struct thread_info, task) ||
375 TI_FLAGS != offsetof(struct thread_info, flags) ||
376 TI_CPU != offsetof(struct thread_info, cpu) ||
377 TI_PREEMPT != offsetof(struct thread_info, preempt_count) ||
378 TI_SOFTIRQ != offsetof(struct thread_info, softirq_count) ||
379 TI_HARDIRQ != offsetof(struct thread_info, hardirq_count) ||
380 TI_KSP != offsetof(struct thread_info, ksp) ||
381 TI_KPC != offsetof(struct thread_info, kpc) ||
382 TI_KPSR != offsetof(struct thread_info, kpsr) ||
[all …]
/Linux-v4.19/arch/um/include/asm/
Dthread_info.h19 struct thread_info { struct
28 struct thread_info *real_thread; /* Points to non-IRQ stack */ argument
44 static inline struct thread_info *current_thread_info(void) in current_thread_info() argument
46 struct thread_info *ti; in current_thread_info()
51 ti = (struct thread_info *) (((unsigned long)p) & ~mask); in current_thread_info()
/Linux-v4.19/arch/unicore32/kernel/
Dasm-offsets.c41 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
43 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
44 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
45 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
47 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
/Linux-v4.19/arch/powerpc/kernel/
Dkgdb.c153 static DEFINE_PER_CPU(struct thread_info, kgdb_thread_info);
156 struct thread_info *thread_info, *exception_thread_info; in kgdb_singlestep() local
157 struct thread_info *backup_current_thread_info = in kgdb_singlestep()
173 thread_info = (struct thread_info *)(regs->gpr[1] & ~(THREAD_SIZE-1)); in kgdb_singlestep()
176 if (thread_info != exception_thread_info) { in kgdb_singlestep()
178 memcpy(backup_current_thread_info, exception_thread_info, sizeof *thread_info); in kgdb_singlestep()
179 memcpy(exception_thread_info, thread_info, sizeof *thread_info); in kgdb_singlestep()
184 if (thread_info != exception_thread_info) in kgdb_singlestep()
186 memcpy(exception_thread_info, backup_current_thread_info, sizeof *thread_info); in kgdb_singlestep()
Dirq.c621 if (unlikely(sp < (sizeof(struct thread_info) + 2048))) { in check_stack_overflow()
623 sp - sizeof(struct thread_info)); in check_stack_overflow()
663 struct thread_info *curtp, *irqtp, *sirqtp; in do_IRQ()
708 struct thread_info *critirq_ctx[NR_CPUS] __read_mostly;
709 struct thread_info *dbgirq_ctx[NR_CPUS] __read_mostly;
710 struct thread_info *mcheckirq_ctx[NR_CPUS] __read_mostly;
714 struct thread_info *tp; in exc_lvl_ctx_init()
748 struct thread_info *softirq_ctx[NR_CPUS] __read_mostly;
749 struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly;
753 struct thread_info *tp; in irq_ctx_init()
[all …]
Dsetup_32.c208 softirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
210 hardirq_ctx[i] = (struct thread_info *) in irqstack_early_init()
229 critirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
232 dbgirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
234 mcheckirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
/Linux-v4.19/arch/openrisc/kernel/
Dasm-offsets.c53 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
54 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
56 DEFINE(TI_KSP, offsetof(struct thread_info, ksp)); in main()
Dprocess.c55 struct thread_info *current_thread_info_set[NR_CPUS] = { &init_thread_info, };
235 extern struct thread_info *_switch(struct thread_info *old_ti,
236 struct thread_info *new_ti);
243 struct thread_info *new_ti, *old_ti; in __switch_to()
/Linux-v4.19/arch/sh/include/asm/
Dthread_info.h29 struct thread_info { struct
70 static inline struct thread_info *current_thread_info(void) in current_thread_info()
72 struct thread_info *ti; in current_thread_info()
163 struct thread_info *ti = current_thread_info(); in set_thread_fault_code()
170 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
/Linux-v4.19/arch/sh/kernel/
Dasm-offsets.c24 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
25 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
26 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
27 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
28 DEFINE(TI_SIZE, sizeof(struct thread_info)); in main()
/Linux-v4.19/arch/ia64/include/asm/
Dthread_info.h24 struct thread_info { struct
57 #define current_thread_info() ((struct thread_info *) ((char *) current + IA64_TASK_SIZE)) argument
60 #define task_thread_info(tsk) ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))
62 #define current_thread_info() ((struct thread_info *) 0)
64 #define task_thread_info(tsk) ((struct thread_info *) 0)
/Linux-v4.19/arch/unicore32/include/asm/
Dswitch_to.h14 struct thread_info;
22 struct thread_info *, struct thread_info *);
Dthread_info.h67 struct thread_info { struct
93 static inline struct thread_info *current_thread_info(void) __attribute_const__; argument
95 static inline struct thread_info *current_thread_info(void) in current_thread_info()
98 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/microblaze/include/asm/
Dswitch_to.h13 struct thread_info;
15 extern struct task_struct *_switch_to(struct thread_info *prev,
16 struct thread_info *next);
/Linux-v4.19/arch/arm/vfp/
Dvfpmodule.c65 static bool vfp_state_in_hw(unsigned int cpu, struct thread_info *thread) in vfp_state_in_hw()
79 static void vfp_force_reload(unsigned int cpu, struct thread_info *thread) in vfp_force_reload()
93 static void vfp_thread_flush(struct thread_info *thread) in vfp_thread_flush()
121 static void vfp_thread_exit(struct thread_info *thread) in vfp_thread_exit()
132 static void vfp_thread_copy(struct thread_info *thread) in vfp_thread_copy()
134 struct thread_info *parent = current_thread_info(); in vfp_thread_copy()
164 struct thread_info *thread = v; in vfp_notifier()
459 struct thread_info *ti = current_thread_info(); in vfp_pm_suspend()
524 void vfp_sync_hwstate(struct thread_info *thread) in vfp_sync_hwstate()
543 void vfp_flush_hwstate(struct thread_info *thread) in vfp_flush_hwstate()
[all …]
/Linux-v4.19/arch/h8300/kernel/
Dasm-offsets.c62 OFFSET(TI_TASK, thread_info, task); in main()
63 OFFSET(TI_FLAGS, thread_info, flags); in main()
64 OFFSET(TI_CPU, thread_info, cpu); in main()
65 OFFSET(TI_PRE, thread_info, preempt_count); in main()
/Linux-v4.19/arch/m68k/include/asm/
Dthread_info.h27 struct thread_info { struct
46 static inline struct thread_info *current_thread_info(void) in current_thread_info() argument
48 struct thread_info *ti; in current_thread_info()
/Linux-v4.19/arch/c6x/include/asm/
Dthread_info.h41 struct thread_info { struct
65 struct thread_info *current_thread_info(void) in current_thread_info() argument
67 struct thread_info *ti; in current_thread_info()
/Linux-v4.19/arch/arc/include/asm/
Dthread_info.h42 struct thread_info { struct
65 static inline __attribute_const__ struct thread_info *current_thread_info(void) in current_thread_info() argument
68 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()
/Linux-v4.19/arch/nios2/include/asm/
Dthread_info.h40 struct thread_info { struct
67 static inline struct thread_info *current_thread_info(void) in current_thread_info() argument
71 return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); in current_thread_info()

1234567