Lines Matching refs:reg_stat
512 static void i2c_cmpl_handler(const struct device *dev, uint32_t reg_stat) in i2c_cmpl_handler() argument
594 uint32_t reg_stat, uint32_t reg_ctrl) in andes_i2c_target_event() argument
604 if (reg_stat & STATUS_ADDR_HIT) { in andes_i2c_target_event()
626 if (reg_stat & STATUS_BYTE_RECV) { in andes_i2c_target_event()
632 if ((reg_stat & STATUS_CMPL) == 0) { in andes_i2c_target_event()
640 } else if (reg_stat & STATUS_BYTE_TRANS) { in andes_i2c_target_event()
646 if (reg_stat & STATUS_CMPL) { in andes_i2c_target_event()
647 i2c_cmpl_handler(dev, reg_stat); in andes_i2c_target_event()
697 uint32_t reg_set, reg_stat = 0, reg_ctrl = 0; in i2c_atciic100_irq_handler() local
699 reg_stat = sys_read32(I2C_STAT(dev)); in i2c_atciic100_irq_handler()
704 sys_write32((reg_stat & STATUS_W1C_ALL), I2C_STAT(dev)); in i2c_atciic100_irq_handler()
708 andes_i2c_target_event(dev, reg_stat, reg_ctrl); in i2c_atciic100_irq_handler()
712 if (reg_stat & STATUS_ADDR_HIT) { in i2c_atciic100_irq_handler()
716 if (reg_stat & STATUS_FIFO_EMPTY) { in i2c_atciic100_irq_handler()
720 if (reg_stat & STATUS_FIFO_FULL) { in i2c_atciic100_irq_handler()
725 if (reg_stat & STATUS_CMPL) { in i2c_atciic100_irq_handler()
727 i2c_cmpl_handler(dev, reg_stat); in i2c_atciic100_irq_handler()
730 if ((reg_stat & STATUS_ARB_LOSE) && (reg_set & SETUP_CONTROLLER)) { in i2c_atciic100_irq_handler()