Lines Matching refs:omap_i2c_read_reg
262 static inline u16 omap_i2c_read_reg(struct omap_i2c_dev *i2c_dev, int reg)
333 dev->iestate = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG);
340 iv = omap_i2c_read_reg(dev, OMAP_I2C_IV_REG); /* Read clears */
345 omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
363 omap_i2c_read_reg(dev, OMAP_I2C_CON_REG) &
371 while (!(omap_i2c_read_reg(dev, OMAP_I2C_SYSS_REG) &
533 while (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG) & OMAP_I2C_STAT_BB) {
569 w = omap_i2c_read_reg(dev, OMAP_I2C_BUF_REG);
597 u16 con = omap_i2c_read_reg(dev, OMAP_I2C_CON_REG);
599 con = omap_i2c_read_reg(dev, OMAP_I2C_CON_REG);
648 w = omap_i2c_read_reg(dev, OMAP_I2C_CON_REG);
723 if (!(omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG)
727 if (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG)
749 iv = omap_i2c_read_reg(dev, OMAP_I2C_IV_REG);
766 w = omap_i2c_read_reg(dev, OMAP_I2C_DATA_REG);
816 *stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
838 bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG);
839 while ((stat = (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG))) & bits) {
884 num_bytes = (omap_i2c_read_reg(dev,
890 w = omap_i2c_read_reg(dev, OMAP_I2C_DATA_REG);
927 num_bytes = omap_i2c_read_reg(dev,
1061 dev->rev = omap_i2c_read_reg(dev, OMAP_I2C_REV_REG) & 0xff;
1070 s = (omap_i2c_read_reg(dev, OMAP_I2C_BUFSTAT_REG) >> 14) & 0x3;