Lines Matching refs:_adap
359 static int npcm_i2c_get_SCL(struct i2c_adapter *_adap) in npcm_i2c_get_SCL() argument
361 struct npcm_i2c *bus = container_of(_adap, struct npcm_i2c, adap); in npcm_i2c_get_SCL()
366 static int npcm_i2c_get_SDA(struct i2c_adapter *_adap) in npcm_i2c_get_SDA() argument
368 struct npcm_i2c *bus = container_of(_adap, struct npcm_i2c, adap); in npcm_i2c_get_SDA()
1678 static int npcm_i2c_recovery_tgclk(struct i2c_adapter *_adap) in npcm_i2c_recovery_tgclk() argument
1684 struct npcm_i2c *bus = container_of(_adap, struct npcm_i2c, adap); in npcm_i2c_recovery_tgclk()
1688 if ((npcm_i2c_get_SDA(_adap) == 1) && (npcm_i2c_get_SCL(_adap) == 1)) { in npcm_i2c_recovery_tgclk()
1721 if (npcm_i2c_get_SDA(_adap)) { in npcm_i2c_recovery_tgclk()
1728 if (npcm_i2c_get_SDA(_adap)) { in npcm_i2c_recovery_tgclk()
1733 status = readx_poll_timeout(npcm_i2c_get_SCL, _adap, val, !val, in npcm_i2c_recovery_tgclk()
1745 if ((npcm_i2c_get_SDA(_adap) == 1) && (npcm_i2c_get_SCL(_adap) == 1)) in npcm_i2c_recovery_tgclk()
1760 static void npcm_i2c_recovery_init(struct i2c_adapter *_adap) in npcm_i2c_recovery_init() argument
1762 struct npcm_i2c *bus = container_of(_adap, struct npcm_i2c, adap); in npcm_i2c_recovery_init()
1775 _adap->bus_recovery_info = rinfo; in npcm_i2c_recovery_init()