Lines Matching full:sda
178 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_start()
179 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_start()
184 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_stop()
185 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_stop()
186 w9968cf_write_sb(sd, 0x0013); /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_stop()
192 int sda; in w9968cf_smbus_write_byte() local
195 sda = (v & 0x80) ? 2 : 0; in w9968cf_smbus_write_byte()
197 /* SDE=1, SDA=sda, SCL=0 */ in w9968cf_smbus_write_byte()
198 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte()
199 /* SDE=1, SDA=sda, SCL=1 */ in w9968cf_smbus_write_byte()
200 w9968cf_write_sb(sd, 0x11 | sda); in w9968cf_smbus_write_byte()
201 /* SDE=1, SDA=sda, SCL=0 */ in w9968cf_smbus_write_byte()
202 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte()
210 /* No need to ensure SDA is high as we are always called after in w9968cf_smbus_read_byte()
211 read_ack which ends with SDA high */ in w9968cf_smbus_read_byte()
215 /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_read_byte()
218 /* SDE=1, SDA=1, SCL=0 */ in w9968cf_smbus_read_byte()
225 /* No need to ensure SDA is high as we are always called after in w9968cf_smbus_write_nack()
226 read_byte which ends with SDA high */ in w9968cf_smbus_write_nack()
227 w9968cf_write_sb(sd, 0x0013); /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_write_nack()
228 w9968cf_write_sb(sd, 0x0012); /* SDE=1, SDA=1, SCL=0 */ in w9968cf_smbus_write_nack()
234 int sda; in w9968cf_smbus_read_ack() local
236 /* Ensure SDA is high before raising clock to avoid a spurious stop */ in w9968cf_smbus_read_ack()
237 w9968cf_write_sb(sd, 0x0012); /* SDE=1, SDA=1, SCL=0 */ in w9968cf_smbus_read_ack()
238 w9968cf_write_sb(sd, 0x0013); /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_read_ack()
239 sda = w9968cf_read_sb(sd); in w9968cf_smbus_read_ack()
240 w9968cf_write_sb(sd, 0x0012); /* SDE=1, SDA=1, SCL=0 */ in w9968cf_smbus_read_ack()
241 if (sda >= 0 && (sda & 0x08)) { in w9968cf_smbus_read_ack()
348 reg_w(sd, 0x01, 0x0030); /* Set sda scl to FSB mode */ in w9968cf_configure()