Lines Matching full:transfer
109 * @tx_bytes: Number of bytes left to transfer
242 * @transfer: Pointer to the spi_transfer structure which provides
243 * information about next transfer setup parameters
248 * is lower than the requested frequency (maximum lower) for the transfer. If
254 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument
265 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq()
269 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()
281 * cdns_spi_setup_transfer - Configure SPI controller for specified transfer
283 * @transfer: Pointer to the spi_transfer structure which provides
284 * information about next transfer setup parameters
286 * Sets the operational mode of SPI controller for the next SPI transfer and
292 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument
296 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer()
349 * On Mode Fault interrupt this function indicates that transfer is completed,
367 /* Indicate that transfer is completed, the SPI subsystem will in cdns_spi_irq()
415 * cdns_transfer_one - Initiates the SPI transfer
418 * @transfer: Pointer to the spi_transfer structure which provides
419 * information about next transfer parameters
421 * This function in host mode fills the TX FIFO, starts the SPI transfer and
422 * returns a positive transfer count so that core will wait for completion.
423 * This function in target mode fills the TX FIFO and wait for transfer trigger.
425 * Return: Number of bytes transferred in the last transfer
429 struct spi_transfer *transfer) in cdns_transfer_one() argument
433 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one()
434 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
435 xspi->tx_bytes = transfer->len; in cdns_transfer_one()
436 xspi->rx_bytes = transfer->len; in cdns_transfer_one()
439 cdns_spi_setup_transfer(spi, transfer); in cdns_transfer_one()
457 return transfer->len; in cdns_transfer_one()
461 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
479 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer
529 * cdns_target_abort - Abort target transfer
532 * This function abort target transfer if there any transfer timeout.