Lines Matching refs:transfer
46 struct i2c_master_transfer transfer; member
55 struct i2c_master_transfer *transfer = &data->transfer; in i2c_imx_write() local
57 transfer->isBusy = true; in i2c_imx_write()
64 transfer->currentDir = i2cDirectionTransmit; in i2c_imx_write()
66 transfer->txBuff = txBuffer; in i2c_imx_write()
67 transfer->txSize = txSize; in i2c_imx_write()
69 I2C_WriteByte(base, *transfer->txBuff); in i2c_imx_write()
70 transfer->txBuff++; in i2c_imx_write()
71 transfer->txSize--; in i2c_imx_write()
81 return transfer->ack; in i2c_imx_write()
89 struct i2c_master_transfer *transfer = &data->transfer; in i2c_imx_read() local
91 transfer->isBusy = true; in i2c_imx_read()
98 transfer->currentDir = i2cDirectionReceive; in i2c_imx_read()
100 transfer->rxBuff = rxBuffer; in i2c_imx_read()
101 transfer->rxSize = rxSize; in i2c_imx_read()
103 if (transfer->rxSize == 1U) { in i2c_imx_read()
129 struct i2c_master_transfer *transfer = &data->transfer; in i2c_imx_configure() local
141 transfer->txBuff = 0; in i2c_imx_configure()
142 transfer->rxBuff = 0; in i2c_imx_configure()
143 transfer->cmdSize = 0U; in i2c_imx_configure()
144 transfer->txSize = 0U; in i2c_imx_configure()
145 transfer->rxSize = 0U; in i2c_imx_configure()
146 transfer->isBusy = false; in i2c_imx_configure()
147 transfer->currentDir = i2cDirectionReceive; in i2c_imx_configure()
148 transfer->currentMode = i2cModeSlave; in i2c_imx_configure()
193 struct i2c_master_transfer *transfer = &data->transfer; in i2c_imx_transfer() local
211 transfer->currentMode = i2cModeSlave; in i2c_imx_transfer()
214 transfer->currentDir = i2cDirectionReceive; in i2c_imx_transfer()
217 transfer->currentDir = i2cDirectionTransmit; in i2c_imx_transfer()
219 transfer->currentMode = i2cModeMaster; in i2c_imx_transfer()
247 transfer->currentMode = i2cModeSlave; in i2c_imx_transfer()
249 transfer->currentDir = i2cDirectionReceive; in i2c_imx_transfer()
263 transfer->currentMode = i2cModeSlave; in i2c_imx_transfer()
265 transfer->currentDir = i2cDirectionReceive; in i2c_imx_transfer()
275 struct i2c_master_transfer *transfer = &data->transfer; in i2c_imx_isr() local
282 if (!transfer->isBusy) { in i2c_imx_isr()
286 if (i2cModeMaster == transfer->currentMode) { in i2c_imx_isr()
287 if (i2cDirectionTransmit == transfer->currentDir) { in i2c_imx_isr()
289 transfer->ack = in i2c_imx_isr()
292 if (transfer->txSize == 0U) { in i2c_imx_isr()
296 transfer->isBusy = false; in i2c_imx_isr()
299 I2C_WriteByte(base, *transfer->txBuff); in i2c_imx_isr()
300 transfer->txBuff++; in i2c_imx_isr()
301 transfer->txSize--; in i2c_imx_isr()
305 if (transfer->rxSize == 2U) { in i2c_imx_isr()
313 if (transfer->rxSize == 1U) { in i2c_imx_isr()
318 transfer->currentDir = i2cDirectionTransmit; in i2c_imx_isr()
321 *transfer->rxBuff = I2C_ReadByte(base); in i2c_imx_isr()
322 transfer->rxBuff++; in i2c_imx_isr()
323 transfer->rxSize--; in i2c_imx_isr()
326 if (transfer->rxSize == 0U) { in i2c_imx_isr()
330 transfer->isBusy = false; in i2c_imx_isr()
365 .transfer = i2c_imx_transfer,