| /Linux-v5.10/arch/microblaze/kernel/ | 
| D | asm-offsets.c | 93 	DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context));  in main() 98 	DEFINE(CC_R1, offsetof(struct cpu_context, r1)); /* r1 */  in main() 99 	DEFINE(CC_R2, offsetof(struct cpu_context, r2));  in main() 101 	DEFINE(CC_R13, offsetof(struct cpu_context, r13));  in main() 102 	DEFINE(CC_R14, offsetof(struct cpu_context, r14));  in main() 103 	DEFINE(CC_R15, offsetof(struct cpu_context, r15));  in main() 104 	DEFINE(CC_R16, offsetof(struct cpu_context, r16));  in main() 105 	DEFINE(CC_R17, offsetof(struct cpu_context, r17));  in main() 106 	DEFINE(CC_R18, offsetof(struct cpu_context, r18));  in main() 108 	DEFINE(CC_R19, offsetof(struct cpu_context, r19));  in main() [all …] 
 | 
| D | process.c | 66 		memset(&ti->cpu_context, 0, sizeof(struct cpu_context));  in copy_thread() 67 		ti->cpu_context.r1  = (unsigned long)childregs;  in copy_thread() 68 		ti->cpu_context.r20 = (unsigned long)usp; /* fn */  in copy_thread() 69 		ti->cpu_context.r19 = (unsigned long)arg;  in copy_thread() 73 		ti->cpu_context.msr = childregs->msr & ~MSR_IE;  in copy_thread() 75 		ti->cpu_context.r15 = (unsigned long)ret_from_kernel_thread - 8;  in copy_thread() 82 	memset(&ti->cpu_context, 0, sizeof(struct cpu_context));  in copy_thread() 83 	ti->cpu_context.r1 = (unsigned long)childregs;  in copy_thread() 85 	ti->cpu_context.msr = (unsigned long)childregs->msr;  in copy_thread() 105 	ti->cpu_context.msr = (childregs->msr|MSR_VM);  in copy_thread() [all …] 
 | 
| D | unwind.c | 303 			const struct cpu_context *cpu_context =  in microblaze_unwind()  local 304 				&thread_info->cpu_context;  in microblaze_unwind() 308 						cpu_context->r1,  in microblaze_unwind() 309 						cpu_context->r15,  in microblaze_unwind()
  | 
| /Linux-v5.10/arch/arm64/kernel/ | 
| D | kgdb.c | 130 	struct cpu_context *cpu_context = &task->thread.cpu_context;  in sleeping_thread_to_gdb_regs()  local 135 	gdb_regs[19] = cpu_context->x19;  in sleeping_thread_to_gdb_regs() 136 	gdb_regs[20] = cpu_context->x20;  in sleeping_thread_to_gdb_regs() 137 	gdb_regs[21] = cpu_context->x21;  in sleeping_thread_to_gdb_regs() 138 	gdb_regs[22] = cpu_context->x22;  in sleeping_thread_to_gdb_regs() 139 	gdb_regs[23] = cpu_context->x23;  in sleeping_thread_to_gdb_regs() 140 	gdb_regs[24] = cpu_context->x24;  in sleeping_thread_to_gdb_regs() 141 	gdb_regs[25] = cpu_context->x25;  in sleeping_thread_to_gdb_regs() 142 	gdb_regs[26] = cpu_context->x26;  in sleeping_thread_to_gdb_regs() 143 	gdb_regs[27] = cpu_context->x27;  in sleeping_thread_to_gdb_regs() [all …] 
 | 
| D | process.c | 388 	memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context));  in copy_thread() 436 		p->thread.cpu_context.x19 = stack_start;  in copy_thread() 437 		p->thread.cpu_context.x20 = stk_sz;  in copy_thread() 439 	p->thread.cpu_context.pc = (unsigned long)ret_from_fork;  in copy_thread() 440 	p->thread.cpu_context.sp = (unsigned long)childregs;  in copy_thread()
  | 
| /Linux-v5.10/arch/arm/kernel/ | 
| D | kgdb.c | 91 	gdb_regs[_R4]		= ti->cpu_context.r4;  in sleeping_thread_to_gdb_regs() 92 	gdb_regs[_R5]		= ti->cpu_context.r5;  in sleeping_thread_to_gdb_regs() 93 	gdb_regs[_R6]		= ti->cpu_context.r6;  in sleeping_thread_to_gdb_regs() 94 	gdb_regs[_R7]		= ti->cpu_context.r7;  in sleeping_thread_to_gdb_regs() 95 	gdb_regs[_R8]		= ti->cpu_context.r8;  in sleeping_thread_to_gdb_regs() 96 	gdb_regs[_R9]		= ti->cpu_context.r9;  in sleeping_thread_to_gdb_regs() 97 	gdb_regs[_R10]		= ti->cpu_context.sl;  in sleeping_thread_to_gdb_regs() 98 	gdb_regs[_FP]		= ti->cpu_context.fp;  in sleeping_thread_to_gdb_regs() 99 	gdb_regs[_SPT]		= ti->cpu_context.sp;  in sleeping_thread_to_gdb_regs() 100 	gdb_regs[_PC]		= ti->cpu_context.pc;  in sleeping_thread_to_gdb_regs()
  | 
| D | xscale-cp0.c | 39 		thread->cpu_context.extra[0] = 0;  in dsp_do() 40 		thread->cpu_context.extra[1] = 0;  in dsp_do() 44 		dsp_save_state(current_thread_info()->cpu_context.extra);  in dsp_do() 45 		dsp_load_state(thread->cpu_context.extra);  in dsp_do()
  | 
| D | process.c | 234 	memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save));  in copy_thread() 253 		thread->cpu_context.r4 = stk_sz;  in copy_thread() 254 		thread->cpu_context.r5 = stack_start;  in copy_thread() 257 	thread->cpu_context.pc = (unsigned long)ret_from_fork;  in copy_thread() 258 	thread->cpu_context.sp = (unsigned long)childregs;  in copy_thread()
  | 
| /Linux-v5.10/arch/mips/mm/ | 
| D | tlb-r3k.c | 76 	if (cpu_context(cpu, mm) != 0) {  in local_flush_tlb_range() 81 			cpu_context(cpu, mm) & asid_mask, start, end);  in local_flush_tlb_range() 87 			int newpid = cpu_context(cpu, mm) & asid_mask;  in local_flush_tlb_range() 154 	if (cpu_context(cpu, vma->vm_mm) != 0) {  in local_flush_tlb_page() 159 		printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page);  in local_flush_tlb_page() 161 		newpid = cpu_context(cpu, vma->vm_mm) & asid_mask;  in local_flush_tlb_page() 196 	if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) {  in __update_tlb() 198 		       (cpu_context(cpu, vma->vm_mm)), pid);  in __update_tlb()
  | 
| D | context.c | 59 	if (!asid_versions_eq(cpu, cpu_context(cpu, mm), asid_cache(cpu)))  in check_mmu_context() 129 	mmid = cpu_context(0, mm);  in get_new_mmid() 209 	ctx = cpu_context(cpu, mm);  in check_switch_mmu_context() 216 		ctx = cpu_context(cpu, mm);  in check_switch_mmu_context()
  | 
| D | c-tx39.c | 152 	if (cpu_context(smp_processor_id(), mm) != 0)  in tx39_flush_cache_mm() 161 	if (!(cpu_context(smp_processor_id(), vma->vm_mm)))  in tx39_flush_cache_range() 178 	if (cpu_context(smp_processor_id(), mm) == 0)  in tx39_flush_cache_page()
  | 
| D | c-r3k.c | 246 		 cpu_context(smp_processor_id(), mm), addr);  in r3k_flush_cache_page() 249 	if (cpu_context(smp_processor_id(), mm) == 0)  in r3k_flush_cache_page()
  | 
| /Linux-v5.10/drivers/hv/ | 
| D | hv.c | 33 	hv_context.cpu_context = alloc_percpu(struct hv_per_cpu_context);  in hv_init() 34 	if (!hv_context.cpu_context)  in hv_init() 55 	hv_cpu = get_cpu_ptr(hv_context.cpu_context);  in hv_post_message() 85 		hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu);  in hv_synic_alloc() 97 		hv_cpu = per_cpu_ptr(hv_context.cpu_context, cpu);  in hv_synic_alloc() 138 			= per_cpu_ptr(hv_context.cpu_context, cpu);  in hv_synic_free() 158 		= per_cpu_ptr(hv_context.cpu_context, cpu);  in hv_synic_enable_regs()
  | 
| /Linux-v5.10/arch/sh/include/asm/ | 
| D | mmu_context.h | 40 #define cpu_context(cpu, mm)	((mm)->context.id[cpu])  macro 43 	(cpu_context((cpu), (mm)) & MMU_CONTEXT_ASID_MASK) 60 	if (((cpu_context(cpu, mm) ^ asid) & MMU_CONTEXT_VERSION_MASK) == 0)  in get_mmu_context() 80 	cpu_context(cpu, mm) = asid_cache(cpu) = asid;  in get_mmu_context() 93 		cpu_context(i, mm) = NO_CONTEXT;  in init_new_context()
  | 
| /Linux-v5.10/arch/arm/include/asm/ | 
| D | thread_info.h | 56 	struct cpu_context_save	cpu_context;	/* cpu context */  member 90 	((unsigned long)(task_thread_info(tsk)->cpu_context.pc)) 92 	((unsigned long)(task_thread_info(tsk)->cpu_context.sp)) 96 	((unsigned long)(task_thread_info(tsk)->cpu_context.fp)) 99 	((unsigned long)(task_thread_info(tsk)->cpu_context.r7))
  | 
| /Linux-v5.10/arch/sh/mm/ | 
| D | tlbflush_32.c | 19 	if (vma->vm_mm && cpu_context(cpu, vma->vm_mm) != NO_CONTEXT) {  in local_flush_tlb_page() 45 	if (cpu_context(cpu, mm) != NO_CONTEXT) {  in local_flush_tlb_range() 52 			cpu_context(cpu, mm) = NO_CONTEXT;  in local_flush_tlb_range() 112 	if (cpu_context(cpu, mm) != NO_CONTEXT) {  in local_flush_tlb_mm() 116 		cpu_context(cpu, mm) = NO_CONTEXT;  in local_flush_tlb_mm()
  | 
| D | cache-sh4.c | 191 	if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT)  in sh4_flush_cache_mm() 220 	if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT)  in sh4_flush_cache_page() 281 	if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT)  in sh4_flush_cache_range()
  | 
| /Linux-v5.10/arch/nds32/kernel/ | 
| D | process.c | 157 	memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context));  in copy_thread() 162 		p->thread.cpu_context.r6 = stack_start;  in copy_thread() 164 		p->thread.cpu_context.r7 = stk_sz;  in copy_thread() 176 	p->thread.cpu_context.pc = (unsigned long)ret_from_fork;  in copy_thread() 177 	p->thread.cpu_context.sp = (unsigned long)childregs;  in copy_thread()
  | 
| /Linux-v5.10/arch/nds32/include/asm/ | 
| D | processor.h | 17 struct cpu_context {  struct 33 	struct cpu_context cpu_context;	/* cpu context */  argument
  | 
| D | thread_info.h | 35 #define thread_saved_pc(tsk) ((unsigned long)(tsk->thread.cpu_context.pc)) 36 #define thread_saved_fp(tsk) ((unsigned long)(tsk->thread.cpu_context.fp))
  | 
| /Linux-v5.10/arch/microblaze/include/asm/ | 
| D | thread_info.h | 28 struct cpu_context {  struct 71 	struct cpu_context	cpu_context;  argument
  | 
| /Linux-v5.10/arch/arm64/include/asm/ | 
| D | thread_info.h | 51 	((unsigned long)(tsk->thread.cpu_context.pc)) 53 	((unsigned long)(tsk->thread.cpu_context.sp)) 55 	((unsigned long)(tsk->thread.cpu_context.fp))
  | 
| D | processor.h | 114 struct cpu_context {  struct 131 	struct cpu_context	cpu_context;	/* cpu context */  argument
  | 
| /Linux-v5.10/arch/mips/include/asm/ | 
| D | mmu_context.h | 106 static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm)  in cpu_context()  function 125 	(cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu])) 202 	ctx = cpu_context(cpu, mm);  in drop_mmu_context()
  | 
| /Linux-v5.10/arch/sh/kernel/ | 
| D | smp.c | 370 				cpu_context(i, mm) = 0;  in flush_tlb_mm() 407 				cpu_context(i, mm) = 0;  in flush_tlb_range() 450 				cpu_context(i, vma->vm_mm) = 0;  in flush_tlb_page()
  |