Lines Matching refs:cr2

689 	u32 cr2;  in stm32f7_i2c_reload()  local
694 cr2 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_reload()
696 cr2 &= ~STM32F7_I2C_CR2_NBYTES_MASK; in stm32f7_i2c_reload()
698 cr2 |= STM32F7_I2C_CR2_NBYTES(STM32F7_I2C_MAX_LEN); in stm32f7_i2c_reload()
700 cr2 &= ~STM32F7_I2C_CR2_RELOAD; in stm32f7_i2c_reload()
701 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_reload()
704 writel_relaxed(cr2, i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_reload()
710 u32 cr2; in stm32f7_i2c_smbus_reload() local
724 cr2 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_reload()
725 cr2 &= ~(STM32F7_I2C_CR2_NBYTES_MASK | STM32F7_I2C_CR2_RELOAD); in stm32f7_i2c_smbus_reload()
726 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_smbus_reload()
727 writel_relaxed(cr2, i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_reload()
772 u32 cr1, cr2; in stm32f7_i2c_xfer_msg() local
784 cr2 = readl_relaxed(base + STM32F7_I2C_CR2); in stm32f7_i2c_xfer_msg()
787 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_xfer_msg()
789 cr2 |= STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_xfer_msg()
792 cr2 &= ~(STM32F7_I2C_CR2_HEAD10R | STM32F7_I2C_CR2_ADD10); in stm32f7_i2c_xfer_msg()
794 cr2 &= ~STM32F7_I2C_CR2_SADD10_MASK; in stm32f7_i2c_xfer_msg()
795 cr2 |= STM32F7_I2C_CR2_SADD10(f7_msg->addr); in stm32f7_i2c_xfer_msg()
796 cr2 |= STM32F7_I2C_CR2_ADD10; in stm32f7_i2c_xfer_msg()
798 cr2 &= ~STM32F7_I2C_CR2_SADD7_MASK; in stm32f7_i2c_xfer_msg()
799 cr2 |= STM32F7_I2C_CR2_SADD7(f7_msg->addr); in stm32f7_i2c_xfer_msg()
803 cr2 &= ~(STM32F7_I2C_CR2_NBYTES_MASK | STM32F7_I2C_CR2_RELOAD); in stm32f7_i2c_xfer_msg()
805 cr2 |= STM32F7_I2C_CR2_NBYTES(STM32F7_I2C_MAX_LEN); in stm32f7_i2c_xfer_msg()
806 cr2 |= STM32F7_I2C_CR2_RELOAD; in stm32f7_i2c_xfer_msg()
808 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_xfer_msg()
846 cr2 |= STM32F7_I2C_CR2_START; in stm32f7_i2c_xfer_msg()
852 writel_relaxed(cr2, base + STM32F7_I2C_CR2); in stm32f7_i2c_xfer_msg()
862 u32 cr1, cr2; in stm32f7_i2c_smbus_xfer_msg() local
868 cr2 = readl_relaxed(base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_xfer_msg()
872 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
874 cr2 |= STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
877 cr2 &= ~(STM32F7_I2C_CR2_ADD10 | STM32F7_I2C_CR2_SADD7_MASK); in stm32f7_i2c_smbus_xfer_msg()
878 cr2 |= STM32F7_I2C_CR2_SADD7(f7_msg->addr); in stm32f7_i2c_smbus_xfer_msg()
894 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
905 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
917 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
936 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
949 cr2 &= ~STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_xfer_msg()
962 cr2 |= STM32F7_I2C_CR2_PECBYTE; in stm32f7_i2c_smbus_xfer_msg()
967 cr2 &= ~STM32F7_I2C_CR2_PECBYTE; in stm32f7_i2c_smbus_xfer_msg()
971 cr2 &= ~(STM32F7_I2C_CR2_NBYTES_MASK | STM32F7_I2C_CR2_RELOAD); in stm32f7_i2c_smbus_xfer_msg()
972 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_smbus_xfer_msg()
986 cr2 & STM32F7_I2C_CR2_RD_WRN, in stm32f7_i2c_smbus_xfer_msg()
997 if (cr2 & STM32F7_I2C_CR2_RD_WRN) in stm32f7_i2c_smbus_xfer_msg()
1002 if (cr2 & STM32F7_I2C_CR2_RD_WRN) in stm32f7_i2c_smbus_xfer_msg()
1009 cr2 |= STM32F7_I2C_CR2_START; in stm32f7_i2c_smbus_xfer_msg()
1015 writel_relaxed(cr2, base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_xfer_msg()
1024 u32 cr1, cr2; in stm32f7_i2c_smbus_rep_start() local
1027 cr2 = readl_relaxed(base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_rep_start()
1031 cr2 |= STM32F7_I2C_CR2_RD_WRN; in stm32f7_i2c_smbus_rep_start()
1044 cr2 |= STM32F7_I2C_CR2_RELOAD; in stm32f7_i2c_smbus_rep_start()
1056 cr2 &= ~(STM32F7_I2C_CR2_NBYTES_MASK); in stm32f7_i2c_smbus_rep_start()
1057 cr2 |= STM32F7_I2C_CR2_NBYTES(f7_msg->count); in stm32f7_i2c_smbus_rep_start()
1078 cr2 & STM32F7_I2C_CR2_RD_WRN, in stm32f7_i2c_smbus_rep_start()
1095 cr2 |= STM32F7_I2C_CR2_START; in stm32f7_i2c_smbus_rep_start()
1099 writel_relaxed(cr2, base + STM32F7_I2C_CR2); in stm32f7_i2c_smbus_rep_start()
1306 u32 cr2, status, mask; in stm32f7_i2c_slave_isr_event() local
1333 cr2 = readl_relaxed(i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_slave_isr_event()
1334 cr2 |= STM32F7_I2C_CR2_NBYTES(1); in stm32f7_i2c_slave_isr_event()
1335 writel_relaxed(cr2, i2c_dev->base + STM32F7_I2C_CR2); in stm32f7_i2c_slave_isr_event()