Lines Matching refs:data
145 * data transfer
148 /* Max data length for each DATARD tags */
162 * data_len: remaining data length for current message
163 * cur_blk_len: data length for current block
172 * to TX FIFO will be appended in this data and will be written to
175 * contains the 4 bytes of RX data.
176 * cur_data: pointer to tell cur data position for current message
272 /* function to write data in tx fifo */
274 /* function to read data from rx fifo */
590 static void qup_i2c_bam_cb(void *data)
592 struct qup_i2c_dev *qup = data;
1192 /* Receive data from RX FIFO for read message in QUP v2 i2c transfer. */
1228 * Read the data and tags from RX FIFO. Since in read case, the tags will be
1229 * preceded by received data bytes so
1232 * 2. Read the data from RX FIFO. When all the data bytes have been read then
1251 * write works on word basis (4 bytes). Append new data byte write for TX FIFO
1255 qup_i2c_write_blk_data(struct qup_i2c_dev *qup, u8 **data, unsigned int *len)
1262 blk->tx_fifo_data |= *(*data)++ << (j * 8);
1287 * Write the data and tags in TX FIFO. Since in write case, both tags and data
1288 * need to be written and QUP write tags can have maximum 256 data length, so
1292 * 2. Check if send_last_word is true. It will be set when last few data bytes
1294 * space. All this data bytes are available in tx_fifo_data so write this
1296 * 3. Write the data to TX FIFO and check for cur_blk_len. If it is non zero
1297 * then more data is pending otherwise following 3 cases can be possible
1298 * a. if tx_fifo_data_pos is zero i.e. all the data bytes in this block
1300 * b. tx_fifo_free is non zero i.e tx FIFO is free so copy the remaining data
1339 * Main transfer function which read or write i2c data.
1425 * multiple of blk_xfer_limit data length blocks and schedule each
1820 * The block/fifo size w.r.t. 'actual data' is 1/2 due to 'tag'