Lines Matching refs:em485

615 	if (p->em485)  in serial8250_em485_init()
618 p->em485 = kmalloc(sizeof(struct uart_8250_em485), GFP_ATOMIC); in serial8250_em485_init()
619 if (!p->em485) in serial8250_em485_init()
622 hrtimer_init(&p->em485->stop_tx_timer, CLOCK_MONOTONIC, in serial8250_em485_init()
624 hrtimer_init(&p->em485->start_tx_timer, CLOCK_MONOTONIC, in serial8250_em485_init()
626 p->em485->stop_tx_timer.function = &serial8250_em485_handle_stop_tx; in serial8250_em485_init()
627 p->em485->start_tx_timer.function = &serial8250_em485_handle_start_tx; in serial8250_em485_init()
628 p->em485->port = p; in serial8250_em485_init()
629 p->em485->active_timer = NULL; in serial8250_em485_init()
630 p->em485->tx_stopped = true; in serial8250_em485_init()
652 if (!p->em485) in serial8250_em485_destroy()
655 hrtimer_cancel(&p->em485->start_tx_timer); in serial8250_em485_destroy()
656 hrtimer_cancel(&p->em485->stop_tx_timer); in serial8250_em485_destroy()
658 kfree(p->em485); in serial8250_em485_destroy()
659 p->em485 = NULL; in serial8250_em485_destroy()
1476 struct uart_8250_em485 *em485 = container_of(t, struct uart_8250_em485, in serial8250_em485_handle_stop_tx() local
1478 struct uart_8250_port *p = em485->port; in serial8250_em485_handle_stop_tx()
1483 if (em485->active_timer == &em485->stop_tx_timer) { in serial8250_em485_handle_stop_tx()
1485 em485->active_timer = NULL; in serial8250_em485_handle_stop_tx()
1486 em485->tx_stopped = true; in serial8250_em485_handle_stop_tx()
1501 struct uart_8250_em485 *em485 = p->em485; in __stop_tx_rs485() local
1508 em485->active_timer = &em485->stop_tx_timer; in __stop_tx_rs485()
1509 start_hrtimer_ms(&em485->stop_tx_timer, in __stop_tx_rs485()
1513 em485->active_timer = NULL; in __stop_tx_rs485()
1514 em485->tx_stopped = true; in __stop_tx_rs485()
1526 struct uart_8250_em485 *em485 = p->em485; in __stop_tx() local
1528 if (em485) { in __stop_tx()
1616 struct uart_8250_em485 *em485 = up->em485; in start_tx_rs485() local
1618 em485->active_timer = NULL; in start_tx_rs485()
1620 if (em485->tx_stopped) { in start_tx_rs485()
1621 em485->tx_stopped = false; in start_tx_rs485()
1626 em485->active_timer = &em485->start_tx_timer; in start_tx_rs485()
1627 start_hrtimer_ms(&em485->start_tx_timer, in start_tx_rs485()
1638 struct uart_8250_em485 *em485 = container_of(t, struct uart_8250_em485, in serial8250_em485_handle_start_tx() local
1640 struct uart_8250_port *p = em485->port; in serial8250_em485_handle_start_tx()
1644 if (em485->active_timer == &em485->start_tx_timer) { in serial8250_em485_handle_start_tx()
1646 em485->active_timer = NULL; in serial8250_em485_handle_start_tx()
1656 struct uart_8250_em485 *em485 = up->em485; in serial8250_start_tx() local
1660 if (em485 && in serial8250_start_tx()
1661 em485->active_timer == &em485->start_tx_timer) in serial8250_start_tx()
1664 if (em485) in serial8250_start_tx()
3340 struct uart_8250_em485 *em485 = up->em485; in serial8250_console_write() local
3369 if (em485) { in serial8250_console_write()
3370 if (em485->tx_stopped) in serial8250_console_write()
3383 if (em485) { in serial8250_console_write()
3385 if (em485->tx_stopped) in serial8250_console_write()