Home
last modified time | relevance | path

Searched refs:cr2 (Results 1 – 25 of 64) sorted by relevance

123

/Linux-v6.6/drivers/i2c/busses/
Di2c-stm32f7.c194 u32 cr2; member
796 u32 cr2; in stm32f7_i2c_reload() local
801 cr2 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_reload()
803 cr2 &= ~STM32F7_I2C_CR2_NBYTES_MASK; in stm32f7_i2c_reload()
805 cr2 |= STM32F7_I2C_CR2_NBYTES(STM32F7_I2C_MAX_LEN); in stm32f7_i2c_reload()
807 cr2 &= ~STM32F7_I2C_CR2_RELOAD; in stm32f7_i2c_reload()
808 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_reload()
811 writel_relaxed(cr2, i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_reload()
817 u32 cr2; in stm32f7_i2c_smbus_reload() local
831 cr2 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_reload()
[all …]
Di2c-stm32f4.c154 u32 cr2 = 0; in stm32f4_i2c_set_periph_clk_freq() local
185 cr2 |= STM32F4_I2C_CR2_FREQ(freq); in stm32f4_i2c_set_periph_clk_freq()
186 writel_relaxed(cr2, i2c_dev->base + STM32F4_I2C_CR2); in stm32f4_i2c_set_periph_clk_freq()
561 u32 status, ien, event, cr2; in stm32f4_i2c_isr_event() local
563 cr2 = readl_relaxed(i2c_dev->base + STM32F4_I2C_CR2); in stm32f4_i2c_isr_event()
564 ien = cr2 & STM32F4_I2C_CR2_IRQ_MASK; in stm32f4_i2c_isr_event()
594 cr2 |= STM32F4_I2C_CR2_ITBUFEN; in stm32f4_i2c_isr_event()
595 writel_relaxed(cr2, i2c_dev->base + STM32F4_I2C_CR2); in stm32f4_i2c_isr_event()
/Linux-v6.6/arch/x86/um/shared/sysdep/
Dmcontext.h15 (fi).cr2 = (mc)->cr2; \
24 (fi).cr2 = (mc)->gregs[REG_CR2]; \
Dfaultinfo_32.h20 unsigned long cr2; /* in ptrace_faultinfo called addr */ member
25 #define FAULT_ADDRESS(fi) ((fi).cr2)
Dfaultinfo_64.h20 unsigned long cr2; /* in ptrace_faultinfo called addr */ member
25 #define FAULT_ADDRESS(fi) ((fi).cr2)
/Linux-v6.6/arch/x86/kernel/
Ddoublefault_32.c26 unsigned long cr2; in doublefault_shim() local
31 cr2 = native_read_cr2(); in doublefault_shim()
73 exc_double_fault(&regs, 0, cr2); in doublefault_shim()
Dprocess_32.c62 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
81 cr2 = read_cr2(); in __show_regs()
85 log_lvl, cr0, cr2, cr3, cr4); in __show_regs()
Dasm-offsets_64.c50 ENTRY(cr2); in main()
Dsev.c288 ctxt->fi.cr2 = ctxt->regs->ip; in __vc_decode_user_insn()
294 ctxt->fi.cr2 = 0; in __vc_decode_user_insn()
316 ctxt->fi.cr2 = ctxt->regs->ip; in __vc_decode_kern_insn()
409 ctxt->fi.cr2 = (unsigned long)dst; in vc_write_mem()
487 ctxt->fi.cr2 = (unsigned long)src; in vc_read_mem()
506 ctxt->fi.cr2 = vaddr; in vc_slow_virt_to_phys()
1399 native_write_cr2(ctxt->fi.cr2); in vc_early_forward_exception()
1824 write_cr2(ctxt->fi.cr2); in vc_forward_exception()
Dprocess_64.c70 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; in __show_regs() local
114 cr2 = read_cr2(); in __show_regs()
123 log_lvl, cr2, cr3, cr4); in __show_regs()
/Linux-v6.6/arch/x86/include/uapi/asm/
Dsigcontext.h232 __u32 cr2; member
264 __u64 cr2; member
322 __u32 cr2; member
379 __u64 cr2; member
/Linux-v6.6/drivers/iio/trigger/
Dstm32-timer-trigger.c81 u32 cr2; member
291 u32 cr2; in stm32_tt_show_master_mode() local
293 regmap_read(priv->regmap, TIM_CR2, &cr2); in stm32_tt_show_master_mode()
296 cr2 = (cr2 & TIM_CR2_MMS2) >> TIM_CR2_MMS2_SHIFT; in stm32_tt_show_master_mode()
298 cr2 = (cr2 & TIM_CR2_MMS) >> TIM_CR2_MMS_SHIFT; in stm32_tt_show_master_mode()
300 return sysfs_emit(buf, "%s\n", master_mode_table[cr2]); in stm32_tt_show_master_mode()
839 regmap_read(priv->regmap, TIM_CR2, &priv->bak.cr2); in stm32_timer_trigger_suspend()
865 regmap_write(priv->regmap, TIM_CR2, priv->bak.cr2); in stm32_timer_trigger_resume()
/Linux-v6.6/arch/powerpc/kernel/
Dcpu_setup_6xx.S197 cmpwi cr2,r10,11
199 cror 4*cr0+eq,4*cr0+eq,4*cr2+eq
345 cmplwi cr2,r3,0x800c /* 7410 */
352 cror 4*cr1+eq,4*cr1+eq,4*cr2+eq
416 cmplwi cr2,r3,0x800c /* 7410 */
423 cror 4*cr1+eq,4*cr1+eq,4*cr2+eq
442 bne cr2,1f
/Linux-v6.6/arch/s390/kernel/
Dnmi.c213 union ctlreg2 cr2; in s390_validate_registers() local
293 cr2.val = S390_lowcore.cregs_save_area[2]; in s390_validate_registers()
294 if (cr2.gse) { in s390_validate_registers()
Dsetup.c791 union ctlreg2 cr2; in setup_cr() local
800 __ctl_store(cr2.val, 2, 2); in setup_cr()
803 cr2.ducto = (unsigned long)__ctl_duct >> 6; in setup_cr()
806 __ctl_load(cr2.val, 2, 2); in setup_cr()
/Linux-v6.6/arch/powerpc/platforms/cell/
Dcbe_thermal.c302 u64 cr2; in init_default_values() local
335 cr2 = 0x04; in init_default_values()
357 out_be64(&pmd_regs->tm_cr2, cr2); in init_default_values()
/Linux-v6.6/arch/x86/include/asm/
Dsuspend_32.h20 unsigned long cr0, cr2, cr3, cr4; member
Dsuspend_64.h41 unsigned long cr0, cr2, cr3, cr4; member
/Linux-v6.6/drivers/tty/serial/
Dfsl_lpuart.c1135 unsigned char cr2; in lpuart_copy_rx_to_tty() local
1138 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1139 cr2 &= ~UARTCR2_RE; in lpuart_copy_rx_to_tty()
1140 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1166 cr2 |= UARTCR2_RE; in lpuart_copy_rx_to_tty()
1167 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1613 unsigned char val, cr2; in lpuart_setup_watermark() local
1616 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1617 cr2_saved = cr2; in lpuart_setup_watermark()
1618 cr2 &= ~(UARTCR2_TIE | UARTCR2_TCIE | UARTCR2_TE | in lpuart_setup_watermark()
[all …]
Dstm32-usart.c47 .cr2 = 0x10,
64 .cr2 = 0x04,
86 .cr2 = 0x04,
1070 val = readl_relaxed(port->membase + ofs->cr2); in stm32_usart_startup()
1072 writel_relaxed(val, port->membase + ofs->cr2); in stm32_usart_startup()
1152 u32 cr1, cr2, cr3, isr; in stm32_usart_set_termios() local
1183 cr2 = stm32_port->swap ? USART_CR2_SWAP : 0; in stm32_usart_set_termios()
1196 cr2 |= USART_CR2_STOP_2B; in stm32_usart_set_termios()
1241 cr2 |= USART_CR2_RTOEN; in stm32_usart_set_termios()
1348 writel_relaxed(cr2, port->membase + ofs->cr2); in stm32_usart_set_termios()
/Linux-v6.6/arch/powerpc/boot/
Dppc_asm.h15 #define cr2 2 macro
/Linux-v6.6/arch/x86/include/asm/xen/
Dinterface_32.h76 unsigned long cr2; member
Dinterface_64.h137 unsigned long cr2; member
/Linux-v6.6/arch/x86/power/
Dcpu.c124 ctxt->cr2 = read_cr2(); in __save_processor_state()
214 write_cr2(ctxt->cr2); in __restore_processor_state()
/Linux-v6.6/drivers/clk/
Dclk-si521xx.c43 #define SI521XX_OE_MAP(cr1, cr2) (((cr2) << 8) | (cr1)) argument

123