• Home
  • Raw
  • Download

Lines Matching refs:xfer

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