Lines Matching refs:xfer
44 struct spi_transfer *xfer, u8 *w_header, u8 *r_header, u8 op) in cyttsp5_spi_add_rw_msg() argument
46 xfer->tx_buf = w_header; in cyttsp5_spi_add_rw_msg()
47 xfer->rx_buf = r_header; in cyttsp5_spi_add_rw_msg()
49 xfer->len = 1; in cyttsp5_spi_add_rw_msg()
50 spi_message_add_tail(xfer, msg); in cyttsp5_spi_add_rw_msg()
57 struct spi_transfer xfer[2]; in cyttsp5_spi_xfer() local
62 memset(xfer, 0, sizeof(xfer)); in cyttsp5_spi_xfer()
65 cyttsp5_spi_add_rw_msg(&msg, &xfer[0], w_header, r_header, op); in cyttsp5_spi_xfer()
69 xfer[1].rx_buf = buf; in cyttsp5_spi_xfer()
70 xfer[1].len = length; in cyttsp5_spi_xfer()
71 spi_message_add_tail(&xfer[1], &msg); in cyttsp5_spi_xfer()
74 xfer[1].tx_buf = buf; in cyttsp5_spi_xfer()
75 xfer[1].len = length; in cyttsp5_spi_xfer()
76 spi_message_add_tail(&xfer[1], &msg); in cyttsp5_spi_xfer()