Lines Matching refs:writeb
183 writeb(dfsr, &base->dfsrr); /* set default filter */ in set_i2c_bus_speed()
184 writeb(fdr, &base->fdr); /* set bus speed */ in set_i2c_bus_speed()
194 writeb(fdr, &base->fdr); /* set bus speed */ in set_i2c_bus_speed()
227 writeb(I2C_CR_MEN | I2C_CR_MSTA, &base->cr); in fsl_i2c_fixup()
237 writeb(0, &base->cr); in fsl_i2c_fixup()
239 writeb(I2C_CR_MSTA | flags, &base->cr); in fsl_i2c_fixup()
240 writeb(I2C_CR_MEN | I2C_CR_MSTA | flags, &base->cr); in fsl_i2c_fixup()
253 writeb(I2C_CR_MEN | flags, &base->cr); in fsl_i2c_fixup()
254 writeb(0, &base->sr); in fsl_i2c_fixup()
273 writeb(0, &base->cr); /* stop I2C controller */ in __i2c_init()
276 writeb(slaveadd << 1, &base->adr);/* write slave address */ in __i2c_init()
277 writeb(0x0, &base->sr); /* clear status register */ in __i2c_init()
278 writeb(I2C_CR_MEN, &base->cr); /* start I2C controller */ in __i2c_init()
319 writeb(0x0, &base->sr); in i2c_wait()
346 writeb(I2C_CR_MEN | I2C_CR_MSTA | I2C_CR_MTX in i2c_write_addr()
350 writeb((dev << 1) | dir, &base->dr); in i2c_write_addr()
364 writeb(data[i], &base->dr); in __i2c_write_data()
378 writeb(I2C_CR_MEN | I2C_CR_MSTA | ((length == 1) ? I2C_CR_TXAK : 0), in __i2c_read_data()
390 writeb(I2C_CR_MEN | I2C_CR_MSTA | I2C_CR_TXAK, in __i2c_read_data()
395 writeb(I2C_CR_MEN | I2C_CR_MSTA | I2C_CR_MTX, in __i2c_read_data()
440 writeb(I2C_CR_MEN, &base->cr); in __i2c_read()
464 writeb(I2C_CR_MEN, &base->cr); in __i2c_write()
489 writeb(0, &base->cr); /* stop controller */ in __i2c_set_bus_speed()
491 writeb(I2C_CR_MEN, &base->cr); /* start controller */ in __i2c_set_bus_speed()