Lines Matching refs:current_remaining_bytes
266 int current_remaining_bytes; member
659 unsigned long xfer_pos = xfer->len - as->current_remaining_bytes; in atmel_spi_next_xfer_single()
692 u32 offset = xfer->len - as->current_remaining_bytes; in atmel_spi_next_xfer_fifo()
702 ((u32)as->current_remaining_bytes >> 1) : in atmel_spi_next_xfer_fifo()
703 (u32)as->current_remaining_bytes); in atmel_spi_next_xfer_fifo()
937 len = as->current_remaining_bytes; in atmel_spi_pdc_next_xfer()
939 as->current_remaining_bytes -= len; in atmel_spi_pdc_next_xfer()
955 if (as->current_remaining_bytes) { in atmel_spi_pdc_next_xfer()
956 len = as->current_remaining_bytes; in atmel_spi_pdc_next_xfer()
958 as->current_remaining_bytes -= len; in atmel_spi_pdc_next_xfer()
1049 unsigned long xfer_pos = xfer->len - as->current_remaining_bytes; in atmel_spi_pump_single_data()
1059 if (as->current_remaining_bytes > 2) in atmel_spi_pump_single_data()
1060 as->current_remaining_bytes -= 2; in atmel_spi_pump_single_data()
1062 as->current_remaining_bytes = 0; in atmel_spi_pump_single_data()
1064 as->current_remaining_bytes--; in atmel_spi_pump_single_data()
1073 u32 offset = xfer->len - as->current_remaining_bytes; in atmel_spi_pump_fifo_data()
1083 if (as->current_remaining_bytes > num_bytes) in atmel_spi_pump_fifo_data()
1084 as->current_remaining_bytes -= num_bytes; in atmel_spi_pump_fifo_data()
1086 as->current_remaining_bytes = 0; in atmel_spi_pump_fifo_data()
1090 as->current_remaining_bytes &= ~0x1; in atmel_spi_pump_fifo_data()
1158 if (as->current_remaining_bytes) { in atmel_spi_pio_interrupt()
1162 if (!as->current_remaining_bytes) in atmel_spi_pio_interrupt()
1390 as->current_remaining_bytes = xfer->len; in atmel_spi_one_transfer()
1391 while (as->current_remaining_bytes) { in atmel_spi_one_transfer()
1399 len = as->current_remaining_bytes; in atmel_spi_one_transfer()
1408 as->current_remaining_bytes -= len; in atmel_spi_one_transfer()
1409 if (as->current_remaining_bytes < 0) in atmel_spi_one_transfer()
1410 as->current_remaining_bytes = 0; in atmel_spi_one_transfer()