Home
last modified time | relevance | path

Searched refs:spsr (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/drivers/spi/
Dspi-rspi.c191 u8 spsr; member
464 rspi->spsr = rspi_read8(rspi, RSPI_SPSR); in rspi_wait_for_interrupt()
465 if (rspi->spsr & wait_mask) in rspi_wait_for_interrupt()
469 ret = wait_event_timeout(rspi->wait, rspi->spsr & wait_mask, HZ); in rspi_wait_for_interrupt()
470 if (ret == 0 && !(rspi->spsr & wait_mask)) in rspi_wait_for_interrupt()
653 u8 spsr; in rspi_receive_init() local
655 spsr = rspi_read8(rspi, RSPI_SPSR); in rspi_receive_init()
656 if (spsr & SPSR_SPRF) in rspi_receive_init()
658 if (spsr & SPSR_OVRF) in rspi_receive_init()
672 u8 spsr; in qspi_receive_init() local
[all …]
Dspi-loongson-core.c118 loongson_spi->spsr, (loongson_spi->spsr & in loongson_spi_write_read_8bit()
244 loongson_spi->spsr = loongson_spi_read_reg(loongson_spi, LOONGSON_SPI_SPSR_REG); in loongson_spi_suspend()
262 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_SPSR_REG, loongson_spi->spsr); in loongson_spi_resume()
Dspi-loongson.h39 unsigned char spsr; member
Dspi-topcliff-pch.c270 void __iomem *spsr; in pch_spi_handler_sub() local
274 spsr = io_remap_addr + PCH_SPSR; in pch_spi_handler_sub()
275 iowrite32(reg_spsr_val, spsr); in pch_spi_handler_sub()
340 void __iomem *spsr; in pch_spi_handler() local
353 spsr = io_remap_addr + PCH_SPSR; in pch_spi_handler()
355 reg_spsr_val = ioread32(spsr); in pch_spi_handler()
/linux-6.6.21/arch/arm64/kvm/hyp/vhe/
Dswitch.c296 static void __hyp_call_panic(u64 spsr, u64 elr, u64 par) in __hyp_call_panic() argument
308 spsr, elr, in __hyp_call_panic()
316 u64 spsr = read_sysreg_el2(SYS_SPSR); in hyp_panic() local
320 __hyp_call_panic(spsr, elr, par); in hyp_panic()
/linux-6.6.21/arch/arm64/kvm/hyp/
Dexception.c288 unsigned long spsr = *vcpu_cpsr(vcpu); in enter_exception32() local
289 bool is_thumb = (spsr & PSR_AA32_T_BIT); in enter_exception32()
300 __vcpu_write_spsr_abt(vcpu, host_spsr_to_spsr32(spsr)); in enter_exception32()
305 __vcpu_write_spsr_und(vcpu, host_spsr_to_spsr32(spsr)); in enter_exception32()
/linux-6.6.21/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c129 case KVM_REG_ARM_CORE_REG(spsr[0]) ... in core_id_to_str()
130 KVM_REG_ARM_CORE_REG(spsr[KVM_NR_SPSR - 1]): in core_id_to_str()
131 idx = (core_off - KVM_REG_ARM_CORE_REG(spsr[0])) / CORE_SPSR_XX_NR_WORDS; in core_id_to_str()
309 KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(spsr[0]),
310 KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(spsr[1]),
311 KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(spsr[2]),
312 KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(spsr[3]),
313 KVM_REG_ARM64 | KVM_REG_SIZE_U64 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(spsr[4]),
/linux-6.6.21/arch/arm64/include/asm/
Dkvm_emulate.h269 static inline unsigned long host_spsr_to_spsr32(unsigned long spsr) in host_spsr_to_spsr32() argument
272 unsigned long dit = !!(spsr & PSR_AA32_DIT_BIT); in host_spsr_to_spsr32()
274 spsr &= ~overlap; in host_spsr_to_spsr32()
276 spsr |= dit << 21; in host_spsr_to_spsr32()
278 return spsr; in host_spsr_to_spsr32()
Dkvm_asm.h260 u64 spsr, elr; \
272 : "+r" (__kvm_at_err), "=&r" (spsr), "=&r" (elr) \
293 void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr, u64 elr_virt,
Dkvm_hyp.h124 void __noreturn __hyp_do_panic(struct kvm_cpu_context *host_ctxt, u64 spsr,
/linux-6.6.21/arch/arm64/kvm/
Dhandle_exit.c386 void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr, in nvhe_hyp_panic_handler() argument
392 u64 mode = spsr & PSR_MODE_MASK; in nvhe_hyp_panic_handler()
433 spsr, elr_virt, esr, far, hpfar, par, vcpu); in nvhe_hyp_panic_handler()
Dguest.c88 case KVM_REG_ARM_CORE_REG(spsr[0]) ... in core_reg_size_from_offset()
89 KVM_REG_ARM_CORE_REG(spsr[KVM_NR_SPSR - 1]): in core_reg_size_from_offset()
154 case KVM_REG_ARM_CORE_REG(spsr[KVM_SPSR_EL1]): in core_reg_addr()
157 case KVM_REG_ARM_CORE_REG(spsr[KVM_SPSR_ABT]): in core_reg_addr()
160 case KVM_REG_ARM_CORE_REG(spsr[KVM_SPSR_UND]): in core_reg_addr()
163 case KVM_REG_ARM_CORE_REG(spsr[KVM_SPSR_IRQ]): in core_reg_addr()
166 case KVM_REG_ARM_CORE_REG(spsr[KVM_SPSR_FIQ]): in core_reg_addr()
Demulate-nested.c1871 static u64 kvm_check_illegal_exception_return(struct kvm_vcpu *vcpu, u64 spsr) in kvm_check_illegal_exception_return() argument
1873 u64 mode = spsr & PSR_MODE_MASK; in kvm_check_illegal_exception_return()
1884 (spsr & PSR_MODE32_BIT) || in kvm_check_illegal_exception_return()
1893 spsr = *vcpu_cpsr(vcpu); in kvm_check_illegal_exception_return()
1895 spsr &= (PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT | in kvm_check_illegal_exception_return()
1898 spsr |= PSR_IL_BIT; in kvm_check_illegal_exception_return()
1901 return spsr; in kvm_check_illegal_exception_return()
1906 u64 spsr, elr, mode; in kvm_emulate_nested_eret() local
1916 spsr = vcpu_read_sys_reg(vcpu, SPSR_EL2); in kvm_emulate_nested_eret()
1917 spsr = kvm_check_illegal_exception_return(vcpu, spsr); in kvm_emulate_nested_eret()
[all …]
/linux-6.6.21/arch/arm64/kernel/
Dsignal32.c320 compat_ulong_t spsr = regs->pstate & ~(PSR_f | PSR_AA32_E_BIT); in compat_setup_return() local
327 spsr |= PSR_AA32_T_BIT; in compat_setup_return()
329 spsr &= ~PSR_AA32_T_BIT; in compat_setup_return()
332 spsr &= ~PSR_AA32_IT_MASK; in compat_setup_return()
335 spsr |= PSR_AA32_ENDSTATE; in compat_setup_return()
354 regs->pstate = spsr; in compat_setup_return()
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dswitch.c362 u64 spsr = read_sysreg_el2(SYS_SPSR); in hyp_panic() local
382 __hyp_do_panic(host_ctxt, spsr, elr, par); in hyp_panic()
/linux-6.6.21/arch/arm/kernel/
Dentry-armv.S320 mrs r2, spsr @ Save spsr_abt, abort is now safe
842 * Enter in IRQ mode, spsr = SVC/USR CPSR, lr = SVC/USR PC
866 mrs lr, spsr
867 str lr, [sp, #8] @ save spsr
Dentry-common.S179 mrs saved_psr, spsr @ called from non-FIQ mode, so ok.
/linux-6.6.21/tools/arch/arm64/include/uapi/asm/
Dkvm.h57 __u64 spsr[KVM_NR_SPSR]; member
/linux-6.6.21/arch/arm64/include/uapi/asm/
Dkvm.h57 __u64 spsr[KVM_NR_SPSR]; member
/linux-6.6.21/arch/arm/boot/compressed/
Dhead.S488 mrs r0, spsr
644 mrs r0, spsr @ Get saved CPU boot mode
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c345 __le32 spsr; member
3060 le32_to_cpu(tr.cpsr), le32_to_cpu(tr.spsr), in brcmf_sdio_trap_info()
3074 le32_to_cpu(tr.cpsr), le32_to_cpu(tr.spsr), in brcmf_sdio_trap_info()
/linux-6.6.21/Documentation/virt/kvm/
Dapi.rst2536 0x6030 0000 0010 0048 SPSR_EL1 64 spsr[KVM_SPSR_EL1] (alias SPSR_SVC)
2537 0x6030 0000 0010 004a SPSR_ABT 64 spsr[KVM_SPSR_ABT]
2538 0x6030 0000 0010 004c SPSR_UND 64 spsr[KVM_SPSR_UND]
2539 0x6030 0000 0010 004e SPSR_IRQ 64 spsr[KVM_SPSR_IRQ]
2540 0x6060 0000 0010 0050 SPSR_FIQ 64 spsr[KVM_SPSR_FIQ]