Lines Matching full:started

235  * Test if the iicbus is started by the controller
242 return (sc->started); in iicbus_started()
256 if (sc->started) in iicbus_start()
257 return (IIC_ESTATUS); /* protocol error, bus already started */ in iicbus_start()
260 sc->started = slave; in iicbus_start()
262 sc->started = 0; in iicbus_start()
278 if (!sc->started) in iicbus_repeated_start()
279 return (IIC_ESTATUS); /* protocol error, bus not started */ in iicbus_repeated_start()
282 sc->started = slave; in iicbus_repeated_start()
284 sc->started = 0; in iicbus_repeated_start()
300 if (!sc->started) in iicbus_stop()
301 return (IIC_ESTATUS); /* protocol error, bus not started */ in iicbus_stop()
306 sc->started = 0; in iicbus_stop()
314 * Write a block of data to the slave previously started by
322 /* a slave must have been started for writing */ in iicbus_write()
323 if (sc->started == 0 || (sc->strict != 0 && (sc->started & LSB) != 0)) in iicbus_write()
332 * Read a block of data from the slave previously started by
340 /* a slave must have been started for reading */ in iicbus_read()
341 if (sc->started == 0 || (sc->strict != 0 && (sc->started & LSB) == 0)) in iicbus_read()
350 * Write a byte to the slave previously started by iicbus_start() call
359 /* a slave must have been started for writing */ in iicbus_write_byte()
360 if (sc->started == 0 || (sc->strict != 0 && (sc->started & LSB) != 0)) in iicbus_write_byte()
369 * Read a byte from the slave previously started by iicbus_start() call
377 /* a slave must have been started for reading */ in iicbus_read_byte()
378 if (sc->started == 0 || (sc->strict != 0 && (sc->started & LSB) == 0)) in iicbus_read_byte()
470 bool started; in iicbus_transfer_gen() local
481 started = false; in iicbus_transfer_gen()
496 started = true; in iicbus_transfer_gen()
515 if (error != 0 && started) in iicbus_transfer_gen()