Lines Matching refs:transfer

234 			 struct spi_transfer *transfer)  in spi_imx_can_dma()  argument
247 if (transfer->len < spi_imx->devtype_data->fifo_size) in spi_imx_can_dma()
1394 struct spi_transfer *transfer) in spi_imx_dma_transfer() argument
1400 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer()
1406 bytes_per_word = spi_imx_bytes_per_word(transfer->bits_per_word); in spi_imx_dma_transfer()
1461 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_dma_transfer()
1485 transfer->error |= SPI_TRANS_FAIL_NO_START; in spi_imx_dma_transfer()
1490 struct spi_transfer *transfer) in spi_imx_pio_transfer() argument
1496 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer()
1497 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_pio_transfer()
1498 spi_imx->count = transfer->len; in spi_imx_pio_transfer()
1508 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_pio_transfer()
1522 struct spi_transfer *transfer) in spi_imx_poll_transfer() argument
1527 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_poll_transfer()
1528 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_poll_transfer()
1529 spi_imx->count = transfer->len; in spi_imx_poll_transfer()
1539 timeout = spi_imx_calculate_timeout(spi_imx, transfer->len) + jiffies; in spi_imx_poll_transfer()
1562 return spi_imx_pio_transfer(spi, transfer); in spi_imx_poll_transfer()
1570 struct spi_transfer *transfer) in spi_imx_pio_transfer_target() argument
1576 transfer->len > MX53_MAX_TRANSFER_BYTES) { in spi_imx_pio_transfer_target()
1582 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer_target()
1583 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_pio_transfer_target()
1584 spi_imx->count = transfer->len; in spi_imx_pio_transfer_target()
1615 struct spi_transfer *transfer) in spi_imx_transfer_one() argument
1620 spi_imx_setupxfer(spi, transfer); in spi_imx_transfer_one()
1621 transfer->effective_speed_hz = spi_imx->spi_bus_clk; in spi_imx_transfer_one()
1628 return spi_imx_pio_transfer_target(spi, transfer); in spi_imx_transfer_one()
1636 return spi_imx_dma_transfer(spi_imx, transfer); in spi_imx_transfer_one()
1642 byte_limit = hz_per_byte ? transfer->effective_speed_hz / hz_per_byte : 1; in spi_imx_transfer_one()
1645 if (transfer->len < byte_limit) in spi_imx_transfer_one()
1646 return spi_imx_poll_transfer(spi, transfer); in spi_imx_transfer_one()
1648 return spi_imx_pio_transfer(spi, transfer); in spi_imx_transfer_one()