Home
last modified time | relevance | path

Searched refs:cr0 (Results 1 – 25 of 163) sorted by relevance

1234567

/openbmc/linux/arch/powerpc/kernel/
H A Dcpu_setup_6xx.S217 cror 4*cr0+eq,4*cr0+eq,4*cr1+eq
218 cror 4*cr0+eq,4*cr0+eq,4*cr2+eq
373 cror 4*cr0+eq,4*cr0+eq,4*cr3+eq
374 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
375 cror 4*cr0+eq,4*cr0+eq,4*cr1+eq
376 cror 4*cr0+eq,4*cr0+eq,4*cr5+eq
377 cror 4*cr0+eq,4*cr0+eq,4*cr7+eq
444 cror 4*cr0+eq,4*cr0+eq,4*cr3+eq
445 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
446 cror 4*cr0+eq,4*cr0+eq,4*cr1+eq
[all …]
/openbmc/linux/arch/x86/kernel/fpu/
H A Dinit.c22 unsigned long cr0; in fpu__init_cpu_generic() local
32 cr0 = read_cr0(); in fpu__init_cpu_generic()
33 cr0 &= ~(X86_CR0_TS|X86_CR0_EM); /* clear TS and EM */ in fpu__init_cpu_generic()
35 cr0 |= X86_CR0_EM; in fpu__init_cpu_generic()
36 write_cr0(cr0); in fpu__init_cpu_generic()
58 unsigned long cr0; in fpu__probe_without_cpuid() local
63 cr0 = read_cr0(); in fpu__probe_without_cpuid()
64 cr0 &= ~(X86_CR0_TS | X86_CR0_EM); in fpu__probe_without_cpuid()
65 write_cr0(cr0); in fpu__probe_without_cpuid()
/openbmc/linux/arch/powerpc/kernel/vdso/
H A Dgetcpu.S22 PPC_LCMPI cr0,r3,0
26 beq cr0,1f
28 1: crclr cr0*4+so
38 cmpwi cr0, r3, 0
41 beq cr0, 1f
44 crclr cr0*4+so
/openbmc/linux/drivers/input/touchscreen/
H A Dmc13783_ts.c71 int cr0, cr1; in mc13783_ts_report_sample() local
83 cr0 = (priv->sample[2] >> 12) & 0xfff; in mc13783_ts_report_sample()
88 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample()
93 cr0 = (cr0 + cr1) / 2; in mc13783_ts_report_sample()
95 if (!cr0 || !sample_tolerance || in mc13783_ts_report_sample()
99 if (cr0) { in mc13783_ts_report_sample()
104 x1, y1, 0x1000 - cr0); in mc13783_ts_report_sample()
111 cr0 ? 0x1000 - cr0 : cr0); in mc13783_ts_report_sample()
112 input_report_key(idev, BTN_TOUCH, cr0); in mc13783_ts_report_sample()
/openbmc/qemu/target/i386/hvf/
H A Dvmx.h91 static void enter_long_mode(hv_vcpuid_t vcpu, uint64_t cr0, uint64_t efer) in enter_long_mode() argument
109 static void exit_long_mode(hv_vcpuid_t vcpu, uint64_t cr0, uint64_t efer) in exit_long_mode() argument
120 static inline void macvm_set_cr0(hv_vcpuid_t vcpu, uint64_t cr0) in macvm_set_cr0() argument
126 uint64_t changed_cr0 = old_cr0 ^ cr0; in macvm_set_cr0()
131 if ((cr0 & CR0_PG_MASK) && (rvmcs(vcpu, VMCS_GUEST_CR4) & CR4_PAE_MASK) && in macvm_set_cr0()
143 wvmcs(vcpu, VMCS_CR0_SHADOW, cr0); in macvm_set_cr0()
147 if (cr0 & CR0_PG_MASK) { in macvm_set_cr0()
148 enter_long_mode(vcpu, cr0, efer); in macvm_set_cr0()
150 exit_long_mode(vcpu, cr0, efer); in macvm_set_cr0()
159 cr0 = (cr0 & ~(mask & ~CR0_PG_MASK)); in macvm_set_cr0()
[all …]
/openbmc/u-boot/include/faraday/
H A Dftpmu010.h142 #define FTPMU010_PDLLCR0_HCLKOUTDIS(cr0) (((cr0) & 0xf) << 20) argument
143 #define FTPMU010_PDLLCR0_DLLFRAG(cr0) (1 << 19) argument
147 #define FTPMU010_PDLLCR0_PLL1FRANG(cr0) (((cr0) & 0x3) << 12) argument
148 #define FTPMU010_PDLLCR0_PLL1NS(cr0) (((cr0) & 0x1ff) << 3) argument
172 void ftpmu010_sdram_clk_disable(unsigned int cr0);
/openbmc/linux/tools/testing/selftests/powerpc/stringloops/
H A Dmemcmp_64.S176 cmpld cr0,rA,rB
204 cmpld cr0,rA,rB
234 cmpld cr0,rA,rB
278 cmpld cr0,rA,rB
296 bne cr0,.LcmpAB
300 cmpld cr0,rA,rB
323 bne cr0,.LcmpAB
327 cmpld cr0,rA,rB
343 bne cr0,.LcmpAB
374 bgt cr0,.Lout
[all …]
/openbmc/linux/arch/powerpc/lib/
H A Dmemcmp_64.S176 cmpld cr0,rA,rB
204 cmpld cr0,rA,rB
234 cmpld cr0,rA,rB
278 cmpld cr0,rA,rB
296 bne cr0,.LcmpAB
300 cmpld cr0,rA,rB
323 bne cr0,.LcmpAB
327 cmpld cr0,rA,rB
343 bne cr0,.LcmpAB
374 bgt cr0,.Lout
[all …]
/openbmc/linux/arch/x86/realmode/rm/
H A Dreboot.S31 movl %cr0, %eax
33 movl %eax, %cr0
98 movl %cr0, %edx
101 movl %edx, %cr0
103 movl %cr0, %edx
109 movl %edx, %cr0
H A Dwakeup_asm.S52 movl %cr0, %eax
54 movl %eax, %cr0
64 movl %eax, %cr0
132 movl %ecx, %cr0
/openbmc/linux/arch/powerpc/mm/nohash/
H A Dtlb_low_64e.S147 cmpldi cr0,r14,0
155 cmpdi cr0,r14,0
161 cmpdi cr0,r14,0
167 cmpdi cr0,r14,0
386 cmpldi cr0,r14,0
393 cmpdi cr0,r14,0
399 cmpdi cr0,r14,0
404 cmpdi cr0,r14,0
808 cmpdi cr0,r15,0
815 cmpdi cr0,r15,0
[all …]
/openbmc/u-boot/arch/x86/cpu/intel_common/
H A Dcar.S102 movl %cr0, %eax
105 movl %eax, %cr0
129 movl %cr0, %eax
131 movl %eax, %cr0
161 movl %cr0, %eax
163 movl %eax, %cr0
179 movl %cr0, %eax
181 movl %eax, %cr0
/openbmc/linux/arch/x86/platform/efi/
H A Defi_stub_32.S36 movl %cr0, %edx
38 movl %edx, %cr0
53 movl %cr0, %edx
55 movl %edx, %cr0
/openbmc/linux/arch/x86/boot/
H A Dcpuflags.c18 unsigned long cr0; in has_fpu() local
20 asm volatile("mov %%cr0,%0" : "=r" (cr0)); in has_fpu()
21 if (cr0 & (X86_CR0_EM|X86_CR0_TS)) { in has_fpu()
22 cr0 &= ~(X86_CR0_EM|X86_CR0_TS); in has_fpu()
23 asm volatile("mov %0,%%cr0" : : "r" (cr0)); in has_fpu()
/openbmc/linux/drivers/spi/
H A Dspi-dw-core.c29 u32 cr0; member
268 u32 cr0 = 0; in dw_spi_prepare_cr0() local
280 cr0 |= DW_PSSI_CTRLR0_SCPOL; in dw_spi_prepare_cr0()
282 cr0 |= DW_PSSI_CTRLR0_SCPHA; in dw_spi_prepare_cr0()
286 cr0 |= DW_PSSI_CTRLR0_SRL; in dw_spi_prepare_cr0()
297 cr0 |= DW_HSSI_CTRLR0_SCPOL; in dw_spi_prepare_cr0()
299 cr0 |= DW_HSSI_CTRLR0_SCPHA; in dw_spi_prepare_cr0()
303 cr0 |= DW_HSSI_CTRLR0_SRL; in dw_spi_prepare_cr0()
307 cr0 |= DW_HSSI_CTRLR0_MST; in dw_spi_prepare_cr0()
310 return cr0; in dw_spi_prepare_cr0()
[all …]
H A Dspi-rockchip.c530 u32 cr0 = CR0_FRF_SPI << CR0_FRF_OFFSET in rockchip_spi_config() local
541 cr0 |= rs->rsd << CR0_RSD_OFFSET; in rockchip_spi_config()
544 cr0 |= CR0_FBM_LSB << CR0_FBM_OFFSET; in rockchip_spi_config()
549 cr0 |= CR0_XFM_TR << CR0_XFM_OFFSET; in rockchip_spi_config()
551 cr0 |= CR0_XFM_RO << CR0_XFM_OFFSET; in rockchip_spi_config()
553 cr0 |= CR0_XFM_TO << CR0_XFM_OFFSET; in rockchip_spi_config()
557 cr0 |= CR0_DFS_4BIT << CR0_DFS_OFFSET; in rockchip_spi_config()
561 cr0 |= CR0_DFS_8BIT << CR0_DFS_OFFSET; in rockchip_spi_config()
565 cr0 |= CR0_DFS_16BIT << CR0_DFS_OFFSET; in rockchip_spi_config()
727 u32 cr0; in rockchip_spi_setup() local
[all …]
/openbmc/linux/arch/s390/kernel/
H A Dnmi.c120 union ctlreg0 cr0, cr0_new; in s390_handle_damage() local
134 __ctl_store(cr0.val, 0, 0); in s390_handle_damage()
135 cr0_new = cr0; in s390_handle_damage()
149 __ctl_load(cr0.val, 0, 0); in s390_handle_damage()
261 union ctlreg0 cr0; in s390_validate_registers() local
272 cr0.val = S390_lowcore.cregs_save_area[0]; in s390_validate_registers()
273 cr0.afp = cr0.vx = 1; in s390_validate_registers()
274 __ctl_load(cr0.val, 0, 0); in s390_validate_registers()
/openbmc/u-boot/arch/x86/cpu/
H A Dstart16.S33 movl %cr0, %eax
35 movl %eax, %cr0
43 movl %cr0, %eax
45 movl %eax, %cr0
H A Dsipi_vector.S52 movl %cr0, %eax
56 movl %eax, %cr0
186 mov %cr0, %eax
188 mov %eax, %cr0
/openbmc/linux/arch/x86/platform/pvh/
H A Dhead.S89 mov %eax, %cr0
118 mov %cr0, %eax
120 mov %eax, %cr0
130 mov %cr0, %eax
132 mov %eax, %cr0
/openbmc/linux/arch/x86/kvm/
H A Dsmm.c58 CHECK_SMRAM32_OFFSET(cr0, 0xFFFC); in check_smram_offsets()
98 CHECK_SMRAM64_OFFSET(cr0, 0xFF58); in check_smram_offsets()
249 smram->cr0 = kvm_read_cr0(vcpu); in enter_smm_save_state_64()
285 unsigned long cr0; in enter_smm() local
325 cr0 = vcpu->arch.cr0 & ~(X86_CR0_PE | X86_CR0_EM | X86_CR0_TS | X86_CR0_PG); in enter_smm()
327 vcpu->arch.cr0 = cr0; in enter_smm()
423 u64 cr0, u64 cr3, u64 cr4) in rsm_enter_protected_mode() argument
448 bad = kvm_set_cr0(vcpu, cr0); in rsm_enter_protected_mode()
575 unsigned long cr0; in emulator_leave_smm() local
615 cr0 = kvm_read_cr0(vcpu); in emulator_leave_smm()
[all …]
/openbmc/u-boot/arch/x86/cpu/i386/
H A Dcpu.c388 unsigned long cr0; in x86_enable_caches() local
390 cr0 = read_cr0(); in x86_enable_caches()
391 cr0 &= ~(X86_CR0_NW | X86_CR0_CD); in x86_enable_caches()
392 write_cr0(cr0); in x86_enable_caches()
399 unsigned long cr0; in x86_disable_caches() local
401 cr0 = read_cr0(); in x86_disable_caches()
402 cr0 |= X86_CR0_NW | X86_CR0_CD; in x86_disable_caches()
404 write_cr0(cr0); in x86_disable_caches()
/openbmc/linux/arch/powerpc/purgatory/
H A Dtrampoline_64.S57 cmpdi %cr0, %r3, 0
61 cmpdi %cr0, %r5, 0
70 cmpld %cr0, %r6, %r5
84 cmpwi %cr0,%r6,2 /* v2 or later? */
/openbmc/linux/arch/x86/boot/compressed/
H A Defi_mixed.S192 movl %cr0, %eax
194 movl %eax, %cr0
235 movl %cr0, %eax
237 movl %eax, %cr0
284 movl %cr0, %eax
286 movl %eax, %cr0
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dset_sregs_test.c94 sregs.cr0 = 0; in main()
118 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, BIT(i)); in main()
121 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, X86_CR0_NW); in main()
122 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, X86_CR0_PG); in main()

1234567