Lines Matching refs:writeb
112 writeb(iccl & 0xff, &dev->iccl); in sh_i2c_set_addr()
113 writeb(icch & 0xff, &dev->icch); in sh_i2c_set_addr()
120 writeb(icic, &dev->icic); in sh_i2c_set_addr()
122 writeb((SH_I2C_ICCR_ICE|SH_I2C_ICCR_RTS|SH_I2C_ICCR_BUSY), &dev->iccr); in sh_i2c_set_addr()
126 writeb(chip << 1, &dev->icdr); in sh_i2c_set_addr()
130 writeb(addr, &dev->icdr); in sh_i2c_set_addr()
132 writeb((SH_I2C_ICCR_ICE|SH_I2C_ICCR_RTS), &dev->iccr); in sh_i2c_set_addr()
141 writeb(0, &dev->icsr); in sh_i2c_finish()
153 writeb(val, &dev->icdr); in sh_i2c_raw_write()
157 writeb((SH_I2C_ICCR_ICE | SH_I2C_ICCR_RTS), &dev->iccr); in sh_i2c_raw_write()
181 writeb((SH_I2C_ICCR_ICE|SH_I2C_ICCR_RTS|SH_I2C_ICCR_BUSY), &dev->iccr); in sh_i2c_raw_read()
184 writeb(chip << 1 | 0x01, &dev->icdr); in sh_i2c_raw_read()
188 writeb((SH_I2C_ICCR_ICE|SH_I2C_ICCR_SCP), &dev->iccr); in sh_i2c_raw_read()
194 writeb((SH_I2C_ICCR_ICE|SH_I2C_ICCR_RACK), &dev->iccr); in sh_i2c_raw_read()