Lines Matching refs:transfer
131 /* Current message transfer state info */
216 static u8 hisi_spi_n_bytes(struct spi_transfer *transfer)
218 if (transfer->bits_per_word <= 8)
220 else if (transfer->bits_per_word <= 16)
233 /* Check the transfer's original "rx" is not null */
258 /* Check the transfer's original "tx" is not null */
358 * nothing left to receive, finalize the transfer.
377 struct spi_device *spi, struct spi_transfer *transfer)
383 /* Update per transfer options for speed and bpw */
384 transfer->effective_speed_hz =
385 hisi_calc_effective_speed(host, chip, transfer->speed_hz);
388 cr |= FIELD_PREP(CR_BPW_MASK, transfer->bits_per_word - 1);
393 hs->n_bytes = hisi_spi_n_bytes(transfer);
394 hs->tx = transfer->tx_buf;
395 hs->tx_len = transfer->len / hs->n_bytes;
396 hs->rx = transfer->rx_buf;
400 * Ensure that the transfer data above has been updated