Lines Matching full:tx
69 struct spi_transfer rx, tx; in get_status() local
74 memset(&tx, 0, sizeof(tx)); in get_status()
75 tx.tx_buf = cmd; in get_status()
76 tx.len = sizeof(cmd); in get_status()
80 spi_message_add_tail(&tx, &msg); in get_status()
139 struct spi_transfer tx[2]; in machxo2_cleanup() local
144 memset(tx, 0, sizeof(tx)); in machxo2_cleanup()
146 tx[0].tx_buf = &erase; in machxo2_cleanup()
147 tx[0].len = sizeof(erase); in machxo2_cleanup()
148 spi_message_add_tail(&tx[0], &msg); in machxo2_cleanup()
158 tx[1].tx_buf = &refresh; in machxo2_cleanup()
159 tx[1].len = sizeof(refresh); in machxo2_cleanup()
160 tx[1].delay_usecs = MACHXO2_REFRESH_USEC; in machxo2_cleanup()
161 spi_message_add_tail(&tx[1], &msg); in machxo2_cleanup()
192 struct spi_transfer tx[3]; in machxo2_write_init() local
207 memset(tx, 0, sizeof(tx)); in machxo2_write_init()
209 tx[0].tx_buf = &enable; in machxo2_write_init()
210 tx[0].len = sizeof(enable); in machxo2_write_init()
211 tx[0].delay_usecs = MACHXO2_LOW_DELAY_USEC; in machxo2_write_init()
212 spi_message_add_tail(&tx[0], &msg); in machxo2_write_init()
214 tx[1].tx_buf = &erase; in machxo2_write_init()
215 tx[1].len = sizeof(erase); in machxo2_write_init()
216 spi_message_add_tail(&tx[1], &msg); in machxo2_write_init()
231 tx[2].tx_buf = &initaddr; in machxo2_write_init()
232 tx[2].len = sizeof(initaddr); in machxo2_write_init()
233 spi_message_add_tail(&tx[2], &msg); in machxo2_write_init()
253 struct spi_transfer tx; in machxo2_write() local
268 memset(&tx, 0, sizeof(tx)); in machxo2_write()
270 tx.tx_buf = payload; in machxo2_write()
271 tx.len = MACHXO2_BUF_SIZE; in machxo2_write()
272 tx.delay_usecs = MACHXO2_HIGH_DELAY_USEC; in machxo2_write()
273 spi_message_add_tail(&tx, &msg); in machxo2_write()
291 struct spi_transfer tx[2]; in machxo2_write_complete() local
297 memset(tx, 0, sizeof(tx)); in machxo2_write_complete()
299 tx[0].tx_buf = &progdone; in machxo2_write_complete()
300 tx[0].len = sizeof(progdone); in machxo2_write_complete()
301 spi_message_add_tail(&tx[0], &msg); in machxo2_write_complete()
318 tx[1].tx_buf = &refresh; in machxo2_write_complete()
319 tx[1].len = sizeof(refresh); in machxo2_write_complete()
320 tx[1].delay_usecs = MACHXO2_REFRESH_USEC; in machxo2_write_complete()
321 spi_message_add_tail(&tx[1], &msg); in machxo2_write_complete()