Home
last modified time | relevance | path

Searched refs:cr3 (Results 1 – 25 of 105) sorted by relevance

12345

/openbmc/linux/drivers/tty/serial/
H A Dstm32-usart.c48 .cr3 = 0x14,
65 .cr3 = 0x08,
87 .cr3 = 0x08,
181 static void stm32_usart_config_reg_rs485(u32 *cr1, u32 *cr3, u32 delay_ADE, in stm32_usart_config_reg_rs485() argument
188 *cr3 |= USART_CR3_DEM; in stm32_usart_config_reg_rs485()
224 u32 usartdiv, baud, cr1, cr3; in stm32_usart_config_rs485() local
231 cr3 = readl_relaxed(port->membase + ofs->cr3); in stm32_usart_config_rs485()
241 stm32_usart_config_reg_rs485(&cr1, &cr3, in stm32_usart_config_rs485()
247 cr3 &= ~USART_CR3_DEP; in stm32_usart_config_rs485()
249 cr3 |= USART_CR3_DEP; in stm32_usart_config_rs485()
[all …]
/openbmc/linux/arch/x86/power/
H A Dhibernate_asm_64.S30 movq %r9, %cr3
37 movq %cr3, %rcx; # flush TLB
38 movq %rcx, %cr3
93 movq %cr3, %rax
123 movq %rax, %cr3
128 movq %cr3, %rcx; # flush TLB
129 movq %rcx, %cr3;
H A Dhibernate_asm_32.S29 movl %cr3, %eax
53 movl %eax, %cr3
58 movl %cr3, %eax; # flush TLB
59 movl %eax, %cr3
87 movl %ebp, %cr3
H A Dhibernate.c60 unsigned long cr3; member
118 rdr->cr3 = restore_cr3 & ~CR3_PCID_MASK; in arch_hibernation_header_save()
140 restore_cr3 = rdr->cr3; in arch_hibernation_header_restore()
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dx86-5lvl.c13 static void (*la57_toggle)(void *cr3);
69 u64 *cr3 = (u64 *)__native_read_cr3(); in efi_5level_switch() local
82 new_cr3[0] = (u64)cr3 | _PAGE_TABLE_NOENC; in efi_5level_switch()
85 new_cr3 = (u64 *)(cr3[0] & PAGE_MASK); in efi_5level_switch()
/openbmc/linux/arch/x86/kernel/
H A Drelocate_kernel_64.S70 movq %cr3, %rax
103 movq %r9, %cr3
161 movq %r9, %cr3
182 movq %cr3, %rax
183 movq %rax, %cr3
224 movq %rax, %cr3
242 movq %rax, %cr3
H A Dsev_verify_cbit.S56 movq %cr3, %rcx
59 movq %rdi, %cr3
68 movq %rcx, %cr3
H A Drelocate_kernel_32.S54 movl %cr3, %eax
87 movl %eax, %cr3
136 movl %eax, %cr3
150 movl %eax, %cr3
192 movl %eax, %cr3
209 movl %eax, %cr3
H A Dprocess_32.c62 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
82 cr3 = __read_cr3(); in __show_regs()
85 log_lvl, cr0, cr2, cr3, cr4); in __show_regs()
/openbmc/linux/scripts/gdb/linux/
H A Dpgtable.py66 def __init__(self, cr3, page_levels): argument
67 self.cr3 = cr3
69 self.page_level_write_through = is_bit_defined_tupled(cr3, 3)
70 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4)
71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask()
/openbmc/linux/arch/x86/entry/
H A Dcalling.h169 mov %cr3, \scratch_reg
171 mov \scratch_reg, %cr3
180 mov %cr3, \scratch_reg
208 mov \scratch_reg, %cr3
220 movq %cr3, \scratch_reg
231 movq \scratch_reg, %cr3
268 movq \save_reg, %cr3
/openbmc/linux/arch/x86/platform/olpc/
H A Dxo1-wakeup.S25 # Set up %cr3
27 movl %eax, %cr3
51 movl %cr3, %eax
52 movl %eax, %cr3
/openbmc/linux/arch/x86/include/asm/xen/
H A Dinterface_32.h101 #define xen_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20)) argument
/openbmc/linux/arch/x86/kvm/
H A Dsmm.c57 CHECK_SMRAM32_OFFSET(cr3, 0xFFF8); in check_smram_offsets()
97 CHECK_SMRAM64_OFFSET(cr3, 0xFF50); in check_smram_offsets()
191 smram->cr3 = kvm_read_cr3(vcpu); in enter_smm_save_state_32()
250 smram->cr3 = kvm_read_cr3(vcpu); in enter_smm_save_state_64()
423 u64 cr0, u64 cr3, u64 cr4) in rsm_enter_protected_mode() argument
431 pcid = cr3 & 0xfff; in rsm_enter_protected_mode()
432 cr3 &= ~0xfff; in rsm_enter_protected_mode()
435 bad = kvm_set_cr3(vcpu, cr3); in rsm_enter_protected_mode()
457 bad = kvm_set_cr3(vcpu, cr3 | pcid); in rsm_enter_protected_mode()
507 smstate->cr3, smstate->cr4); in rsm_load_state_32()
[all …]
/openbmc/qemu/hw/char/
H A Dstm32l4x5_usart.c174 if (((s->isr & R_ISR_WUF_MASK) && (s->cr3 & R_CR3_WUFIE_MASK)) || in stm32l4x5_update_irq()
179 ((s->isr & R_ISR_CTSIF_MASK) && (s->cr3 & R_CR3_CTSIE_MASK)) || in stm32l4x5_update_irq()
186 ((s->cr1 & R_CR1_RXNEIE_MASK) || (s->cr3 & R_CR3_EIE_MASK))) || in stm32l4x5_update_irq()
188 ((s->isr & R_ISR_FE_MASK) && (s->cr3 & R_CR3_EIE_MASK)) || in stm32l4x5_update_irq()
221 if (!(s->cr3 & R_CR3_OVRDIS_MASK) && (s->isr & R_ISR_RXNE_MASK)) { in stm32l4x5_usart_base_receive()
381 s->cr3 = 0x00000000; in stm32l4x5_usart_base_reset_hold()
420 retvalue = s->cr3; in stm32l4x5_usart_base_read()
482 s->cr3 = value; in stm32l4x5_usart_base_write()
571 VMSTATE_UINT32(cr3, Stm32l4x5UsartBaseState),
/openbmc/u-boot/drivers/spi/
H A Dsh_spi.c101 sh_spi_write(0x00, &ss->regs->cr3); in spi_setup_slave()
184 sh_spi_write(SH_SPI_MAX_BYTE, &ss->regs->cr3); in sh_spi_receive()
186 sh_spi_write(len, &ss->regs->cr3); in sh_spi_receive()
197 sh_spi_write(0, &ss->regs->cr3); in sh_spi_receive()
/openbmc/qemu/include/hw/xen/interface/arch-x86/
H A Dxen-x86_32.h151 #define xen_cr3_to_pfn(cr3) (((unsigned)(cr3) >> 12) | ((unsigned)(cr3) << 20)) argument
/openbmc/linux/arch/x86/mm/
H A Dtlb.c161 unsigned long cr3 = __sme_pa(pgd) | lam; in build_cr3() local
165 cr3 |= kern_pcid(asid); in build_cr3()
170 return cr3; in build_cr3()
704 unsigned long cr3 = __read_cr3(); in initialize_tlbstate_and_flush() local
707 WARN_ON((cr3 & CR3_ADDR_MASK) != __pa(mm->pgd)); in initialize_tlbstate_and_flush()
710 WARN_ON(cr3 & (X86_CR3_LAM_U48 | X86_CR3_LAM_U57)); in initialize_tlbstate_and_flush()
1124 unsigned long cr3 = in __get_current_cr3_fast() local
1132 VM_BUG_ON(cr3 != __read_cr3()); in __get_current_cr3_fast()
1133 return cr3; in __get_current_cr3_fast()
/openbmc/qemu/target/i386/tcg/sysemu/
H A Dexcp_helper.c29 target_ulong cr3; member
173 pte_addr = (in->cr3 & ~0xfff) + (((addr >> 48) & 0x1ff) << 3); in mmu_translate()
190 pte = in->cr3; in mmu_translate()
244 pte_addr = (in->cr3 & 0xffffffe0ULL) + ((addr >> 27) & 0x18); in mmu_translate()
310 pte_addr = (in->cr3 & 0xfffff000ULL) + ((addr >> 20) & 0xffc); in mmu_translate()
560 in.cr3 = env->nested_cr3; in get_physical_address()
580 in.cr3 = env->cr[3]; in get_physical_address()
/openbmc/linux/drivers/media/platform/nxp/
H A Dimx7-media-csi.c347 u32 cr3; in imx7_csi_dma_reflash() local
349 cr3 = imx7_csi_reg_read(csi, CSI_CSICR3); in imx7_csi_dma_reflash()
350 cr3 |= BIT_DMA_REFLASH_RFF; in imx7_csi_dma_reflash()
351 imx7_csi_reg_write(csi, cr3, CSI_CSICR3); in imx7_csi_dma_reflash()
365 u32 cr3 = imx7_csi_reg_read(csi, CSI_CSICR3); in imx7_csi_dmareq_rff_enable() local
367 cr3 |= BIT_DMA_REQ_EN_RFF; in imx7_csi_dmareq_rff_enable()
368 cr3 |= BIT_HRESP_ERR_EN; in imx7_csi_dmareq_rff_enable()
369 cr3 &= ~BIT_RXFF_LEVEL_MASK; in imx7_csi_dmareq_rff_enable()
370 cr3 |= BIT_RXFF_LEVEL(2); in imx7_csi_dmareq_rff_enable()
372 imx7_csi_reg_write(csi, cr3, CSI_CSICR3); in imx7_csi_dmareq_rff_enable()
[all …]
/openbmc/linux/arch/x86/boot/compressed/
H A Defi_mixed.S188 movl %cr3, %eax
189 movl %eax, %cr3
220 movl %cr3, %eax
221 movl %eax, %cr3
/openbmc/linux/arch/x86/kvm/svm/
H A Dnested.c62 u64 cr3 = svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_pdptr() local
70 ret = kvm_vcpu_read_guest_page(vcpu, gpa_to_gfn(cr3), &pdpte, in nested_svm_get_tdp_pdptr()
71 (cr3 & GENMASK(11, 5)) + index * 8, 8); in nested_svm_get_tdp_pdptr()
303 CC(kvm_vcpu_is_illegal_gpa(vcpu, save->cr3))) in __nested_vmcb_check_save()
393 to->cr3 = from->cr3; in __nested_copy_vmcb_save_to_cache()
509 static int nested_svm_load_cr3(struct kvm_vcpu *vcpu, unsigned long cr3, in nested_svm_load_cr3() argument
512 if (CC(kvm_vcpu_is_illegal_gpa(vcpu, cr3))) in nested_svm_load_cr3()
516 CC(!load_pdptrs(vcpu, cr3))) in nested_svm_load_cr3()
519 vcpu->arch.cr3 = cr3; in nested_svm_load_cr3()
525 kvm_mmu_new_pgd(vcpu, cr3); in nested_svm_load_cr3()
[all …]
/openbmc/linux/include/xen/interface/hvm/
H A Dhvm_vcpu.h24 uint32_t cr3; member
87 uint64_t cr3; member
/openbmc/u-boot/drivers/serial/
H A Dserial_mxc.c124 u32 cr3; member
149 writel(0x404 | UCR3_ADNIMP, &base->cr3); in _mxc_serial_init()
151 writel(0x704 | UCR3_ADNIMP, &base->cr3); in _mxc_serial_init()
153 writel(0x704 | UCR3_ADNIMP, &base->cr3); in _mxc_serial_init()
/openbmc/linux/include/trace/events/
H A Dxen.h368 TP_PROTO(bool kernel, unsigned long cr3),
369 TP_ARGS(kernel, cr3),
372 __field(unsigned long, cr3)
375 __entry->cr3 = cr3),
377 __entry->kernel ? "kernel" : "user", __entry->cr3)

12345