/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | arm32-stub.c | 14 static void get_cpu_state(u32 *cpsr, u32 *sctlr) in get_cpu_state() argument 18 asm("mrc p15, 4, %0, c1, c0, 0" : "=r"(*sctlr)); in get_cpu_state() 20 asm("mrc p15, 0, %0, c1, c0, 0" : "=r"(*sctlr)); in get_cpu_state() 26 u32 cpsr, sctlr; in check_platform_features() local 29 get_cpu_state(&cpsr, &sctlr); in check_platform_features() 33 (sctlr & 1) ? "en" : "dis"); in check_platform_features() 44 efi_entry_state->sctlr_before_ebs = sctlr; in check_platform_features()
|
/openbmc/linux/arch/arm64/kvm/hyp/ |
H A D | exception.c | 94 unsigned long sctlr, vbar, old, new, mode; in enter_exception64() local 111 sctlr = __vcpu_read_sys_reg(vcpu, SCTLR_EL1); in enter_exception64() 116 sctlr = __vcpu_read_sys_reg(vcpu, SCTLR_EL2); in enter_exception64() 146 if (!(sctlr & SCTLR_EL1_SPAN)) in enter_exception64() 157 if (sctlr & SCTLR_ELx_DSSBS) in enter_exception64() 194 u32 sctlr = __vcpu_read_sys_reg(vcpu, SCTLR_EL1); in get_except32_cpsr() local 214 if (sctlr & BIT(31)) in get_except32_cpsr() 221 if (!(sctlr & BIT(23))) in get_except32_cpsr() 237 if (sctlr & BIT(25)) in get_except32_cpsr() 264 if (sctlr & BIT(30)) in get_except32_cpsr() [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | hflags.c | 36 if (sctlr & SCTLR_A) { in aprofile_require_alignment() 54 if (sctlr & SCTLR_M) { in aprofile_require_alignment() 161 uint64_t sctlr = arm_sctlr(env, el); in rebuild_hflags_a32() local 163 if (aprofile_require_alignment(env, el, sctlr)) { in rebuild_hflags_a32() 211 uint64_t sctlr; in rebuild_hflags_a64() local 262 sctlr = regime_sctlr(env, stage1); in rebuild_hflags_a64() 264 if (aprofile_require_alignment(env, el, sctlr)) { in rebuild_hflags_a64() 268 if (arm_cpu_data_is_big_endian_a64(el, sctlr)) { in rebuild_hflags_a64() 286 if (sctlr & (el == 0 ? SCTLR_BT0 : SCTLR_BT1)) { in rebuild_hflags_a64() 292 if (sctlr & SCTLR_nAA) { in rebuild_hflags_a64() [all …]
|
H A D | mte_helper.c | 599 uint64_t sctlr; in mte_check_fail() local 602 sctlr = env->cp15.sctlr_el[reg_el]; in mte_check_fail() 608 tcf = extract64(sctlr, 38, 2); in mte_check_fail() 612 tcf = extract64(sctlr, 40, 2); in mte_check_fail()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | pointer_auth.c | 70 u64 sctlr; in ptrauth_set_enabled_keys() local 82 sctlr = tsk->thread.sctlr_user; in ptrauth_set_enabled_keys() 83 sctlr &= ~arg_to_enxx_mask(keys); in ptrauth_set_enabled_keys() 84 sctlr |= arg_to_enxx_mask(enabled); in ptrauth_set_enabled_keys() 85 tsk->thread.sctlr_user = sctlr; in ptrauth_set_enabled_keys() 87 update_sctlr_el1(sctlr); in ptrauth_set_enabled_keys()
|
H A D | mte.c | 176 unsigned long sctlr = task->thread.sctlr_user; in mte_update_sctlr_user() local 186 sctlr &= ~SCTLR_EL1_TCF0_MASK; in mte_update_sctlr_user() 193 sctlr |= SYS_FIELD_PREP_ENUM(SCTLR_EL1, TCF0, ASYMM); in mte_update_sctlr_user() 195 sctlr |= SYS_FIELD_PREP_ENUM(SCTLR_EL1, TCF0, ASYNC); in mte_update_sctlr_user() 197 sctlr |= SYS_FIELD_PREP_ENUM(SCTLR_EL1, TCF0, SYNC); in mte_update_sctlr_user() 198 task->thread.sctlr_user = sctlr; in mte_update_sctlr_user()
|
H A D | process.c | 507 void update_sctlr_el1(u64 sctlr) in update_sctlr_el1() argument 513 sysreg_clear_set(sctlr_el1, SCTLR_USER_MASK & ~SCTLR_ELx_ENIA, sctlr); in update_sctlr_el1()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-sprd.c | 798 if (sctlr->can_dma(sctlr, sdev, t)) in sprd_spi_transfer_one() 809 spi_finalize_current_transfer(sctlr); in sprd_spi_transfer_one() 920 struct spi_controller *sctlr; in sprd_spi_probe() local 927 if (!sctlr) in sprd_spi_probe() 941 sctlr->bus_num = pdev->id; in sprd_spi_probe() 942 sctlr->set_cs = sprd_spi_chipselect; in sprd_spi_probe() 944 sctlr->can_dma = sprd_spi_can_dma; in sprd_spi_probe() 945 sctlr->auto_runtime_pm = true; in sprd_spi_probe() 950 platform_set_drvdata(pdev, sctlr); in sprd_spi_probe() 998 spi_controller_put(sctlr); in sprd_spi_probe() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/vhe/ |
H A D | tlb.c | 16 u64 sctlr; member 39 val = cxt->sctlr = read_sysreg_el1(SYS_SCTLR); in __tlb_switch_to_guest() 76 write_sysreg_el1(cxt->sctlr, SYS_SCTLR); in __tlb_switch_to_host()
|
/openbmc/u-boot/arch/arm/cpu/armv8/ |
H A D | cache_v8.c | 476 uint32_t sctlr; in dcache_disable() local 478 sctlr = get_sctlr(); in dcache_disable() 481 if (!(sctlr & CR_C)) in dcache_disable() 484 set_sctlr(sctlr & ~(CR_C|CR_M)); in dcache_disable()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_emulate.h | 476 u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1); in kvm_vcpu_set_be() local 477 sctlr |= SCTLR_ELx_EE; in kvm_vcpu_set_be() 478 vcpu_write_sys_reg(vcpu, sctlr, SCTLR_EL1); in kvm_vcpu_set_be()
|
H A D | processor.h | 335 void update_sctlr_el1(u64 sctlr);
|
/openbmc/u-boot/arch/arm/cpu/armv7/ |
H A D | Makefile | 16 obj-$(CONFIG_EFI_LOADER) += sctlr.o
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | board.c | 33 uint32_t sctlr; member
|
/openbmc/qemu/include/hw/xen/interface/ |
H A D | arch-arm.h | 283 uint64_t sctlr; member
|
/openbmc/qemu/target/arm/ |
H A D | internals.h | 1350 uint64_t sctlr) in allocation_tag_access_enabled() argument 1363 sctlr &= (el == 0 ? SCTLR_ATA0 : SCTLR_ATA); in allocation_tag_access_enabled() 1364 return sctlr != 0; in allocation_tag_access_enabled()
|
H A D | cpu.h | 3046 static inline bool arm_cpu_data_is_big_endian_a64(int el, uint64_t sctlr) in arm_cpu_data_is_big_endian_a64() argument 3048 return sctlr & (el ? SCTLR_EE : SCTLR_E0E); in arm_cpu_data_is_big_endian_a64() 3058 uint64_t sctlr = arm_sctlr(env, cur_el); in arm_cpu_data_is_big_endian() local 3059 return arm_cpu_data_is_big_endian_a64(cur_el, sctlr); in arm_cpu_data_is_big_endian()
|
H A D | helper.c | 7316 uint64_t sctlr = arm_sctlr(env, el); in access_tpidr2() local 7317 if (!(sctlr & SCTLR_EnTP2)) { in access_tpidr2() 8478 uint64_t sctlr = arm_sctlr(env, el); in access_predinv() local 8479 if (!(sctlr & SCTLR_EnRCTX)) { in access_predinv() 9837 ARMCPRegInfo sctlr = { in register_cp_regs_for_features() local 9854 sctlr.type |= ARM_CP_SUPPRESS_TB_END; in register_cp_regs_for_features() 9856 define_one_arm_cp_reg(cpu, &sctlr); in register_cp_regs_for_features() 10592 if ((A32_BANKED_CURRENT_REG_GET(env, sctlr) & SCTLR_NMFI) && in cpsr_write() 11152 (A32_BANKED_CURRENT_REG_GET(env, sctlr) & SCTLR_TE) != 0; in take_aarch32_exception() 11428 } else if (A32_BANKED_CURRENT_REG_GET(env, sctlr) & SCTLR_V) { in arm_cpu_do_interrupt_aarch32()
|
H A D | cpu.c | 372 if (A32_BANKED_CURRENT_REG_GET(env, sctlr) & SCTLR_V) { in arm_cpu_reset_hold()
|
/openbmc/libcper/specification/document/ |
H A D | cper-json-specification.tex | 1006 sctlr\_ns & uint64 & Register SCTLR (NS). \texttt{UINT32} value null extended to \texttt{UINT64}.\\ 1079 sctlr\_s & uint64 & Register SCTLR\_S. \texttt{UINT32} value null extended to \texttt{UINT64}.\\ 1173 sctlr\_el1 & uint64 & Register SCTLR (EL1).\\ 1213 sctlr\_el2 & uint64 & Register SCTLR (EL2).\\ 1243 sctlr\_el3 & uint64 & Register SCTLR (EL3).\\
|