stm32_port         43 drivers/tty/serial/stm32-usart.c static inline struct stm32_port *to_stm32_port(struct uart_port *port)
stm32_port         45 drivers/tty/serial/stm32-usart.c 	return container_of(port, struct stm32_port, port);
stm32_port        104 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        105 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        106 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_config *cfg = &stm32_port->info->cfg;
stm32_port        173 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        174 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        180 drivers/tty/serial/stm32-usart.c 	if (threaded && stm32_port->rx_ch) {
stm32_port        181 drivers/tty/serial/stm32-usart.c 		status = dmaengine_tx_status(stm32_port->rx_ch,
stm32_port        182 drivers/tty/serial/stm32-usart.c 					     stm32_port->rx_ch->cookie,
stm32_port        198 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        199 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        202 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_ch) {
stm32_port        203 drivers/tty/serial/stm32-usart.c 		c = stm32_port->rx_buf[RX_BUF_L - (*last_res)--];
stm32_port        209 drivers/tty/serial/stm32-usart.c 		c &= stm32_port->rdr_mask;
stm32_port        218 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        219 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        227 drivers/tty/serial/stm32-usart.c 	while (stm32_pending_rx(port, &sr, &stm32_port->last_res, threaded)) {
stm32_port        246 drivers/tty/serial/stm32-usart.c 		c = stm32_get_char(port, &sr, &stm32_port->last_res);
stm32_port        289 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port = to_stm32_port(port);
stm32_port        301 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        302 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        308 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen)
stm32_port        316 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        317 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        319 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen)
stm32_port        327 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        328 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        331 drivers/tty/serial/stm32-usart.c 	if (stm32_port->tx_dma_busy) {
stm32_port        333 drivers/tty/serial/stm32-usart.c 		stm32_port->tx_dma_busy = false;
stm32_port        354 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port = to_stm32_port(port);
stm32_port        415 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        416 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        420 drivers/tty/serial/stm32-usart.c 		if (stm32_port->tx_dma_busy)
stm32_port        425 drivers/tty/serial/stm32-usart.c 		if (stm32_port->tx_dma_busy)
stm32_port        440 drivers/tty/serial/stm32-usart.c 	if (stm32_port->tx_ch)
stm32_port        455 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        456 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        471 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_RXNE) && !(stm32_port->rx_ch))
stm32_port        474 drivers/tty/serial/stm32-usart.c 	if ((sr & USART_SR_TXE) && !(stm32_port->tx_ch))
stm32_port        479 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_ch)
stm32_port        488 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        492 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_ch)
stm32_port        502 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        503 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        510 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        511 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        545 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        546 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        550 drivers/tty/serial/stm32-usart.c 	stm32_clr_bits(port, ofs->cr1, stm32_port->cr1_irq);
stm32_port        551 drivers/tty/serial/stm32-usart.c 	if (stm32_port->cr3_irq)
stm32_port        552 drivers/tty/serial/stm32-usart.c 		stm32_clr_bits(port, ofs->cr3, stm32_port->cr3_irq);
stm32_port        560 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        561 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        565 drivers/tty/serial/stm32-usart.c 	stm32_set_bits(port, ofs->cr1, stm32_port->cr1_irq);
stm32_port        566 drivers/tty/serial/stm32-usart.c 	if (stm32_port->cr3_irq)
stm32_port        567 drivers/tty/serial/stm32-usart.c 		stm32_set_bits(port, ofs->cr3, stm32_port->cr3_irq);
stm32_port        575 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        576 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        578 drivers/tty/serial/stm32-usart.c 	stm32_clr_bits(port, ofs->cr1, stm32_port->cr1_irq);
stm32_port        579 drivers/tty/serial/stm32-usart.c 	if (stm32_port->cr3_irq)
stm32_port        580 drivers/tty/serial/stm32-usart.c 		stm32_clr_bits(port, ofs->cr3, stm32_port->cr3_irq);
stm32_port        591 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        592 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        608 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen) {
stm32_port        617 drivers/tty/serial/stm32-usart.c 	val = stm32_port->cr1_irq | USART_CR1_RE;
stm32_port        618 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen)
stm32_port        627 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        628 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        629 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_config *cfg = &stm32_port->info->cfg;
stm32_port        634 drivers/tty/serial/stm32-usart.c 	val |= stm32_port->cr1_irq | USART_CR1_RE;
stm32_port        636 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen)
stm32_port        684 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port        685 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port        686 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_config *cfg = &stm32_port->info->cfg;
stm32_port        694 drivers/tty/serial/stm32-usart.c 	if (!stm32_port->hw_flow_control)
stm32_port        710 drivers/tty/serial/stm32-usart.c 	if (stm32_port->fifoen)
stm32_port        721 drivers/tty/serial/stm32-usart.c 	stm32_port->rdr_mask = (BIT(bits) - 1);
stm32_port        743 drivers/tty/serial/stm32-usart.c 	if (ofs->rtor != UNDEF_REG && (stm32_port->rx_ch ||
stm32_port        744 drivers/tty/serial/stm32-usart.c 				       stm32_port->fifoen)) {
stm32_port        751 drivers/tty/serial/stm32-usart.c 		stm32_port->cr1_irq = USART_CR1_RTOIE;
stm32_port        755 drivers/tty/serial/stm32-usart.c 		if (!stm32_port->rx_ch)
stm32_port        756 drivers/tty/serial/stm32-usart.c 			stm32_port->cr3_irq =  USART_CR3_RXFTIE;
stm32_port        759 drivers/tty/serial/stm32-usart.c 	cr1 |= stm32_port->cr1_irq;
stm32_port        760 drivers/tty/serial/stm32-usart.c 	cr3 |= stm32_port->cr3_irq;
stm32_port        819 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_ch)
stm32_port        877 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port = container_of(port,
stm32_port        878 drivers/tty/serial/stm32-usart.c 			struct stm32_port, port);
stm32_port        917 drivers/tty/serial/stm32-usart.c static int stm32_init_port(struct stm32_port *stm32port,
stm32_port        973 drivers/tty/serial/stm32-usart.c static struct stm32_port *stm32_of_get_stm32_port(struct platform_device *pdev)
stm32_port       1010 drivers/tty/serial/stm32-usart.c static int stm32_of_dma_rx_probe(struct stm32_port *stm32port,
stm32_port       1082 drivers/tty/serial/stm32-usart.c static int stm32_of_dma_tx_probe(struct stm32_port *stm32port,
stm32_port       1136 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port;
stm32_port       1204 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port       1205 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port       1212 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_ch)
stm32_port       1213 drivers/tty/serial/stm32-usart.c 		dma_release_channel(stm32_port->rx_ch);
stm32_port       1215 drivers/tty/serial/stm32-usart.c 	if (stm32_port->rx_dma_buf)
stm32_port       1217 drivers/tty/serial/stm32-usart.c 				  RX_BUF_L, stm32_port->rx_buf,
stm32_port       1218 drivers/tty/serial/stm32-usart.c 				  stm32_port->rx_dma_buf);
stm32_port       1222 drivers/tty/serial/stm32-usart.c 	if (stm32_port->tx_ch)
stm32_port       1223 drivers/tty/serial/stm32-usart.c 		dma_release_channel(stm32_port->tx_ch);
stm32_port       1225 drivers/tty/serial/stm32-usart.c 	if (stm32_port->tx_dma_buf)
stm32_port       1227 drivers/tty/serial/stm32-usart.c 				  TX_BUF_L, stm32_port->tx_buf,
stm32_port       1228 drivers/tty/serial/stm32-usart.c 				  stm32_port->tx_dma_buf);
stm32_port       1230 drivers/tty/serial/stm32-usart.c 	if (stm32_port->wakeirq > 0) {
stm32_port       1235 drivers/tty/serial/stm32-usart.c 	clk_disable_unprepare(stm32_port->clk);
stm32_port       1249 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port       1250 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port       1261 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port       1262 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port       1263 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_config *cfg = &stm32_port->info->cfg;
stm32_port       1294 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port;
stm32_port       1348 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32_port = to_stm32_port(port);
stm32_port       1349 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
stm32_port       1350 drivers/tty/serial/stm32-usart.c 	struct stm32_usart_config *cfg = &stm32_port->info->cfg;
stm32_port       1353 drivers/tty/serial/stm32-usart.c 	if (stm32_port->wakeirq <= 0)
stm32_port       1401 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port = container_of(port,
stm32_port       1402 drivers/tty/serial/stm32-usart.c 			struct stm32_port, port);
stm32_port       1412 drivers/tty/serial/stm32-usart.c 	struct stm32_port *stm32port = container_of(port,
stm32_port       1413 drivers/tty/serial/stm32-usart.c 			struct stm32_port, port);
stm32_port        279 drivers/tty/serial/stm32-usart.h static struct stm32_port stm32_ports[STM32_MAX_PORTS];