Lines Matching full:transfer
109 * @tx_bytes: Number of bytes left to transfer
236 * @transfer: Pointer to the spi_transfer structure which provides
237 * information about next transfer setup parameters
242 * is lower than the requested frequency (maximum lower) for the transfer. If
248 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument
259 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq()
263 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()
275 * cdns_spi_setup_transfer - Configure SPI controller for specified transfer
277 * @transfer: Pointer to the spi_transfer structure which provides
278 * information about next transfer setup parameters
280 * Sets the operational mode of SPI controller for the next SPI transfer and
286 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument
290 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer()
335 * On Mode Fault interrupt this function indicates that transfer is completed,
352 /* Indicate that transfer is completed, the SPI subsystem will in cdns_spi_irq()
380 /* Transfer is completed */ in cdns_spi_irq()
399 * cdns_transfer_one - Initiates the SPI transfer
402 * @transfer: Pointer to the spi_transfer structure which provides
403 * information about next transfer parameters
405 * This function fills the TX FIFO, starts the SPI transfer and
406 * returns a positive transfer count so that core will wait for completion.
408 * Return: Number of bytes transferred in the last transfer
412 struct spi_transfer *transfer) in cdns_transfer_one() argument
416 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one()
417 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
418 xspi->tx_bytes = transfer->len; in cdns_transfer_one()
419 xspi->rx_bytes = transfer->len; in cdns_transfer_one()
421 cdns_spi_setup_transfer(spi, transfer); in cdns_transfer_one()
423 spi_transfer_delay_exec(transfer); in cdns_transfer_one()
426 return transfer->len; in cdns_transfer_one()
430 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
448 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer