Lines Matching refs:atomic

483 static int i2c_imx_bus_busy(struct imx_i2c_struct *i2c_imx, int for_busy, bool atomic)  in i2c_imx_bus_busy()  argument
510 if (atomic) in i2c_imx_bus_busy()
519 static int i2c_imx_trx_complete(struct imx_i2c_struct *i2c_imx, bool atomic) in i2c_imx_trx_complete() argument
521 if (atomic) { in i2c_imx_trx_complete()
635 static int i2c_imx_start(struct imx_i2c_struct *i2c_imx, bool atomic) in i2c_imx_start() argument
646 if (atomic) in i2c_imx_start()
655 result = i2c_imx_bus_busy(i2c_imx, 1, atomic); in i2c_imx_start()
660 if (atomic) in i2c_imx_start()
668 static void i2c_imx_stop(struct imx_i2c_struct *i2c_imx, bool atomic) in i2c_imx_stop() argument
691 i2c_imx_bus_busy(i2c_imx, 0, atomic); in i2c_imx_stop()
1100 bool atomic) in i2c_imx_write() argument
1109 result = i2c_imx_trx_complete(i2c_imx, atomic); in i2c_imx_write()
1123 result = i2c_imx_trx_complete(i2c_imx, atomic); in i2c_imx_write()
1134 bool is_lastmsg, bool atomic) in i2c_imx_read() argument
1148 result = i2c_imx_trx_complete(i2c_imx, atomic); in i2c_imx_read()
1181 result = i2c_imx_trx_complete(i2c_imx, atomic); in i2c_imx_read()
1212 i2c_imx_bus_busy(i2c_imx, 0, atomic); in i2c_imx_read()
1244 struct i2c_msg *msgs, int num, bool atomic) in i2c_imx_xfer_common() argument
1252 result = i2c_imx_start(i2c_imx, atomic); in i2c_imx_xfer_common()
1258 if (!atomic && i2c_imx->adapter.bus_recovery_info) { in i2c_imx_xfer_common()
1260 result = i2c_imx_start(i2c_imx, atomic); in i2c_imx_xfer_common()
1278 result = i2c_imx_bus_busy(i2c_imx, 1, atomic); in i2c_imx_xfer_common()
1303 result = i2c_imx_read(i2c_imx, &msgs[i], is_lastmsg, atomic); in i2c_imx_xfer_common()
1305 if (!atomic && in i2c_imx_xfer_common()
1310 result = i2c_imx_write(i2c_imx, &msgs[i], atomic); in i2c_imx_xfer_common()
1318 i2c_imx_stop(i2c_imx, atomic); in i2c_imx_xfer_common()