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.value = MACHXO2_REFRESH_USEC; in machxo2_cleanup()
161 tx[1].delay.unit = SPI_DELAY_UNIT_USECS; in machxo2_cleanup()
162 spi_message_add_tail(&tx[1], &msg); in machxo2_cleanup()
193 struct spi_transfer tx[3]; in machxo2_write_init() local
208 memset(tx, 0, sizeof(tx)); in machxo2_write_init()
210 tx[0].tx_buf = &enable; in machxo2_write_init()
211 tx[0].len = sizeof(enable); in machxo2_write_init()
212 tx[0].delay.value = MACHXO2_LOW_DELAY_USEC; in machxo2_write_init()
213 tx[0].delay.unit = SPI_DELAY_UNIT_USECS; in machxo2_write_init()
214 spi_message_add_tail(&tx[0], &msg); in machxo2_write_init()
216 tx[1].tx_buf = &erase; in machxo2_write_init()
217 tx[1].len = sizeof(erase); in machxo2_write_init()
218 spi_message_add_tail(&tx[1], &msg); in machxo2_write_init()
235 tx[2].tx_buf = &initaddr; in machxo2_write_init()
236 tx[2].len = sizeof(initaddr); in machxo2_write_init()
237 spi_message_add_tail(&tx[2], &msg); in machxo2_write_init()
257 struct spi_transfer tx; in machxo2_write() local
272 memset(&tx, 0, sizeof(tx)); in machxo2_write()
274 tx.tx_buf = payload; in machxo2_write()
275 tx.len = MACHXO2_BUF_SIZE; in machxo2_write()
276 tx.delay.value = MACHXO2_HIGH_DELAY_USEC; in machxo2_write()
277 tx.delay.unit = SPI_DELAY_UNIT_USECS; in machxo2_write()
278 spi_message_add_tail(&tx, &msg); in machxo2_write()
296 struct spi_transfer tx[2]; in machxo2_write_complete() local
302 memset(tx, 0, sizeof(tx)); in machxo2_write_complete()
304 tx[0].tx_buf = &progdone; in machxo2_write_complete()
305 tx[0].len = sizeof(progdone); in machxo2_write_complete()
306 spi_message_add_tail(&tx[0], &msg); in machxo2_write_complete()
324 tx[1].tx_buf = &refresh; in machxo2_write_complete()
325 tx[1].len = sizeof(refresh); in machxo2_write_complete()
326 tx[1].delay.value = MACHXO2_REFRESH_USEC; in machxo2_write_complete()
327 tx[1].delay.unit = SPI_DELAY_UNIT_USECS; in machxo2_write_complete()
328 spi_message_add_tail(&tx[1], &msg); in machxo2_write_complete()