Lines Matching defs:xfer
143 struct qspi_xfer xfer;
171 const struct qspi_xfer *xfer;
173 xfer = &ctrl->xfer;
176 pio_xfer_cfg |= xfer->dir;
177 if (xfer->is_last)
182 pio_xfer_cfg |= qspi_buswidth_to_iomode(ctrl, xfer->buswidth);
193 pio_xfer_ctrl |= ctrl->xfer.rem_bytes;
207 if (ctrl->xfer.dir == QSPI_WRITE)
225 ctrl->xfer.rem_bytes = 0;
263 struct spi_transfer *xfer)
271 if (xfer->speed_hz)
272 speed_hz = xfer->speed_hz;
281 if (xfer->rx_buf) {
282 ctrl->xfer.dir = QSPI_READ;
283 ctrl->xfer.buswidth = xfer->rx_nbits;
284 ctrl->xfer.rx_buf = xfer->rx_buf;
286 ctrl->xfer.dir = QSPI_WRITE;
287 ctrl->xfer.buswidth = xfer->tx_nbits;
288 ctrl->xfer.tx_buf = xfer->tx_buf;
290 ctrl->xfer.is_last = list_is_last(&xfer->transfer_list,
292 ctrl->xfer.rem_bytes = xfer->len;
350 wr_cnts = min(wr_cnts, ctrl->xfer.rem_bytes);
356 word_buf = ctrl->xfer.rx_buf;
357 ctrl->xfer.rem_bytes -= words_to_read * QSPI_BYTES_PER_WORD;
359 ctrl->xfer.rx_buf = word_buf + words_to_read;
363 byte_buf = ctrl->xfer.rx_buf;
365 ctrl->xfer.rem_bytes -= bytes_to_read;
368 ctrl->xfer.rx_buf = byte_buf;
376 const void *xfer_buf = ctrl->xfer.tx_buf;
387 if (ctrl->xfer.rem_bytes < QSPI_BYTES_PER_WORD) {
389 wr_size = min(wr_fifo_bytes, ctrl->xfer.rem_bytes);
390 ctrl->xfer.rem_bytes -= wr_size;
396 ctrl->xfer.tx_buf = byte_buf;
403 rem_words = ctrl->xfer.rem_bytes / QSPI_BYTES_PER_WORD;
407 ctrl->xfer.rem_bytes -= wr_size * QSPI_BYTES_PER_WORD;
411 ctrl->xfer.tx_buf = word_buf + wr_size;
429 if (ctrl->xfer.dir == QSPI_WRITE) {
447 if (!ctrl->xfer.rem_bytes) {