Lines Matching refs:sport
723 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_suspend() local
726 if (sport) in sport_uart_suspend()
727 uart_suspend_port(&sport_uart_reg, &sport->port); in sport_uart_suspend()
734 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_resume() local
737 if (sport) in sport_uart_resume()
738 uart_resume_port(&sport_uart_reg, &sport->port); in sport_uart_resume()
752 struct sport_uart_port *sport; in sport_uart_probe() local
765 sport = bfin_sport_uart_ports[pdev->id]; in sport_uart_probe()
766 if (!sport) { in sport_uart_probe()
780 spin_lock_init(&sport->port.lock); in sport_uart_probe()
781 sport->port.fifosize = SPORT_TX_FIFO_SIZE, in sport_uart_probe()
782 sport->port.ops = &sport_uart_ops; in sport_uart_probe()
783 sport->port.line = pdev->id; in sport_uart_probe()
784 sport->port.iotype = UPIO_MEM; in sport_uart_probe()
785 sport->port.flags = UPF_BOOT_AUTOCONF; in sport_uart_probe()
794 sport->port.membase = ioremap(res->start, resource_size(res)); in sport_uart_probe()
795 if (!sport->port.membase) { in sport_uart_probe()
800 sport->port.mapbase = res->start; in sport_uart_probe()
802 sport->port.irq = platform_get_irq(pdev, 0); in sport_uart_probe()
803 if ((int)sport->port.irq < 0) { in sport_uart_probe()
809 sport->err_irq = platform_get_irq(pdev, 1); in sport_uart_probe()
810 if (sport->err_irq < 0) { in sport_uart_probe()
818 sport->cts_pin = -1; in sport_uart_probe()
820 sport->cts_pin = res->start; in sport_uart_probe()
824 sport->rts_pin = -1; in sport_uart_probe()
826 sport->rts_pin = res->start; in sport_uart_probe()
833 sport = bfin_sport_uart_ports[pdev->id]; in sport_uart_probe()
834 sport->port.dev = &pdev->dev; in sport_uart_probe()
835 dev_set_drvdata(&pdev->dev, sport); in sport_uart_probe()
836 ret = uart_add_one_port(&sport_uart_reg, &sport->port); in sport_uart_probe()
843 if (sport) { in sport_uart_probe()
845 iounmap(sport->port.membase); in sport_uart_probe()
849 kfree(sport); in sport_uart_probe()
858 struct sport_uart_port *sport = platform_get_drvdata(pdev); in sport_uart_remove() local
863 if (sport) { in sport_uart_remove()
864 uart_remove_one_port(&sport_uart_reg, &sport->port); in sport_uart_remove()
865 iounmap(sport->port.membase); in sport_uart_remove()
867 kfree(sport); in sport_uart_remove()