Lines Matching full:scl

86  * Raise scl line, and do checking for delays. This is necessary for slower
95 /* Not all adapters have scl sense line... */ in sclhi()
118 pr_debug("i2c-algo-bit: needed %ld jiffies for SCL to go " in sclhi()
131 /* assert: scl, sda are high */ in i2c_start()
139 /* assert: scl is low */ in i2c_repstart()
150 /* assert: scl is low */ in i2c_stop()
164 * -ETIMEDOUT if an error occurred (while raising the scl line)
173 /* assert: scl is low */ in i2c_outb()
207 /* assert: scl is low (sda undef) */ in i2c_outb()
219 /* assert: scl is low */ in i2c_inb()
233 /* assert: scl is low */ in i2c_inb()
245 int scl, sda, ret; in test_bus() local
254 pr_info("%s: Testing SDA only, SCL is not readable\n", name); in test_bus()
257 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
258 if (!scl || !sda) { in test_bus()
260 "%s: bus seems to be busy (scl=%d, sda=%d)\n", in test_bus()
261 name, scl, sda); in test_bus()
267 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
272 if (!scl) { in test_bus()
273 printk(KERN_WARNING "%s: SCL unexpected low " in test_bus()
280 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
285 if (!scl) { in test_bus()
286 printk(KERN_WARNING "%s: SCL unexpected low " in test_bus()
293 scl = (adap->getscl == NULL) ? 0 : getscl(adap); in test_bus()
294 if (scl) { in test_bus()
295 printk(KERN_WARNING "%s: SCL stuck high!\n", name); in test_bus()
300 "while pulling SCL low!\n", name); in test_bus()
306 scl = (adap->getscl == NULL) ? 1 : getscl(adap); in test_bus()
307 if (!scl) { in test_bus()
308 printk(KERN_WARNING "%s: SCL stuck low!\n", name); in test_bus()
313 "while pulling SCL high!\n", name); in test_bus()
647 /* Complain if SCL can't be read */ in __i2c_bit_add_bus()
649 dev_warn(&adap->dev, "Not I2C compliant: can't read SCL\n"); in __i2c_bit_add_bus()