Lines Matching full:transfer

110  * @tx_bytes:		Number of bytes left to transfer
245 * @transfer: Pointer to the spi_transfer structure which provides
246 * information about next transfer setup parameters
251 * is lower than the requested frequency (maximum lower) for the transfer. If
257 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument
268 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq()
272 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()
284 * cdns_spi_setup_transfer - Configure SPI controller for specified transfer
286 * @transfer: Pointer to the spi_transfer structure which provides
287 * information about next transfer setup parameters
289 * Sets the operational mode of SPI controller for the next SPI transfer and
295 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument
299 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer()
352 * On Mode Fault interrupt this function indicates that transfer is completed,
370 /* Indicate that transfer is completed, the SPI subsystem will in cdns_spi_irq()
418 * cdns_transfer_one - Initiates the SPI transfer
421 * @transfer: Pointer to the spi_transfer structure which provides
422 * information about next transfer parameters
424 * This function in host mode fills the TX FIFO, starts the SPI transfer and
425 * returns a positive transfer count so that core will wait for completion.
426 * This function in target mode fills the TX FIFO and wait for transfer trigger.
428 * Return: Number of bytes transferred in the last transfer
432 struct spi_transfer *transfer) in cdns_transfer_one() argument
436 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one()
437 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
438 xspi->tx_bytes = transfer->len; in cdns_transfer_one()
439 xspi->rx_bytes = transfer->len; in cdns_transfer_one()
442 cdns_spi_setup_transfer(spi, transfer); in cdns_transfer_one()
460 return transfer->len; in cdns_transfer_one()
464 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
482 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer
532 * cdns_target_abort - Abort target transfer
535 * This function abort target transfer if there any transfer timeout.