Lines Matching full:transfer

107  * @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,
353 /* Indicate that transfer is completed, the SPI subsystem will in cdns_spi_irq()
381 /* Transfer is completed */ in cdns_spi_irq()
400 * cdns_transfer_one - Initiates the SPI transfer
403 * @transfer: Pointer to the spi_transfer structure which provides
404 * information about next transfer parameters
406 * This function fills the TX FIFO, starts the SPI transfer and
407 * returns a positive transfer count so that core will wait for completion.
409 * Return: Number of bytes transferred in the last transfer
413 struct spi_transfer *transfer) in cdns_transfer_one() argument
417 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one()
418 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
419 xspi->tx_bytes = transfer->len; in cdns_transfer_one()
420 xspi->rx_bytes = transfer->len; in cdns_transfer_one()
422 cdns_spi_setup_transfer(spi, transfer); in cdns_transfer_one()
424 spi_transfer_delay_exec(transfer); in cdns_transfer_one()
427 return transfer->len; in cdns_transfer_one()
431 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
449 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer