Lines Matching refs:irq_status
249 static u32 aspeed_i2c_slave_irq(struct aspeed_i2c_bus *bus, u32 irq_status) in aspeed_i2c_slave_irq() argument
265 if (irq_status & ASPEED_I2CD_INTR_NORMAL_STOP) { in aspeed_i2c_slave_irq()
270 if (irq_status & ASPEED_I2CD_INTR_TX_NAK && in aspeed_i2c_slave_irq()
286 if (irq_status & ASPEED_I2CD_INTR_SLAVE_MATCH) { in aspeed_i2c_slave_irq()
300 irq_status, command); in aspeed_i2c_slave_irq()
303 if (irq_status & ASPEED_I2CD_INTR_RX_DONE) { in aspeed_i2c_slave_irq()
319 if (unlikely(irq_status & ASPEED_I2CD_INTR_TX_ACK)) in aspeed_i2c_slave_irq()
327 if (unlikely(!(irq_status & ASPEED_I2CD_INTR_TX_ACK))) { in aspeed_i2c_slave_irq()
411 static int aspeed_i2c_is_irq_error(u32 irq_status) in aspeed_i2c_is_irq_error() argument
413 if (irq_status & ASPEED_I2CD_INTR_ARBIT_LOSS) in aspeed_i2c_is_irq_error()
415 if (irq_status & (ASPEED_I2CD_INTR_SDA_DL_TIMEOUT | in aspeed_i2c_is_irq_error()
418 if (irq_status & (ASPEED_I2CD_INTR_ABNORMAL)) in aspeed_i2c_is_irq_error()
424 static u32 aspeed_i2c_master_irq(struct aspeed_i2c_bus *bus, u32 irq_status) in aspeed_i2c_master_irq() argument
431 if (irq_status & ASPEED_I2CD_INTR_BUS_RECOVER_DONE) { in aspeed_i2c_master_irq()
442 ret = aspeed_i2c_is_irq_error(irq_status); in aspeed_i2c_master_irq()
445 irq_status); in aspeed_i2c_master_irq()
446 irq_handled |= (irq_status & ASPEED_I2CD_INTR_MASTER_ERRORS); in aspeed_i2c_master_irq()
448 irq_handled = irq_status; in aspeed_i2c_master_irq()
463 irq_status); in aspeed_i2c_master_irq()
486 if (unlikely(irq_status & ASPEED_I2CD_INTR_SLAVE_MATCH)) { in aspeed_i2c_master_irq()
496 if (unlikely(!(irq_status & ASPEED_I2CD_INTR_TX_ACK))) { in aspeed_i2c_master_irq()
497 if (unlikely(!(irq_status & ASPEED_I2CD_INTR_TX_NAK))) { in aspeed_i2c_master_irq()
521 if (unlikely(irq_status & ASPEED_I2CD_INTR_TX_NAK)) { in aspeed_i2c_master_irq()
525 } else if (unlikely(!(irq_status & ASPEED_I2CD_INTR_TX_ACK))) { in aspeed_i2c_master_irq()
544 if (!(irq_status & ASPEED_I2CD_INTR_RX_DONE)) in aspeed_i2c_master_irq()
548 if (unlikely(!(irq_status & ASPEED_I2CD_INTR_RX_DONE))) { in aspeed_i2c_master_irq()
579 if (unlikely(!(irq_status & ASPEED_I2CD_INTR_NORMAL_STOP))) { in aspeed_i2c_master_irq()
582 irq_status); in aspeed_i2c_master_irq()
594 irq_status); in aspeed_i2c_master_irq()