Lines Matching refs:dma_size
404 static void stm32_usart_push_buffer_dma(struct uart_port *port, unsigned int dma_size) in stm32_usart_push_buffer_dma() argument
419 for (i = 0; i < dma_size; i++) in stm32_usart_push_buffer_dma()
422 dma_count = tty_insert_flip_string(ttyport, dma_start, dma_size); in stm32_usart_push_buffer_dma()
424 if (dma_count != dma_size) in stm32_usart_push_buffer_dma()
434 unsigned int dma_size, size = 0; in stm32_usart_receive_chars_dma() local
439 dma_size = stm32_port->last_res; in stm32_usart_receive_chars_dma()
440 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
441 size = dma_size; in stm32_usart_receive_chars_dma()
444 dma_size = stm32_port->last_res - stm32_port->rx_dma_state.residue; in stm32_usart_receive_chars_dma()
445 stm32_usart_push_buffer_dma(port, dma_size); in stm32_usart_receive_chars_dma()
446 size += dma_size; in stm32_usart_receive_chars_dma()