vuart 67 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = dev_get_drvdata(dev); vuart 70 drivers/tty/serial/8250/8250_aspeed_vuart.c addr = (readb(vuart->regs + ASPEED_VUART_ADDRH) << 8) | vuart 71 drivers/tty/serial/8250/8250_aspeed_vuart.c (readb(vuart->regs + ASPEED_VUART_ADDRL)); vuart 80 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = dev_get_drvdata(dev); vuart 88 drivers/tty/serial/8250/8250_aspeed_vuart.c writeb(val >> 8, vuart->regs + ASPEED_VUART_ADDRH); vuart 89 drivers/tty/serial/8250/8250_aspeed_vuart.c writeb(val >> 0, vuart->regs + ASPEED_VUART_ADDRL); vuart 99 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = dev_get_drvdata(dev); vuart 102 drivers/tty/serial/8250/8250_aspeed_vuart.c reg = readb(vuart->regs + ASPEED_VUART_GCRB); vuart 112 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = dev_get_drvdata(dev); vuart 124 drivers/tty/serial/8250/8250_aspeed_vuart.c reg = readb(vuart->regs + ASPEED_VUART_GCRB); vuart 127 drivers/tty/serial/8250/8250_aspeed_vuart.c writeb(reg, vuart->regs + ASPEED_VUART_GCRB); vuart 144 drivers/tty/serial/8250/8250_aspeed_vuart.c static void aspeed_vuart_set_enabled(struct aspeed_vuart *vuart, bool enabled) vuart 146 drivers/tty/serial/8250/8250_aspeed_vuart.c u8 reg = readb(vuart->regs + ASPEED_VUART_GCRA); vuart 153 drivers/tty/serial/8250/8250_aspeed_vuart.c writeb(reg, vuart->regs + ASPEED_VUART_GCRA); vuart 156 drivers/tty/serial/8250/8250_aspeed_vuart.c static void aspeed_vuart_set_host_tx_discard(struct aspeed_vuart *vuart, vuart 161 drivers/tty/serial/8250/8250_aspeed_vuart.c reg = readb(vuart->regs + ASPEED_VUART_GCRA); vuart 169 drivers/tty/serial/8250/8250_aspeed_vuart.c writeb(reg, vuart->regs + ASPEED_VUART_GCRA); vuart 175 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = uart_8250_port->port.private_data; vuart 182 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_set_host_tx_discard(vuart, false); vuart 190 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = uart_8250_port->port.private_data; vuart 192 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_set_host_tx_discard(vuart, true); vuart 229 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = from_timer(vuart, timer, unthrottle_timer); vuart 230 drivers/tty/serial/8250/8250_aspeed_vuart.c struct uart_8250_port *up = vuart->port; vuart 233 drivers/tty/serial/8250/8250_aspeed_vuart.c mod_timer(&vuart->unthrottle_timer, vuart 273 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = port->private_data; vuart 276 drivers/tty/serial/8250/8250_aspeed_vuart.c if (!timer_pending(&vuart->unthrottle_timer)) { vuart 277 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->port = up; vuart 278 drivers/tty/serial/8250/8250_aspeed_vuart.c mod_timer(&vuart->unthrottle_timer, vuart 308 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart; vuart 316 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart = devm_kzalloc(&pdev->dev, sizeof(*vuart), GFP_KERNEL); vuart 317 drivers/tty/serial/8250/8250_aspeed_vuart.c if (!vuart) vuart 320 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->dev = &pdev->dev; vuart 321 drivers/tty/serial/8250/8250_aspeed_vuart.c timer_setup(&vuart->unthrottle_timer, aspeed_vuart_unthrottle_exp, 0); vuart 324 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->regs = devm_ioremap_resource(&pdev->dev, res); vuart 325 drivers/tty/serial/8250/8250_aspeed_vuart.c if (IS_ERR(vuart->regs)) vuart 326 drivers/tty/serial/8250/8250_aspeed_vuart.c return PTR_ERR(vuart->regs); vuart 329 drivers/tty/serial/8250/8250_aspeed_vuart.c port.port.private_data = vuart; vuart 330 drivers/tty/serial/8250/8250_aspeed_vuart.c port.port.membase = vuart->regs; vuart 340 drivers/tty/serial/8250/8250_aspeed_vuart.c rc = sysfs_create_group(&vuart->dev->kobj, &aspeed_vuart_attr_group); vuart 345 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->clk = devm_clk_get(&pdev->dev, NULL); vuart 346 drivers/tty/serial/8250/8250_aspeed_vuart.c if (IS_ERR(vuart->clk)) { vuart 349 drivers/tty/serial/8250/8250_aspeed_vuart.c rc = PTR_ERR(vuart->clk); vuart 353 drivers/tty/serial/8250/8250_aspeed_vuart.c rc = clk_prepare_enable(vuart->clk); vuart 357 drivers/tty/serial/8250/8250_aspeed_vuart.c clk = clk_get_rate(vuart->clk); vuart 402 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->line = rc; vuart 404 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_set_enabled(vuart, true); vuart 405 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_set_host_tx_discard(vuart, true); vuart 406 drivers/tty/serial/8250/8250_aspeed_vuart.c platform_set_drvdata(pdev, vuart); vuart 411 drivers/tty/serial/8250/8250_aspeed_vuart.c clk_disable_unprepare(vuart->clk); vuart 414 drivers/tty/serial/8250/8250_aspeed_vuart.c sysfs_remove_group(&vuart->dev->kobj, &aspeed_vuart_attr_group); vuart 420 drivers/tty/serial/8250/8250_aspeed_vuart.c struct aspeed_vuart *vuart = platform_get_drvdata(pdev); vuart 422 drivers/tty/serial/8250/8250_aspeed_vuart.c del_timer_sync(&vuart->unthrottle_timer); vuart 423 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_set_enabled(vuart, false); vuart 424 drivers/tty/serial/8250/8250_aspeed_vuart.c serial8250_unregister_port(vuart->line); vuart 425 drivers/tty/serial/8250/8250_aspeed_vuart.c sysfs_remove_group(&vuart->dev->kobj, &aspeed_vuart_attr_group); vuart 426 drivers/tty/serial/8250/8250_aspeed_vuart.c clk_disable_unprepare(vuart->clk);