Lines Matching defs:xfer
314 struct spi_transfer *xfer;
325 list_for_each_entry(xfer, &msg->transfers, transfer_list) {
329 if (xfer->bits_per_word)
330 qmr |= xfer->bits_per_word << 10;
337 if (xfer->speed_hz)
338 qmr |= mcfqspi_qmr_baud(xfer->speed_hz);
346 if ((xfer->bits_per_word ? xfer->bits_per_word :
348 mcfqspi_transfer_msg8(mcfqspi, xfer->len,
349 xfer->tx_buf,
350 xfer->rx_buf);
352 mcfqspi_transfer_msg16(mcfqspi, xfer->len / 2,
353 xfer->tx_buf,
354 xfer->rx_buf);
357 if (xfer->delay_usecs)
358 udelay(xfer->delay_usecs);
359 if (xfer->cs_change) {
360 if (!list_is_last(&xfer->transfer_list,
366 if (list_is_last(&xfer->transfer_list,
372 msg->actual_length += xfer->len;
385 struct spi_transfer *xfer;
390 list_for_each_entry(xfer, &msg->transfers, transfer_list) {
391 if (xfer->bits_per_word && ((xfer->bits_per_word < 8)
392 || (xfer->bits_per_word > 16))) {
395 xfer->bits_per_word);
398 if (xfer->speed_hz) {
400 mcfqspi_qmr_baud(xfer->speed_hz);
401 if (real_speed != xfer->speed_hz)
404 real_speed, xfer->speed_hz);