Home
last modified time | relevance | path

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

/linux-4.1.27/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.S747 cmpwi cr0,r5,0
751 cmpwi cr0,r6,1
752 beq cr0,do_restore
760 cmpwi cr0,r0,0
894 cmpwi cr0,r3,0
911 cmpwi cr0,r3,0x500
916 1: cmpwi cr0,r3,0xe60
921 1: cmpwi cr0,r3,0x900
929 cmpwi cr0,r3,0x280
932 cmpwi cr0,r3,0xe80
[all …]
Dhead_8xx.S461 cmpwi cr0, r11, RPN_PATTERN
525 cmpwi cr0, r10, 2028 /* Is dcbz? */
527 cmpwi cr0, r10, 940 /* Is dcbi? */
529 cmpwi cr0, r10, 108 /* Is dcbst? */
531 cmpwi cr0, r10, 172 /* Is dcbf? */
533 cmpwi cr0, r10, 1964 /* Is icbi? */
Didle_book3e.S37 cmpwi cr0,r3,0
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
1571 cmpdi cr0,r28,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
765 cmplwi cr0,r3,PVR_476@h
767 cmplwi cr0,r3,PVR_476_ISS@h
Dhead_64.S365 cmpldi cr0,r5,0
445 cmplwi cr0,r7,1 /* flagged to stay where we are ? */
478 cmplwi cr0,r7,1
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
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.S391 cmplwi cr0,r5,0
848 cmplwi cr0,r5,0
/linux-4.1.27/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.S60 cmpli cr0,r4,0
64 crclr cr0*4+so
82 crclr cr0*4+so
Dcacheflush.S43 crclr cr0*4+so
60 crclr cr0*4+so
78 crclr cr0*4+so
/linux-4.1.27/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.S60 cmpli cr0,r4,0
61 crclr cr0*4+so
82 crclr cr0*4+so
Dcacheflush.S43 crclr cr0*4+so
60 crclr cr0*4+so
78 crclr cr0*4+so
/linux-4.1.27/arch/powerpc/mm/
Dtlb_low_64e.S141 cmpldi cr0,r14,0
159 cmpdi cr0,r14,0
166 cmpdi cr0,r14,0
172 cmpdi cr0,r14,0
218 cmpldi cr0,r15,8 /* Check for vmalloc region */
250 cmpldi cr0,r15,0 /* Check for user region */
302 crmove cr2*4+2,cr0*4+2 /* cr2.eq != 0 if kernel address */
393 cmpldi cr0,r14,0
400 cmpdi cr0,r14,0
406 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.1.27/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.h8 #define FPSID cr0
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.h356 unsigned long cr0; member
733 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
959 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0);
/linux-4.1.27/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.1.27/arch/s390/lib/
Ddelay.c32 unsigned long cr0, cr6, new; in __udelay_disabled() local
37 __ctl_store(cr0, 0, 0); in __udelay_disabled()
39 new = (cr0 & 0xffff00e0) | 0x00000800; in __udelay_disabled()
49 __ctl_load(cr0, 0, 0); in __udelay_disabled()
/linux-4.1.27/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.1.27/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.1.27/arch/s390/kernel/
Dnmi.c155 union ctlreg0 cr0; in s390_revalidate_registers() local
164 cr0.val = S390_lowcore.cregs_save_area[0]; in s390_revalidate_registers()
165 cr0.afp = cr0.vx = 1; in s390_revalidate_registers()
166 __ctl_load(cr0.val, 0, 0); in s390_revalidate_registers()
Dearly.c250 unsigned long cr0, cr0_new; in early_pgm_check_handler() local
258 __ctl_store(cr0, 0, 0); in early_pgm_check_handler()
259 cr0_new = cr0 & ~(1UL << 28); in early_pgm_check_handler()
262 __ctl_load(cr0, 0, 0); in early_pgm_check_handler()
Dhead64.S47 .Lctl: .quad 0x04040000 # cr0: AFP registers & secondary space
Dsclp.S50 lhi %r6,0x0200 # cr mask for ext int (cr0.54)
53 ahi %r6,0x0800 # cr mask for clock int (cr0.52)
/linux-4.1.27/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
Di387.c200 unsigned long cr0; in fpu_init() local
218 cr0 = read_cr0(); in fpu_init()
219 cr0 &= ~(X86_CR0_TS|X86_CR0_EM); /* clear TS and EM */ in fpu_init()
221 cr0 |= X86_CR0_EM; in fpu_init()
222 write_cr0(cr0); in fpu_init()
653 unsigned long cr0; in fpu_detect() local
658 cr0 = read_cr0(); in fpu_detect()
659 cr0 &= ~(X86_CR0_TS | X86_CR0_EM); in fpu_detect()
660 write_cr0(cr0); in fpu_detect()
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()
Dhead_32.S325 movl %eax,%cr0
401 movl %eax,%cr0 /* ..and set paging (PG) bit */
449 movl %cr0,%eax
452 movl %eax,%cr0
Dprocess_64.c61 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
94 cr0 = read_cr0(); in __show_regs()
102 es, cr0); in __show_regs()
Dasm-offsets_64.c74 ENTRY(cr0); in main()
Dhead_64.S220 movq %rax, %cr0
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/spi/
Dspi-dw.c33 u16 cr0; member
294 u32 cr0 = 0; in dw_spi_transfer_one() local
309 cr0 = chip->cr0; in dw_spi_transfer_one()
335 cr0 = (transfer->bits_per_word - 1) in dw_spi_transfer_one()
353 cr0 &= ~SPI_TMOD_MASK; in dw_spi_transfer_one()
354 cr0 |= (chip->tmode << SPI_TMOD_OFFSET); in dw_spi_transfer_one()
357 dw_writel(dws, DW_SPI_CTRL0, cr0); in dw_spi_transfer_one()
463 chip->cr0 = (chip->bits_per_word - 1) in dw_spi_setup()
469 chip->cr0 |= 1 << SPI_SRL_OFFSET; in dw_spi_setup()
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.c505 u32 cr0 = (CR0_BHT_8BIT << CR0_BHT_OFFSET) in rockchip_spi_config() local
508 cr0 |= (rs->n_bytes << CR0_DFS_OFFSET); in rockchip_spi_config()
509 cr0 |= ((rs->mode & 0x3) << CR0_SCPH_OFFSET); in rockchip_spi_config()
510 cr0 |= (rs->tmode << CR0_XFM_OFFSET); in rockchip_spi_config()
511 cr0 |= (rs->type << CR0_FRF_OFFSET); in rockchip_spi_config()
545 cr0 |= rsd << CR0_RSD_OFFSET; in rockchip_spi_config()
547 writel_relaxed(cr0, rs->regs + ROCKCHIP_SPI_CTRLR0); in rockchip_spi_config()
559 dev_dbg(rs->dev, "cr0 0x%x, div %d\n", cr0, div); in rockchip_spi_config()
Dspi-pxa2xx.c816 u32 cr0; in pump_transfers() local
895 cr0 = chip->cr0; in pump_transfers()
939 cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, bits); in pump_transfers()
984 if ((pxa2xx_spi_read(drv_data, SSCR0) != cr0) in pump_transfers()
988 pxa2xx_spi_write(drv_data, SSCR0, cr0 & ~SSCR0_SSE); in pump_transfers()
994 pxa2xx_spi_write(drv_data, SSCR0, cr0); in pump_transfers()
1175 chip->cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, in setup()
1201 / (1 + ((chip->cr0 & SSCR0_SCR(0xfff)) >> 8)), in setup()
1206 / (1 + ((chip->cr0 & SSCR0_SCR(0x0ff)) >> 8)), in setup()
1219 chip->cr0 |= SSCR0_EDSS; in setup()
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()
1951 chip->cr0 = 0; in pl022_setup()
1984 SSP_WRITE_BITS(chip->cr0, chip_info->duplex, in pl022_setup()
1986 SSP_WRITE_BITS(chip->cr0, chip_info->ctrl_len, in pl022_setup()
1988 SSP_WRITE_BITS(chip->cr0, chip_info->iface, in pl022_setup()
1993 SSP_WRITE_BITS(chip->cr0, bits - 1, in pl022_setup()
2010 SSP_WRITE_BITS(chip->cr0, bits - 1, in pl022_setup()
2012 SSP_WRITE_BITS(chip->cr0, chip_info->iface, in pl022_setup()
[all …]
Dspi-pxa2xx.h94 u32 cr0; member
/linux-4.1.27/arch/s390/include/asm/
Dswitch_to.h106 unsigned long cr0, flags; in save_vx_regs_safe() local
109 __ctl_store(cr0, 0, 0); in save_vx_regs_safe()
113 __ctl_load(cr0, 0, 0); in save_vx_regs_safe()
Dkvm_host.h486 unsigned long cr0; member
/linux-4.1.27/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.1.27/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.c663 unsigned long cr0; in prepare_set() local
675 cr0 = read_cr0() | X86_CR0_CD; in prepare_set()
676 write_cr0(cr0); in prepare_set()
/linux-4.1.27/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.1.27/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.1.27/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).
321 - mov to cr0/cr4/efer
332 Emulating cr0.wp
335 If tdp is not enabled, the host must keep cr0.wp=1 so page write protection
337 cr0.wp=1, this does not present a problem. However when the guest cr0.wp=0,
[all …]
Dapi.txt344 __u64 cr0, cr2, cr3, cr4, cr8;
/linux-4.1.27/arch/x86/platform/olpc/
Dxo1-wakeup.S32 movl %eax, %cr0
66 movl %cr0, %edx
/linux-4.1.27/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.1.27/arch/parisc/include/asm/
Dasmregs.h130 rctr: .reg %cr0
157 cr0: .reg %cr0
/linux-4.1.27/arch/powerpc/platforms/52xx/
Dmpc52xx_sleep.S33 cmpi cr0, r10, 1
34 bne cr0, 1b
Dlite5200_sleep.S186 cmp cr0, r13, r12
/linux-4.1.27/arch/arm/include/asm/hardware/
Dssp.h14 unsigned int cr0; member
/linux-4.1.27/arch/x86/power/
Dcpu.c106 ctxt->cr0 = read_cr0(); in __save_processor_state()
185 write_cr0(ctxt->cr0); in __restore_processor_state()
/linux-4.1.27/arch/powerpc/sysdev/
Ddcr-low.S17 cmpli cr0,r3,1024; \
/linux-4.1.27/arch/x86/kvm/
Dsvm.c1170 svm->vcpu.arch.cr0 = 0; in init_vmcb()
1533 ulong gcr0 = svm->vcpu.arch.cr0; in update_cr0_intercept()
1534 u64 *hcr0 = &svm->vmcb->save.cr0; in update_cr0_intercept()
1553 static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in svm_set_cr0() argument
1559 if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) { in svm_set_cr0()
1564 if (is_paging(vcpu) && !(cr0 & X86_CR0_PG)) { in svm_set_cr0()
1570 vcpu->arch.cr0 = cr0; in svm_set_cr0()
1573 cr0 |= X86_CR0_PG | X86_CR0_WP; in svm_set_cr0()
1576 cr0 |= X86_CR0_TS; in svm_set_cr0()
1582 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.c1979 ulong cr0; in vmx_fpu_activate() local
1984 cr0 = vmcs_readl(GUEST_CR0); in vmx_fpu_activate()
1985 cr0 &= ~(X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
1986 cr0 |= kvm_read_cr0_bits(vcpu, X86_CR0_TS | X86_CR0_MP); in vmx_fpu_activate()
1987 vmcs_writel(GUEST_CR0, cr0); in vmx_fpu_activate()
2035 (vcpu->arch.cr0 & X86_CR0_TS); in vmx_fpu_deactivate()
2038 vmcs_writel(CR0_READ_SHADOW, vcpu->arch.cr0); in vmx_fpu_deactivate()
3483 vcpu->arch.cr0 &= ~cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3484 vcpu->arch.cr0 |= vmcs_readl(GUEST_CR0) & cr0_guest_owned_bits; in vmx_decache_cr0_guest_bits()
3538 unsigned long cr0, in ept_update_paging_mode_cr0() argument
[all …]
Dx86.c572 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in kvm_set_cr0() argument
578 cr0 |= X86_CR0_ET; in kvm_set_cr0()
581 if (cr0 & 0xffffffff00000000UL) in kvm_set_cr0()
585 cr0 &= ~CR0_RESERVED_BITS; in kvm_set_cr0()
587 if ((cr0 & X86_CR0_NW) && !(cr0 & X86_CR0_CD)) in kvm_set_cr0()
590 if ((cr0 & X86_CR0_PG) && !(cr0 & X86_CR0_PE)) in kvm_set_cr0()
593 if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) { in kvm_set_cr0()
610 if (!(cr0 & X86_CR0_PG) && kvm_read_cr4_bits(vcpu, X86_CR4_PCIDE)) in kvm_set_cr0()
613 kvm_x86_ops->set_cr0(vcpu, cr0); in kvm_set_cr0()
615 if ((cr0 ^ old_cr0) & X86_CR0_PG) { in kvm_set_cr0()
[all …]
Demulate.c3325 ulong cr0; in em_clts() local
3327 cr0 = ctxt->ops->get_cr(ctxt, 0); in em_clts()
3328 cr0 &= ~X86_CR0_TS; in em_clts()
3329 ctxt->ops->set_cr(ctxt, 0, cr0); in em_clts()
/linux-4.1.27/arch/x86/xen/
Denlighten.c990 unsigned long cr0 = this_cpu_read(xen_cr0_value); in xen_read_cr0() local
992 if (unlikely(cr0 == 0)) { in xen_read_cr0()
993 cr0 = native_read_cr0(); in xen_read_cr0()
994 this_cpu_write(xen_cr0_value, cr0); in xen_read_cr0()
997 return cr0; in xen_read_cr0()
1000 static void xen_write_cr0(unsigned long cr0) in xen_write_cr0() argument
1004 this_cpu_write(xen_cr0_value, cr0); in xen_write_cr0()
1010 MULTI_fpu_taskswitch(mcs.mc, (cr0 & X86_CR0_TS) != 0); in xen_write_cr0()
/linux-4.1.27/arch/powerpc/include/asm/
Dirqflags.h51 cmpwi cr0,__rA,0; \
Dppc_asm.h551 #define cr0 0 macro
/linux-4.1.27/arch/sh/include/cpu-sh5/cpu/
Dregisters.h25 #define SR cr0
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_slb.S85 cmpd cr0, r11, r12
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/x86/kernel/acpi/
Dwakeup_64.S91 movq %rbx, %cr0
/linux-4.1.27/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.1.27/arch/x86/include/uapi/asm/
Dkvm.h148 __u64 cr0, cr2, cr3, cr4, cr8; member
/linux-4.1.27/drivers/crypto/ccp/
Dccp-ops.c197 u32 cr0, cmd; in ccp_do_cmd() local
207 cr0 = (cmd_q->id << REQ0_CMD_Q_SHIFT) in ccp_do_cmd()
212 cr0 |= REQ0_STOP_ON_COMPLETE in ccp_do_cmd()
216 cr0 |= REQ0_INT_ON_COMPLETE; in ccp_do_cmd()
229 iowrite32(cr0, ccp->io_regs + CMD_REQ0); in ccp_do_cmd()
233 if (cr0 & REQ0_INT_ON_COMPLETE) { in ccp_do_cmd()
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dcache.S76 cmplwi cr0,r3,0x7000
/linux-4.1.27/tools/testing/selftests/powerpc/copyloops/
Dcopyuser_64.S35 crand cr0*4+2,cr0*4+2,cr6*4+2
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-class-cxl84 AFU configuration records (eg. /sys/class/cxl/afu0.0/cr0):
/linux-4.1.27/arch/parisc/kernel/
Dentry.S799 mtctl %r0, %cr0 /* Needed for single stepping */
1889 mtctl %r2,%cr0 /* for immediate trap */
/linux-4.1.27/fs/cifs/
Dcifspdu.h2711 char cr0; /* \n */ member
/linux-4.1.27/Documentation/s390/
DDebugging390.txt49 16 Control registers, 32 bit on s/390 and 64 bit on z/Architecture, cr0-cr15,