Lines Matching refs:master_state
156 enum aspeed_i2c_master_state master_state; member
369 bus->master_state = ASPEED_I2C_MASTER_PENDING; in aspeed_i2c_do_start()
374 bus->master_state = ASPEED_I2C_MASTER_START; in aspeed_i2c_do_start()
391 bus->master_state = ASPEED_I2C_MASTER_STOP; in aspeed_i2c_do_stop()
427 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_irq()
442 if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) { in aspeed_i2c_master_irq()
444 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_irq()
450 if (bus->master_state == ASPEED_I2C_MASTER_INACTIVE || in aspeed_i2c_master_irq()
451 bus->master_state == ASPEED_I2C_MASTER_PENDING) in aspeed_i2c_master_irq()
459 if (bus->master_state != ASPEED_I2C_MASTER_STOP && in aspeed_i2c_master_irq()
460 bus->master_state != ASPEED_I2C_MASTER_INACTIVE) in aspeed_i2c_master_irq()
471 if (bus->master_state == ASPEED_I2C_MASTER_START) { in aspeed_i2c_master_irq()
484 bus->master_state = ASPEED_I2C_MASTER_PENDING; in aspeed_i2c_master_irq()
493 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_irq()
508 bus->master_state = ASPEED_I2C_MASTER_RX_FIRST; in aspeed_i2c_master_irq()
510 bus->master_state = ASPEED_I2C_MASTER_TX_FIRST; in aspeed_i2c_master_irq()
513 switch (bus->master_state) { in aspeed_i2c_master_irq()
527 bus->master_state = ASPEED_I2C_MASTER_TX; in aspeed_i2c_master_irq()
563 bus->master_state = ASPEED_I2C_MASTER_RX; in aspeed_i2c_master_irq()
583 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_irq()
594 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_irq()
635 if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE && in aspeed_i2c_bus_irq()
636 bus->master_state != ASPEED_I2C_MASTER_PENDING) { in aspeed_i2c_bus_irq()
653 if (bus->master_state == ASPEED_I2C_MASTER_PENDING && in aspeed_i2c_bus_irq()
728 if (bus->master_state == ASPEED_I2C_MASTER_PENDING) in aspeed_i2c_master_xfer()
729 bus->master_state = ASPEED_I2C_MASTER_INACTIVE; in aspeed_i2c_master_xfer()