Searched refs:tx_cnt (Results 1 - 2 of 2) sorted by relevance

/u-boot/drivers/i2c/
H A Dast2600_i2c.c66 int tx_cnt, ret = 0; local
85 for (tx_cnt = 0; tx_cnt < len; tx_cnt++, buffer++) {
89 if (!tx_cnt)
92 if (send_stop && ((len - 1) == tx_cnt))
/u-boot/drivers/spi/
H A Dmtk_snor.c391 int tx_cnt = 0; local
404 txbuf[tx_cnt] = op->cmd.opcode;
405 tx_cnt++;
406 for (i = op->addr.nbytes; i > 0; i--, tx_cnt++)
407 txbuf[tx_cnt] = ((u8 *)&op->addr.val)[i - 1];
408 for (i = op->dummy.nbytes; i > 0; i--, tx_cnt++)
409 txbuf[tx_cnt] = 0x0;
411 for (i = op->data.nbytes; i > 0; i--, tx_cnt++)
412 txbuf[tx_cnt] = ((u8 *)op->data.buf.out)[i - 1];

Completed in 93 milliseconds