Lines Matching refs:tx
68 void process_txn(u32 txnid, u32 *rx, int rxc, u32 *tx) { in process_txn() argument
75 tx[0] = txnid; in process_txn()
98 tx[txc++] = RSWD_MSG(CMD_SWD_DATA, 0, n); in process_txn()
100 status = swd_read(optable[op], tx + txc); in process_txn()
104 tx[txc++] = 0xfefefefe; in process_txn()
131 tx[txc++] = RSWD_MSG(CMD_JTAG_DATA, 0, n); in process_txn()
134 jtag_io(xfer, rx[0], rx[1], tx + txc); in process_txn()
149 jtag_io(xfer, rx[0], rx[1], tx + txc); in process_txn()
150 if ((tx[txc] & rx[3]) != rx[2]) { in process_txn()
181 tx[txc++] = RSWD_MSG(CMD_JTAG_DATA, 0, n); in process_txn()
184 jtag_io(xfer, tms, tdi, tx + txc); in process_txn()
216 tx[txc++] = RSWD_MSG(CMD_CLOCK_KHZ, 0, n); in process_txn()
222 tx[txc++] = RSWD_MSG(CMD_CLOCK_KHZ, 1, n); in process_txn()
227 tx[txc++] = RSWD_MSG(CMD_VERSION, 0, RSWD_VERSION); in process_txn()
230 memcpy(tx + txc + 1, board_str, n + 1); in process_txn()
232 tx[txc++] = RSWD_MSG(CMD_BOARD_STR, 0, n); in process_txn()
236 memcpy(tx + txc + 1, build_str, n + 1); in process_txn()
238 tx[txc++] = RSWD_MSG(CMD_BUILD_STR, 0, n); in process_txn()
241 tx[txc++] = RSWD_MSG(CMD_RX_MAXDATA, 0, 8192); in process_txn()
252 tx[txc++] = RSWD_MSG(CMD_STATUS, status, count); in process_txn()
259 tx[txc++] = RSWD_MSG(CMD_NULL, 0, 0); in process_txn()
265 tx[n], tx[n+1], tx[n+2], tx[n+3]); in process_txn()
268 usb_xmit(tx, txc * 4); in process_txn()