Home
last modified time | relevance | path

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

/linux-4.4.14/arch/powerpc/kernel/
Dcpu_setup_6xx.S191 cmpwi cr0,r10,7
194 cror 4*cr0+eq,4*cr0+eq,4*cr1+eq
195 cror 4*cr0+eq,4*cr0+eq,4*cr2+eq
335 cmplwi cr0,r3,0x8000 /* 7450 */
346 cror 4*cr0+eq,4*cr0+eq,4*cr3+eq
347 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
348 cror 4*cr0+eq,4*cr0+eq,4*cr1+eq
349 cror 4*cr0+eq,4*cr0+eq,4*cr5+eq
350 cror 4*cr0+eq,4*cr0+eq,4*cr7+eq
375 cmpwi cr0,r3,0x0200
[all …]
Dentry_64.S794 cmpwi cr0,r5,0
798 cmpwi cr0,r6,1
799 beq cr0,do_restore
807 cmpwi cr0,r0,0
941 cmpwi cr0,r3,0
958 cmpwi cr0,r3,0x500
963 1: cmpwi cr0,r3,0xe60
968 1: cmpwi cr0,r3,0x900
976 cmpwi cr0,r3,0x280
979 cmpwi cr0,r3,0xe80
[all …]
Dhead_8xx.S59 cmpli cr0, tmp, PAGE_OFFSET >> 16
488 cmpwi cr0, r11, RPN_PATTERN
552 cmpwi cr0, r10, 2028 /* Is dcbz? */
554 cmpwi cr0, r10, 940 /* Is dcbi? */
556 cmpwi cr0, r10, 108 /* Is dcbst? */
558 cmpwi cr0, r10, 172 /* Is dcbf? */
560 cmpwi cr0, r10, 1964 /* Is icbi? */
Didle_book3e.S37 cmpwi cr0,r3,0
Dmisc_32.S182 cmplwi cr0,r3,0
207 cmplwi cr0,r3,0
571 crclr 4*cr0+eq
593 crnot 4*cr0+eq,4*cr0+eq
746 cmplwi cr0,r3,PVR_476@h
748 cmplwi cr0,r3,PVR_476_ISS@h
Didle_power4.S41 cmpwi cr0,r0,0
Dexceptions-64e.S215 cmpwi cr0,r5,0
355 cmpwi cr0,r10,0; /* yes -> go out of line */ \
740 cmpld cr0,r10,r14
742 blt+ cr0,1f
804 cmpld cr0,r10,r14
806 blt+ cr0,1f
995 cmpwi cr0,r3,0x500
997 cmpwi cr0,r3,0x900
999 cmpwi cr0,r3,0x280
1577 cmpdi cr0,r28,0
Dhead_44x.S567 cmplw cr0,r10,r11
664 cmplw cr0,r10,r11
812 cmplwi cr0,r3,PVR_476FPE@h
814 cmplwi cr0,r3,PVR_476@h
816 cmplwi cr0,r3,PVR_476_ISS@h
Dhead_64.S381 cmpldi cr0,r5,0
467 cmplwi cr0,r7,1 /* flagged to stay where we are ? */
507 cmplwi cr0,r7,1
Didle_power7.S47 1: cmp cr0,r0,r0; \
109 cmpwi cr0,r4,0
Dhead_32.S1020 cmpwi cr0,r3,0
1180 cmpwi cr0,r8,0
Dentry_32.S392 cmplwi cr0,r5,0
853 cmplwi cr0,r5,0
/linux-4.4.14/arch/powerpc/kernel/vdso32/
Dgettimeofday.S60 crclr cr0*4+so
75 cmpli cr0,r3,CLOCK_REALTIME
77 cror cr0*4+eq,cr0*4+eq,cr1*4+eq
78 bne cr0,99f
111 cmpl cr0,r8,r0 /* check if updated */
120 cmpw cr0,r4,r7
133 crclr cr0*4+so
157 cmpwi cr0,r3,CLOCK_REALTIME
159 cror cr0*4+eq,cr0*4+eq,cr1*4+eq
160 bne cr0,99f
[all …]
Dgetcpu.S33 cmpwi cr0,r3,0
37 beq cr0,1f
41 2: crclr cr0*4+so
Ddatapage.S62 cmpli cr0,r4,0
66 crclr cr0*4+so
84 crclr cr0*4+so
Dcacheflush.S43 crclr cr0*4+so
60 crclr cr0*4+so
78 crclr cr0*4+so
/linux-4.4.14/arch/powerpc/kernel/vdso64/
Dgettimeofday.S48 crclr cr0*4+so
64 cmpwi cr0,r3,CLOCK_REALTIME
66 cror cr0*4+eq,cr0*4+eq,cr1*4+eq
67 bne cr0,99f
98 cmpld cr0,r0,r8 /* check if updated */
105 cmpd cr0,r5,r7
118 crclr cr0*4+so
142 cmpwi cr0,r3,CLOCK_REALTIME
144 cror cr0*4+eq,cr0*4+eq,cr1*4+eq
145 bne cr0,99f
[all …]
Dgetcpu.S33 cmpdi cr0,r3,0
37 beq cr0,1f
41 2: crclr cr0*4+so
Ddatapage.S62 cmpli cr0,r4,0
63 crclr cr0*4+so
84 crclr cr0*4+so
Dcacheflush.S43 crclr cr0*4+so
60 crclr cr0*4+so
78 crclr cr0*4+so
/linux-4.4.14/arch/arm/include/asm/
Dvfpmacros.h12 MRC\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMRX \rd, \sysreg in toolkits()
16 MCR\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMXR \sysreg, \rd in toolkits()
22 LDC p11, cr0, [\base],#33*4 @ FLDMIAX \base!, {d0-d15} in toolkits()
24 LDC p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d0-d15}
31 ldcnel p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31}
37 ldceql p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31}
46 STC p11, cr0, [\base],#33*4 @ FSTMIAX \base!, {d0-d15}
48 STC p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d0-d15}
55 stcnel p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31}
61 stceql p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31}
Dvfp.h11 #define FPSID cr0
/linux-4.4.14/arch/powerpc/mm/
Dtlb_low_64e.S147 cmpldi cr0,r14,0
165 cmpdi cr0,r14,0
172 cmpdi cr0,r14,0
178 cmpdi cr0,r14,0
224 cmpldi cr0,r15,8 /* Check for vmalloc region */
256 cmpldi cr0,r15,0 /* Check for user region */
309 crmove cr2*4+2,cr0*4+2 /* cr2.eq != 0 if kernel address */
403 cmpldi cr0,r14,0
410 cmpdi cr0,r14,0
416 cmpdi cr0,r14,0
[all …]
Dslb_low.S81 cmpldi cr0,r9,0xf
202 crnot 4*cr0+eq,4*cr0+eq
210 cmpldi cr0,r9,0
214 cmpldi cr0,r9,0
218 cmpldi cr0,r9,0
279 crclr 4*cr0+eq /* set result to "success" */
298 crclr 4*cr0+eq /* set result to "success" */
Dtlb_nohash_low.S354 cmpwi cr0,r6,0
369 cmpwi cr0,r6,0
Dhash_low_32.S438 cmpl cr0,r0,r6 /* compare and try again */
/linux-4.4.14/arch/x86/kernel/fpu/
Dinit.c26 unsigned long cr0; in fpu__init_cpu_generic() local
36 cr0 = read_cr0(); in fpu__init_cpu_generic()
37 cr0 &= ~(X86_CR0_TS|X86_CR0_EM); /* clear TS and EM */ in fpu__init_cpu_generic()
39 cr0 |= X86_CR0_EM; in fpu__init_cpu_generic()
40 write_cr0(cr0); in fpu__init_cpu_generic()
69 unsigned long cr0; in fpu__init_system_early_generic() local
74 cr0 = read_cr0(); in fpu__init_system_early_generic()
75 cr0 &= ~(X86_CR0_TS | X86_CR0_EM); in fpu__init_system_early_generic()
76 write_cr0(cr0); in fpu__init_system_early_generic()
/linux-4.4.14/drivers/input/touchscreen/
Dmc13783_ts.c75 int cr0, cr1; in mc13783_ts_report_sample() local
87 cr0 = (priv->sample[2] >> 12) & 0xfff; in mc13783_ts_report_sample()
92 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample()
97 cr0 = (cr0 + cr1) / 2; in mc13783_ts_report_sample()
99 if (!cr0 || !sample_tolerance || in mc13783_ts_report_sample()
103 if (cr0) { in mc13783_ts_report_sample()
108 x1, y1, 0x1000 - cr0); in mc13783_ts_report_sample()
114 cr0 ? 0x1000 - cr0 : cr0); in mc13783_ts_report_sample()
115 input_report_key(idev, BTN_TOUCH, cr0); in mc13783_ts_report_sample()
/linux-4.4.14/arch/x86/realmode/rm/
Dreboot.S30 movl %cr0, %eax
32 movl %eax, %cr0
96 movl %cr0, %edx
99 movl %edx, %cr0
101 movl %cr0, %edx
107 movl %edx, %cr0
Dwakeup_asm.S51 movl %cr0, %eax
53 movl %eax, %cr0
63 movl %eax, %cr0
131 movl %ecx, %cr0
/linux-4.4.14/arch/x86/boot/
Dcpuflags.c17 unsigned long cr0; in has_fpu() local
19 asm volatile("mov %%cr0,%0" : "=r" (cr0)); in has_fpu()
20 if (cr0 & (X86_CR0_EM|X86_CR0_TS)) { in has_fpu()
21 cr0 &= ~(X86_CR0_EM|X86_CR0_TS); in has_fpu()
22 asm volatile("mov %0,%%cr0" : : "r" (cr0)); in has_fpu()
Dpmjump.S39 movl %cr0, %edx
41 movl %edx, %cr0
/linux-4.4.14/arch/x86/include/asm/
Dlguest.h75 u32 cr0; in lguest_set_ts() local
77 cr0 = read_cr0(); in lguest_set_ts()
78 if (!(cr0 & 8)) in lguest_set_ts()
79 write_cr0(cr0 | 8); in lguest_set_ts()
Dsuspend_32.h15 unsigned long cr0, cr2, cr3, cr4; member
Dsuspend_64.h24 unsigned long cr0, cr2, cr3, cr4, cr8; member
Dirqflags.h143 #define GET_CR0_INTO_EAX movl %cr0, %eax
Dsvm.h156 u64 cr0; member
Dkvm_host.h392 unsigned long cr0; member
794 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
1024 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
/linux-4.4.14/arch/x86/platform/efi/
Defi_stub_32.S62 movl %cr0, %edx
64 movl %edx, %cr0
88 movl %cr0, %edx
90 movl %edx, %cr0
Defi_stub_64.S20 mov %cr0, %rax; \
38 mov %rsi, %cr0; \
/linux-4.4.14/arch/s390/lib/
Ddelay.c35 unsigned long cr0, cr0_new, psw_mask; in __udelay_disabled() local
40 __ctl_store(cr0, 0, 0); in __udelay_disabled()
41 cr0_new = cr0 & ~CR0_IRQ_SUBCLASS_MASK; in __udelay_disabled()
50 __ctl_load(cr0, 0, 0); in __udelay_disabled()
/linux-4.4.14/tools/testing/selftests/powerpc/stringloops/
Dmemcmp_64.S110 cmpld cr0,rA,rB
128 bne cr0,.LcmpAB
132 cmpld cr0,rA,rB
155 bne cr0,.LcmpAB
159 cmpld cr0,rA,rB
175 bne cr0,.LcmpAB
197 bne cr0,.LcmpAB
206 bgt cr0,.Lout
/linux-4.4.14/arch/powerpc/lib/
Dmemcmp_64.S110 cmpld cr0,rA,rB
128 bne cr0,.LcmpAB
132 cmpld cr0,rA,rB
155 bne cr0,.LcmpAB
159 cmpld cr0,rA,rB
175 bne cr0,.LcmpAB
197 bne cr0,.LcmpAB
206 bgt cr0,.Lout
Dcopyuser_64.S35 crand cr0*4+2,cr0*4+2,cr6*4+2
/linux-4.4.14/arch/s390/kernel/
Dsclp.c16 unsigned long cr0, cr0_new, psw_mask, addr; in _sclp_wait_int() local
19 __ctl_store(cr0, 0, 0); in _sclp_wait_int()
20 cr0_new = cr0 | 0x200; in _sclp_wait_int()
43 __ctl_load(cr0, 0, 0); in _sclp_wait_int()
Dnmi.c161 union ctlreg0 cr0; in s390_validate_registers() local
170 cr0.val = S390_lowcore.cregs_save_area[0]; in s390_validate_registers()
171 cr0.afp = cr0.vx = 1; in s390_validate_registers()
172 __ctl_load(cr0.val, 0, 0); in s390_validate_registers()
Dearly.c251 unsigned long cr0, cr0_new; in early_pgm_check_handler() local
259 __ctl_store(cr0, 0, 0); in early_pgm_check_handler()
260 cr0_new = cr0 & ~(1UL << 28); in early_pgm_check_handler()
263 __ctl_load(cr0, 0, 0); in early_pgm_check_handler()
Dhead64.S52 .Lctl: .quad 0x04040000 # cr0: AFP registers & secondary space
/linux-4.4.14/arch/s390/include/asm/fpu/
Dinternal.h17 unsigned long cr0, flags; in save_vx_regs_safe() local
20 __ctl_store(cr0, 0, 0); in save_vx_regs_safe()
28 __ctl_load(cr0, 0, 0); in save_vx_regs_safe()
/linux-4.4.14/arch/x86/kernel/
Drelocate_kernel_32.S53 movl %cr0, %eax
114 movl %cr0, %eax
117 movl %eax, %cr0
188 movl %cr0, %eax
190 movl %eax, %cr0
203 movl %eax, %cr0
Drelocate_kernel_64.S63 movq %cr0, %rax
117 movq %cr0, %rax
120 movq %rax, %cr0
200 movq %r8, %cr0
Dprocess_32.c71 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
101 cr0 = read_cr0(); in __show_regs()
106 cr0, cr2, cr3, cr4); in __show_regs()
Dasm-offsets_64.c53 ENTRY(cr0); in main()
Dprocess_64.c60 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
93 cr0 = read_cr0(); in __show_regs()
101 es, cr0); in __show_regs()
Dhead_32.S324 movl %eax,%cr0
400 movl %eax,%cr0 /* ..and set paging (PG) bit */
448 movl %cr0,%eax
451 movl %eax,%cr0
Dhead_64.S220 movq %rax, %cr0
/linux-4.4.14/arch/arm/mach-sa1100/
Dssp.c163 ssp->cr0 = Ser4SSCR0; in ssp_save_state()
179 Ser4SSCR0 = ssp->cr0 & ~SSCR0_SSE; in ssp_restore_state()
181 Ser4SSCR0 = ssp->cr0; in ssp_restore_state()
/linux-4.4.14/arch/x86/boot/compressed/
Defi_thunk_64.S125 movl %cr0, %eax
127 movl %eax, %cr0
170 movl %cr0, %eax
172 movl %eax, %cr0
Dhead_64.S194 movl %eax, %cr0
/linux-4.4.14/drivers/cpufreq/
Dpowernow-k6.c105 unsigned long cr0; in powernow_k6_set_cpu_multiplier() local
114 cr0 = read_cr0(); in powernow_k6_set_cpu_multiplier()
115 write_cr0(cr0 | X86_CR0_CD); in powernow_k6_set_cpu_multiplier()
129 write_cr0(cr0); in powernow_k6_set_cpu_multiplier()
/linux-4.4.14/arch/score/include/asm/
Dasmmacro.h9 mfcr r30, cr0
66 mfcr r31, cr0
82 mfcr r30, cr0
85 mtcr r30, cr0
100 mtcr r31, cr0
/linux-4.4.14/arch/s390/mm/
Dmaccess.c113 unsigned long cr0, flags, prefix; in memcpy_absolute() local
116 __ctl_store(cr0, 0, 0); in memcpy_absolute()
128 __ctl_load(cr0, 0, 0); in memcpy_absolute()
/linux-4.4.14/drivers/spi/
Dspi-txx9.c211 u32 cr0; in txx9spi_work_one() local
218 cr0 = txx9spi_rd(c, TXx9_SPCR0); in txx9spi_work_one()
219 cr0 &= ~TXx9_SPCR0_RXIFL_MASK; in txx9spi_work_one()
220 cr0 |= (count - 1) << 12; in txx9spi_work_one()
222 cr0 |= TXx9_SPCR0_RBSIE; in txx9spi_work_one()
223 txx9spi_wr(c, cr0, TXx9_SPCR0); in txx9spi_work_one()
Dspi-rockchip.c510 u32 cr0 = (CR0_BHT_8BIT << CR0_BHT_OFFSET) in rockchip_spi_config() local
513 cr0 |= (rs->n_bytes << CR0_DFS_OFFSET); in rockchip_spi_config()
514 cr0 |= ((rs->mode & 0x3) << CR0_SCPH_OFFSET); in rockchip_spi_config()
515 cr0 |= (rs->tmode << CR0_XFM_OFFSET); in rockchip_spi_config()
516 cr0 |= (rs->type << CR0_FRF_OFFSET); in rockchip_spi_config()
550 cr0 |= rsd << CR0_RSD_OFFSET; in rockchip_spi_config()
552 writel_relaxed(cr0, rs->regs + ROCKCHIP_SPI_CTRLR0); in rockchip_spi_config()
564 dev_dbg(rs->dev, "cr0 0x%x, div %d\n", cr0, div); in rockchip_spi_config()
Dspi-dw.c287 u32 cr0; in dw_spi_transfer_one() local
320 cr0 = (transfer->bits_per_word - 1) in dw_spi_transfer_one()
337 cr0 &= ~SPI_TMOD_MASK; in dw_spi_transfer_one()
338 cr0 |= (chip->tmode << SPI_TMOD_OFFSET); in dw_spi_transfer_one()
341 dw_writel(dws, DW_SPI_CTRL0, cr0); in dw_spi_transfer_one()
Dspi-ep93xx.c317 u16 cr0; in ep93xx_spi_chip_setup() local
324 cr0 = div_scr << SSPCR0_SCR_SHIFT; in ep93xx_spi_chip_setup()
325 cr0 |= (chip->spi->mode & (SPI_CPHA|SPI_CPOL)) << SSPCR0_MODE_SHIFT; in ep93xx_spi_chip_setup()
326 cr0 |= dss; in ep93xx_spi_chip_setup()
330 dev_dbg(&espi->pdev->dev, "setup: cr0 %#x\n", cr0); in ep93xx_spi_chip_setup()
333 ep93xx_spi_write_u16(espi, SSPCR0, cr0); in ep93xx_spi_chip_setup()
Dspi-pl022.c433 u32 cr0; member
578 writel(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
580 writew(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
1963 chip->cr0 = 0; in pl022_setup()
1996 SSP_WRITE_BITS(chip->cr0, chip_info->duplex, in pl022_setup()
1998 SSP_WRITE_BITS(chip->cr0, chip_info->ctrl_len, in pl022_setup()
2000 SSP_WRITE_BITS(chip->cr0, chip_info->iface, in pl022_setup()
2005 SSP_WRITE_BITS(chip->cr0, bits - 1, in pl022_setup()
2022 SSP_WRITE_BITS(chip->cr0, bits - 1, in pl022_setup()
2024 SSP_WRITE_BITS(chip->cr0, chip_info->iface, in pl022_setup()
[all …]
Dspi-pxa2xx.c888 u32 cr0; in pump_transfers() local
1005 cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, bits); in pump_transfers()
1009 / (1 + ((cr0 & SSCR0_SCR(0xfff)) >> 8)), in pump_transfers()
1014 / (1 + ((cr0 & SSCR0_SCR(0x0ff)) >> 8)), in pump_transfers()
1059 if ((pxa2xx_spi_read(drv_data, SSCR0) != cr0) in pump_transfers()
1063 pxa2xx_spi_write(drv_data, SSCR0, cr0 & ~SSCR0_SSE); in pump_transfers()
1069 pxa2xx_spi_write(drv_data, SSCR0, cr0); in pump_transfers()
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/
Dcyrix.c137 u32 cr0; in prepare_set() local
149 cr0 = read_cr0() | X86_CR0_CD; in prepare_set()
151 write_cr0(cr0); in prepare_set()
Dgeneric.c728 unsigned long cr0; in prepare_set() local
740 cr0 = read_cr0() | X86_CR0_CD; in prepare_set()
741 write_cr0(cr0); in prepare_set()
/linux-4.4.14/arch/arm/mach-mvebu/
Dpmsu_ll.S19 mrc 15, 0, r0, cr0, cr0, 5 @ get the CPU ID
Dcoherency_ll.S69 mrc 15, 0, r3, cr0, cr0, 5
/linux-4.4.14/arch/score/kernel/
Dentry.S38 mfcr r8, cr0
41 mtcr r8, cr0
53 mfcr r8, cr0
55 mtcr r8, cr0
376 mfcr r9, cr0
391 mfcr r9, cr0
399 mtcr r6, cr0
/linux-4.4.14/Documentation/virtual/kvm/
Dmmu.txt52 pages, pae, pse, pse36, cr0.wp, and 1GB pages. Work is in progress to support
167 Contains the value of cr0.wp for which the page is valid.
169 Contains the value of cr4.smep && !cr0.wp for which the page is valid
171 treatment of cr0.wp=0 below).
173 Contains the value of cr4.smap && !cr0.wp for which the page is valid
175 treatment of cr0.wp=0 below).
327 - mov to cr0/cr4/efer
338 Emulating cr0.wp
341 If tdp is not enabled, the host must keep cr0.wp=1 so page write protection
343 cr0.wp=1, this does not present a problem. However when the guest cr0.wp=0,
[all …]
Dapi.txt349 __u64 cr0, cr2, cr3, cr4, cr8;
/linux-4.4.14/arch/x86/platform/olpc/
Dxo1-wakeup.S32 movl %eax, %cr0
66 movl %cr0, %edx
/linux-4.4.14/arch/powerpc/boot/
Dcrt0.S118 cmplw cr0,r9,r8
129 cmplw cr0,r9,r8
201 cmpld cr0,r9,r8
212 cmpld cr0,r9,r8
D4xx.c338 u32 cr0 = mfdcr(DCRN_CPC0_CR0); in ibm440gp_fixup_clocks() local
368 if (cr0 & CPC0_CR0_U0EC) in ibm440gp_fixup_clocks()
373 uart0 = plb / CPC0_CR0_UDIV(cr0); in ibm440gp_fixup_clocks()
375 if (cr0 & CPC0_CR0_U1EC) in ibm440gp_fixup_clocks()
380 uart1 = plb / CPC0_CR0_UDIV(cr0); in ibm440gp_fixup_clocks()
Dppc_asm.h17 #define cr0 0 macro
/linux-4.4.14/arch/parisc/include/asm/
Dasmregs.h130 rctr: .reg %cr0
157 cr0: .reg %cr0
/linux-4.4.14/arch/powerpc/platforms/52xx/
Dmpc52xx_sleep.S33 cmpi cr0, r10, 1
34 bne cr0, 1b
Dlite5200_sleep.S186 cmp cr0, r13, r12
/linux-4.4.14/arch/arm/include/asm/hardware/
Dssp.h14 unsigned int cr0; member
/linux-4.4.14/arch/x86/power/
Dcpu.c105 ctxt->cr0 = read_cr0(); in __save_processor_state()
186 write_cr0(ctxt->cr0); in __restore_processor_state()
/linux-4.4.14/arch/powerpc/sysdev/
Ddcr-low.S17 cmpli cr0,r3,1024; \
/linux-4.4.14/arch/x86/kvm/
Dsvm.c206 static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
1448 ulong gcr0 = svm->vcpu.arch.cr0; in update_cr0_intercept()
1449 u64 *hcr0 = &svm->vmcb->save.cr0; in update_cr0_intercept()
1468 static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in svm_set_cr0() argument
1474 if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) { in svm_set_cr0()
1479 if (is_paging(vcpu) && !(cr0 & X86_CR0_PG)) { in svm_set_cr0()
1485 vcpu->arch.cr0 = cr0; in svm_set_cr0()
1488 cr0 |= X86_CR0_PG | X86_CR0_WP; in svm_set_cr0()
1491 cr0 |= X86_CR0_TS; in svm_set_cr0()
1498 cr0 &= ~(X86_CR0_CD | X86_CR0_NW); in svm_set_cr0()
[all …]
Dkvm_cache_regs.h53 return vcpu->arch.cr0 & mask; in kvm_read_cr0_bits()
Dvmx.c2124 ulong cr0; in vmx_fpu_activate() local
2129 cr0 = vmcs_readl(GUEST_CR0); in vmx_fpu_activate()
2130 cr0 &= ~(X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
2131 cr0 |= kvm_read_cr0_bits(vcpu, X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
2132 vmcs_writel(GUEST_CR0, cr0); in vmx_fpu_activate()
2180 (vcpu->arch.cr0 & X86_CR0_TS); in vmx_fpu_deactivate()
2183 vmcs_writel(CR0_READ_SHADOW, vcpu->arch.cr0); in vmx_fpu_deactivate()
3625 vcpu->arch.cr0 &= ~cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3626 vcpu->arch.cr0 |= vmcs_readl(GUEST_CR0) & cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3680 unsigned long cr0, in ept_update_paging_mode_cr0() argument
[all …]
Dx86.c583 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in kvm_set_cr0() argument
588 cr0 |= X86_CR0_ET; in kvm_set_cr0()
591 if (cr0 & 0xffffffff00000000UL) in kvm_set_cr0()
595 cr0 &= ~CR0_RESERVED_BITS; in kvm_set_cr0()
597 if ((cr0 & X86_CR0_NW) && !(cr0 & X86_CR0_CD)) in kvm_set_cr0()
600 if ((cr0 & X86_CR0_PG) && !(cr0 & X86_CR0_PE)) in kvm_set_cr0()
603 if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) { in kvm_set_cr0()
620 if (!(cr0 & X86_CR0_PG) && kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) in kvm_set_cr0()
623 kvm_x86_ops->set_cr0(vcpu, cr0); in kvm_set_cr0()
625 if ((cr0 ^ old_cr0) & X86_CR0_PG) { in kvm_set_cr0()
[all …]
Demulate.c2334 u64 cr0, u64 cr4) in rsm_enter_protected_mode() argument
2347 bad = ctxt->ops->set_cr(ctxt, 0, cr0); in rsm_enter_protected_mode()
2365 u32 val, cr0, cr4; in rsm_load_state_32() local
2368 cr0 = GET_SMSTATE(u32, smbase, 0x7ffc); in rsm_load_state_32()
2411 return rsm_enter_protected_mode(ctxt, cr0, cr4); in rsm_load_state_32()
2418 u64 val, cr0, cr4; in rsm_load_state_64() local
2434 cr0 = GET_SMSTATE(u64, smbase, 0x7f58); in rsm_load_state_64()
2463 r = rsm_enter_protected_mode(ctxt, cr0, cr4); in rsm_load_state_64()
2478 unsigned long cr0, cr4, efer; in em_rsm() local
2508 cr0 = ctxt->ops->get_cr(ctxt, 0); in em_rsm()
[all …]
/linux-4.4.14/arch/x86/xen/
Denlighten.c992 unsigned long cr0 = this_cpu_read(xen_cr0_value); in xen_read_cr0() local
994 if (unlikely(cr0 == 0)) { in xen_read_cr0()
995 cr0 = native_read_cr0(); in xen_read_cr0()
996 this_cpu_write(xen_cr0_value, cr0); in xen_read_cr0()
999 return cr0; in xen_read_cr0()
1002 static void xen_write_cr0(unsigned long cr0) in xen_write_cr0() argument
1006 this_cpu_write(xen_cr0_value, cr0); in xen_write_cr0()
1012 MULTI_fpu_taskswitch(mcs.mc, (cr0 & X86_CR0_TS) != 0); in xen_write_cr0()
/linux-4.4.14/arch/powerpc/include/asm/
Dirqflags.h51 cmpwi cr0,__rA,0; \
Dppc_asm.h551 #define cr0 0 macro
/linux-4.4.14/arch/sh/include/cpu-sh5/cpu/
Dregisters.h25 #define SR cr0
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_64_slb.S85 cmpd cr0, r11, r12
/linux-4.4.14/drivers/video/fbdev/
Dsstfb.c969 u8 cr0, cc; in sst_set_pll_att_ti() local
977 cr0 = sst_dac_read(DACREG_RMR); /* 5 CR0 */ in sst_set_pll_att_ti()
984 sst_dac_write(DACREG_RMR, (cr0 & 0xf0) in sst_set_pll_att_ti()
1015 cr0 & ~DACREG_CR0_PWDOWN & ~DACREG_CR0_EN_INDEXED); in sst_set_pll_att_ti()
1060 u8 cr0; in sst_set_vidmod_att_ti() local
1068 cr0 = sst_dac_read(DACREG_RMR); in sst_set_vidmod_att_ti()
1078 sst_dac_write(DACREG_RMR, (cr0 & 0x0f) | DACREG_CR0_16BPP); in sst_set_vidmod_att_ti()
/linux-4.4.14/sound/soc/pxa/
Dpxa-ssp.c48 uint32_t cr0; member
141 priv->cr0 = __raw_readl(ssp->mmio_base + SSCR0); in pxa_ssp_suspend()
160 __raw_writel(priv->cr0 & ~SSCR0_SSE, ssp->mmio_base + SSCR0); in pxa_ssp_resume()
/linux-4.4.14/drivers/s390/char/
Dsclp.c560 unsigned long cr0, cr0_sync; in sclp_sync_wait() local
581 __ctl_store(cr0, 0, 0); in sclp_sync_wait()
582 cr0_sync = cr0; in sclp_sync_wait()
597 __ctl_load(cr0, 0, 0); in sclp_sync_wait()
/linux-4.4.14/arch/x86/kernel/acpi/
Dwakeup_64.S91 movq %rbx, %cr0
/linux-4.4.14/arch/s390/kvm/
Dguestdbg.c135 vcpu->arch.guestdbg.cr0 = vcpu->arch.sie_block->gcr[0]; in kvm_s390_backup_guest_per_regs()
143 vcpu->arch.sie_block->gcr[0] = vcpu->arch.guestdbg.cr0; in kvm_s390_restore_guest_per_regs()
/linux-4.4.14/arch/x86/include/uapi/asm/
Dkvm.h150 __u64 cr0, cr2, cr3, cr4, cr8; member
/linux-4.4.14/drivers/crypto/ccp/
Dccp-ops.c196 u32 cr0, cmd; in ccp_do_cmd() local
206 cr0 = (cmd_q->id << REQ0_CMD_Q_SHIFT) in ccp_do_cmd()
211 cr0 |= REQ0_STOP_ON_COMPLETE in ccp_do_cmd()
215 cr0 |= REQ0_INT_ON_COMPLETE; in ccp_do_cmd()
228 iowrite32(cr0, ccp->io_regs + CMD_REQ0); in ccp_do_cmd()
232 if (cr0 & REQ0_INT_ON_COMPLETE) { in ccp_do_cmd()
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dcache.S76 cmplwi cr0,r3,0x7000
/linux-4.4.14/tools/testing/selftests/powerpc/copyloops/
Dcopyuser_64.S35 crand cr0*4+2,cr0*4+2,cr6*4+2
/linux-4.4.14/arch/s390/include/asm/
Dkvm_host.h494 unsigned long cr0; member
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-cxl104 AFU configuration records (eg. /sys/class/cxl/afu0.0/cr0):
/linux-4.4.14/arch/parisc/kernel/
Dentry.S811 mtctl %r0, %cr0 /* Needed for single stepping */
1901 mtctl %r2,%cr0 /* for immediate trap */
/linux-4.4.14/fs/cifs/
Dcifspdu.h2737 char cr0; /* \n */ member
/linux-4.4.14/Documentation/s390/
DDebugging390.txt49 16 Control registers, 32 bit on s/390 and 64 bit on z/Architecture, cr0-cr15,