Lines Matching defs:xfer
160 struct spi_transfer xfer[6];
190 struct spi_transfer xfer[AD7877_NR_SENSE + 2];
231 req->xfer[0].tx_buf = &req->command;
232 req->xfer[0].len = 2;
234 req->xfer[1].rx_buf = &req->sample;
235 req->xfer[1].len = 2;
237 spi_message_add_tail(&req->xfer[0], &req->msg);
238 spi_message_add_tail(&req->xfer[1], &req->msg);
260 req->xfer[0].tx_buf = &req->command;
261 req->xfer[0].len = 2;
263 spi_message_add_tail(&req->xfer[0], &req->msg);
296 req->xfer[0].tx_buf = &req->reset;
297 req->xfer[0].len = 2;
299 req->xfer[1].tx_buf = &req->ref_on;
300 req->xfer[1].len = 2;
301 req->xfer[1].delay_usecs = ts->vref_delay_usecs;
303 req->xfer[2].tx_buf = &req->command;
304 req->xfer[2].len = 2;
305 req->xfer[2].delay_usecs = ts->vref_delay_usecs;
307 req->xfer[3].rx_buf = &req->sample;
308 req->xfer[3].len = 2;
310 req->xfer[4].tx_buf = &ts->cmd_crtl2; /*REF OFF*/
311 req->xfer[4].len = 2;
313 req->xfer[5].tx_buf = &ts->cmd_crtl1; /*DEFAULT*/
314 req->xfer[5].len = 2;
320 spi_message_add_tail(&req->xfer[i], &req->msg);
641 ts->xfer[0].tx_buf = &ts->cmd_crtl1;
642 ts->xfer[0].len = 2;
644 spi_message_add_tail(&ts->xfer[0], m);
646 ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */
647 ts->xfer[1].len = 2;
649 spi_message_add_tail(&ts->xfer[1], m);
652 ts->xfer[i + 2].rx_buf = &ts->conversion_data[AD7877_SEQ_YPOS + i];
653 ts->xfer[i + 2].len = 2;
654 spi_message_add_tail(&ts->xfer[i + 2], m);