Lines Matching refs:thread
258 current->thread.uw.tp_value = 0; in tls_thread_flush()
291 current->thread.gcspr_el0 = 0; in flush_gcs()
292 current->thread.gcs_base = 0; in flush_gcs()
293 current->thread.gcs_size = 0; in flush_gcs()
294 current->thread.gcs_el0_mode = 0; in flush_gcs()
307 p->thread.gcs_base = 0; in copy_thread_gcs()
308 p->thread.gcs_size = 0; in copy_thread_gcs()
310 p->thread.gcs_el0_mode = current->thread.gcs_el0_mode; in copy_thread_gcs()
311 p->thread.gcs_el0_locked = current->thread.gcs_el0_locked; in copy_thread_gcs()
362 dst->thread.fp_type = FP_STATE_FPSIMD; in arch_dup_task_struct()
363 dst->thread.sve_state = NULL; in arch_dup_task_struct()
373 dst->thread.sme_state = NULL; in arch_dup_task_struct()
375 dst->thread.svcr &= ~SVCR_ZA_MASK; in arch_dup_task_struct()
385 if (!thread_za_enabled(&src->thread)) in copy_thread_za()
388 dst->thread.sve_state = kzalloc(sve_state_size(src), in copy_thread_za()
390 if (!dst->thread.sve_state) in copy_thread_za()
393 dst->thread.sme_state = kmemdup(src->thread.sme_state, in copy_thread_za()
396 if (!dst->thread.sme_state) { in copy_thread_za()
397 kfree(dst->thread.sve_state); in copy_thread_za()
398 dst->thread.sve_state = NULL; in copy_thread_za()
403 dst->thread.svcr |= SVCR_ZA_MASK; in copy_thread_za()
418 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
442 p->thread.por_el0 = read_sysreg_s(SYS_POR_EL0); in copy_thread()
469 p->thread.tpidr2_el0 = read_sysreg_s(SYS_TPIDR2_EL0); in copy_thread()
474 p->thread.tpidr2_el0 = 0; in copy_thread()
475 WARN_ON_ONCE(p->thread.svcr & SVCR_ZA_MASK); in copy_thread()
484 p->thread.uw.tp_value = tls; in copy_thread()
501 p->thread.cpu_context.x19 = (unsigned long)args->fn; in copy_thread()
502 p->thread.cpu_context.x20 = (unsigned long)args->fn_arg; in copy_thread()
505 p->thread.por_el0 = POR_EL0_INIT; in copy_thread()
507 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
508 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
513 p->thread.cpu_context.fp = (unsigned long)&childregs->stackframe; in copy_thread()
524 current->thread.tpidr2_el0 = read_sysreg_s(SYS_TPIDR2_EL0); in tls_preserve_current_state()
532 write_sysreg(next->thread.uw.tp_value, tpidrro_el0); in tls_thread_switch()
538 write_sysreg_s(next->thread.tpidr2_el0, SYS_TPIDR2_EL0); in tls_thread_switch()
582 current->thread.gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_preserve_current_state()
592 write_sysreg_s(next->thread.gcspr_el0, SYS_GCSPR_EL0); in gcs_thread_switch()
594 if (current->thread.gcs_el0_mode != next->thread.gcs_el0_mode) in gcs_thread_switch()
672 current->thread.por_el0 = read_sysreg_s(SYS_POR_EL0); in permission_overlay_switch()
673 if (current->thread.por_el0 != next->thread.por_el0) { in permission_overlay_switch()
674 write_sysreg_s(next->thread.por_el0, SYS_POR_EL0); in permission_overlay_switch()
737 if (prev->thread.sctlr_user != next->thread.sctlr_user) in __switch_to()
738 update_sctlr_el1(next->thread.sctlr_user); in __switch_to()