Home
last modified time | relevance | path

Searched refs:sctlr (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/arch/arm64/kvm/hyp/
Dexception.c94 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 …]
/linux-6.12.1/drivers/firmware/efi/libstub/
Darm32-stub.c14 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()
/linux-6.12.1/arch/arm64/kernel/
Dpointer_auth.c70 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()
Dmte.c176 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()
Dprocess.c556 void update_sctlr_el1(u64 sctlr) in update_sctlr_el1() argument
562 sysreg_clear_set(sctlr_el1, SCTLR_USER_MASK & ~SCTLR_ELx_ENIA, sctlr); in update_sctlr_el1()
/linux-6.12.1/drivers/spi/
Dspi-sprd.c292 struct spi_controller *sctlr = sdev->controller; in sprd_spi_chipselect() local
293 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_chipselect()
788 static int sprd_spi_transfer_one(struct spi_controller *sctlr, in sprd_spi_transfer_one() argument
798 if (sctlr->can_dma(sctlr, sdev, t)) in sprd_spi_transfer_one()
809 spi_finalize_current_transfer(sctlr); in sprd_spi_transfer_one()
889 static bool sprd_spi_can_dma(struct spi_controller *sctlr, in sprd_spi_can_dma() argument
892 struct sprd_spi *ss = spi_controller_get_devdata(sctlr); in sprd_spi_can_dma()
920 struct spi_controller *sctlr; in sprd_spi_probe() local
926 sctlr = spi_alloc_host(&pdev->dev, sizeof(*ss)); in sprd_spi_probe()
927 if (!sctlr) in sprd_spi_probe()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dtlb.c16 u64 sctlr; member
92 val = cxt->sctlr = read_sysreg_el1(SYS_SCTLR); in enter_vmid_context()
100 cxt->sctlr = SCTLR_ELx_M; in enter_vmid_context()
139 if (!(cxt->sctlr & SCTLR_ELx_M)) { in exit_vmid_context()
140 write_sysreg_el1(cxt->sctlr, SYS_SCTLR); in exit_vmid_context()
/linux-6.12.1/arch/arm64/kvm/
Dat.c93 u64 hcr, sctlr, tcr, tg, ps, ia_bits, ttbr; in setup_s1_walk() local
111 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1); in setup_s1_walk()
119 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL2); in setup_s1_walk()
162 if (!(sctlr & SCTLR_ELx_M)) in setup_s1_walk()
175 wi->be = sctlr & SCTLR_ELx_EE; in setup_s1_walk()
415 u64 sctlr; member
427 config->sctlr = read_sysreg_el1(SYS_SCTLR); in __mmu_config_save()
447 write_sysreg_el1(config->sctlr, SYS_SCTLR); in __mmu_config_restore()
705 u64 mair, sctlr; in compute_par_s1() local
717 sctlr = (regime == TR_EL10 ? in compute_par_s1()
[all …]
Dpauth.c158 u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL2); in kvm_auth_eretax() local
167 if (!(sctlr & SCTLR_EL1_EnIB)) in kvm_auth_eretax()
173 if (!(sctlr & SCTLR_EL1_EnIA)) in kvm_auth_eretax()
/linux-6.12.1/drivers/iommu/arm/arm-smmu/
Darm-smmu-qcom-debug.c145 u32 sctlr_orig, sctlr; in qcom_tbu_halt() local
154 sctlr = sctlr_orig & ~(ARM_SMMU_SCTLR_CFCFG | ARM_SMMU_SCTLR_CFIE); in qcom_tbu_halt()
155 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_SCTLR, sctlr); in qcom_tbu_halt()
270 u32 sctlr_orig, sctlr; in qcom_iova_to_phys() local
297 sctlr = sctlr_orig & ~(ARM_SMMU_SCTLR_CFCFG | ARM_SMMU_SCTLR_CFIE); in qcom_iova_to_phys()
298 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_SCTLR, sctlr); in qcom_iova_to_phys()
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dtlb.c17 u64 sctlr; member
46 val = cxt->sctlr = read_sysreg_el1(SYS_SCTLR); in enter_vmid_context()
86 write_sysreg_el1(cxt->sctlr, SYS_SCTLR); in exit_vmid_context()
/linux-6.12.1/arch/arm64/kernel/pi/
Dmap_kernel.c137 u64 sctlr = read_sysreg(sctlr_el1); in set_ttbr0_for_lpa2() local
150 :: "r"(sctlr & ~SCTLR_ELx_M), "r"(ttbr), "r"(tcr), "r"(sctlr)); in set_ttbr0_for_lpa2()
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_emulate.h455 u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1); in kvm_vcpu_set_be() local
456 sctlr |= SCTLR_ELx_EE; in kvm_vcpu_set_be()
457 vcpu_write_sys_reg(vcpu, sctlr, SCTLR_EL1); in kvm_vcpu_set_be()
Dprocessor.h343 void update_sctlr_el1(u64 sctlr);