Lines Matching full:uart_routing
495 struct aspeed_uart_routing *uart_routing = dev_get_drvdata(dev); in aspeed_uart_routing_show() local
499 regmap_read(uart_routing->map, sel->reg, &val); in aspeed_uart_routing_show()
522 struct aspeed_uart_routing *uart_routing = dev_get_drvdata(dev); in aspeed_uart_routing_store() local
532 regmap_update_bits(uart_routing->map, sel->reg, in aspeed_uart_routing_store()
543 struct aspeed_uart_routing *uart_routing; in aspeed_uart_routing_probe() local
545 uart_routing = devm_kzalloc(&pdev->dev, sizeof(*uart_routing), GFP_KERNEL); in aspeed_uart_routing_probe()
546 if (!uart_routing) in aspeed_uart_routing_probe()
549 uart_routing->map = syscon_node_to_regmap(dev->parent->of_node); in aspeed_uart_routing_probe()
550 if (IS_ERR(uart_routing->map)) { in aspeed_uart_routing_probe()
552 return PTR_ERR(uart_routing->map); in aspeed_uart_routing_probe()
555 uart_routing->attr_grp = of_device_get_match_data(dev); in aspeed_uart_routing_probe()
557 rc = sysfs_create_group(&dev->kobj, uart_routing->attr_grp); in aspeed_uart_routing_probe()
561 dev_set_drvdata(dev, uart_routing); in aspeed_uart_routing_probe()
571 struct aspeed_uart_routing *uart_routing = platform_get_drvdata(pdev); in aspeed_uart_routing_remove() local
573 sysfs_remove_group(&dev->kobj, uart_routing->attr_grp); in aspeed_uart_routing_remove()