Lines Matching full:transfer

109  * @tx_bytes:		Number of bytes left to transfer
235 * @transfer: Pointer to the spi_transfer structure which provides
236 * information about next transfer setup parameters
241 * is lower than the requested frequency (maximum lower) for the transfer. If
247 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument
258 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq()
262 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()
274 * cdns_spi_setup_transfer - Configure SPI controller for specified transfer
276 * @transfer: Pointer to the spi_transfer structure which provides
277 * information about next transfer setup parameters
279 * Sets the operational mode of SPI controller for the next SPI transfer and
285 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument
289 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer()
334 * On Mode Fault interrupt this function indicates that transfer is completed,
351 /* Indicate that transfer is completed, the SPI subsystem will in cdns_spi_irq()
379 /* Transfer is completed */ in cdns_spi_irq()
398 * cdns_transfer_one - Initiates the SPI transfer
401 * @transfer: Pointer to the spi_transfer structure which provides
402 * information about next transfer parameters
404 * This function fills the TX FIFO, starts the SPI transfer and
405 * returns a positive transfer count so that core will wait for completion.
407 * Return: Number of bytes transferred in the last transfer
411 struct spi_transfer *transfer) in cdns_transfer_one() argument
415 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one()
416 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
417 xspi->tx_bytes = transfer->len; in cdns_transfer_one()
418 xspi->rx_bytes = transfer->len; in cdns_transfer_one()
420 cdns_spi_setup_transfer(spi, transfer); in cdns_transfer_one()
422 spi_transfer_delay_exec(transfer); in cdns_transfer_one()
425 return transfer->len; in cdns_transfer_one()
429 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
447 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer