Lines Matching refs:dma_size
443 static void stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) in stm32_usart_push_buffer_dma() argument
458 for (i = 0; i < dma_size; i++) in stm32_usart_push_buffer_dma()
461 dma_count = tty_insert_flip_string(ttyport, dma_start, dma_size); in stm32_usart_push_buffer_dma()
463 if (dma_count != dma_size) in stm32_usart_push_buffer_dma()
473 unsigned int dma_size, size = 0; in stm32_usart_receive_chars_dma() local
478 dma_size = stm32_port->last_res; in stm32_usart_receive_chars_dma()
479 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
480 size = dma_size; in stm32_usart_receive_chars_dma()
483 dma_size = stm32_port->last_res - stm32_port->rx_dma_state.residue; in stm32_usart_receive_chars_dma()
484 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
485 size += dma_size; in stm32_usart_receive_chars_dma()