Lines Matching defs:transfer

110  * @tx_bytes:		Number of bytes left to transfer
254 * @transfer: Pointer to the spi_transfer structure which provides
255 * information about next transfer setup parameters
260 * is lower than the requested frequency (maximum lower) for the transfer. If
266 struct spi_transfer *transfer)
277 if (xspi->speed_hz != transfer->speed_hz) {
281 (frequency / (2 << baud_rate_val)) > transfer->speed_hz)
293 * cdns_spi_setup_transfer - Configure SPI controller for specified transfer
295 * @transfer: Pointer to the spi_transfer structure which provides
296 * information about next transfer setup parameters
298 * Sets the operational mode of SPI controller for the next SPI transfer and
304 struct spi_transfer *transfer)
308 cdns_spi_config_clock_freq(spi, transfer);
317 static u8 cdns_spi_n_bytes(struct spi_transfer *transfer)
319 if (transfer->bits_per_word <= 8)
321 else if (transfer->bits_per_word <= 16)
424 * On Mode Fault interrupt this function indicates that transfer is completed,
442 /* Indicate that transfer is completed, the SPI subsystem will
490 * cdns_transfer_one - Initiates the SPI transfer
493 * @transfer: Pointer to the spi_transfer structure which provides
494 * information about next transfer parameters
496 * This function in host mode fills the TX FIFO, starts the SPI transfer and
497 * returns a positive transfer count so that core will wait for completion.
498 * This function in target mode fills the TX FIFO and wait for transfer trigger.
500 * Return: Number of bytes transferred in the last transfer
504 struct spi_transfer *transfer)
508 xspi->txbuf = transfer->tx_buf;
509 xspi->rxbuf = transfer->rx_buf;
510 xspi->tx_bytes = transfer->len;
511 xspi->rx_bytes = transfer->len;
514 cdns_spi_setup_transfer(spi, transfer);
529 xspi->n_bytes = cdns_spi_n_bytes(transfer);
536 return transfer->len;
540 * cdns_prepare_transfer_hardware - Prepares hardware for transfer.
558 * cdns_unprepare_transfer_hardware - Relaxes hardware after transfer
608 * cdns_target_abort - Abort target transfer
611 * This function abort target transfer if there any transfer timeout.