Lines Matching refs:i2c_status
1470 unsigned int i2c_status; in hw20k2_i2c_init() local
1486 i2c_status = hw_read_20kx(hw, I2C_IF_STATUS); in hw20k2_i2c_init()
1488 set_field(&i2c_status, I2C_STATUS_DCM, 1); /* Direct control mode */ in hw20k2_i2c_init()
1490 hw_write_20kx(hw, I2C_IF_STATUS, i2c_status); in hw20k2_i2c_init()
1497 unsigned int i2c_status; in hw20k2_i2c_uninit() local
1505 i2c_status = hw_read_20kx(hw, I2C_IF_STATUS); in hw20k2_i2c_uninit()
1507 set_field(&i2c_status, I2C_STATUS_DCM, 0); /* I2C mode */ in hw20k2_i2c_uninit()
1509 hw_write_20kx(hw, I2C_IF_STATUS, i2c_status); in hw20k2_i2c_uninit()
1529 unsigned int i2c_status; in hw20k2_i2c_read() local
1531 i2c_status = hw_read_20kx(hw, I2C_IF_STATUS); in hw20k2_i2c_read()
1532 set_field(&i2c_status, I2C_STATUS_BC, in hw20k2_i2c_read()
1534 hw_write_20kx(hw, I2C_IF_STATUS, i2c_status); in hw20k2_i2c_read()
1556 unsigned int i2c_status; in hw20k2_i2c_write() local
1558 i2c_status = hw_read_20kx(hw, I2C_IF_STATUS); in hw20k2_i2c_write()
1560 set_field(&i2c_status, I2C_STATUS_BC, in hw20k2_i2c_write()
1564 hw_write_20kx(hw, I2C_IF_STATUS, i2c_status); in hw20k2_i2c_write()