Lines Matching refs:ofdev

86 static int of_platform_serial_setup(struct platform_device *ofdev,  in of_platform_serial_setup()  argument
91 struct device *dev = &ofdev->dev; in of_platform_serial_setup()
99 pm_runtime_enable(&ofdev->dev); in of_platform_serial_setup()
100 pm_runtime_get_sync(&ofdev->dev); in of_platform_serial_setup()
108 port->dev = &ofdev->dev; in of_platform_serial_setup()
143 info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL); in of_platform_serial_setup()
183 pm_runtime_put_sync(&ofdev->dev); in of_platform_serial_setup()
184 pm_runtime_disable(&ofdev->dev); in of_platform_serial_setup()
191 static int of_platform_serial_probe(struct platform_device *ofdev) in of_platform_serial_probe() argument
200 of_device_is_compatible(ofdev->dev.of_node, "brcm,bcm7271-uart")) in of_platform_serial_probe()
203 port_type = (unsigned long)of_device_get_match_data(&ofdev->dev); in of_platform_serial_probe()
207 if (of_property_read_bool(ofdev->dev.of_node, "used-by-rtas")) in of_platform_serial_probe()
215 ret = of_platform_serial_setup(ofdev, port_type, &port8250, info); in of_platform_serial_probe()
223 if ((of_property_read_u32(ofdev->dev.of_node, "tx-threshold", in of_platform_serial_probe()
228 if (of_property_read_bool(ofdev->dev.of_node, "auto-flow-control")) in of_platform_serial_probe()
231 if (of_property_read_u32(ofdev->dev.of_node, in of_platform_serial_probe()
242 platform_set_drvdata(ofdev, info); in of_platform_serial_probe()
257 pm_runtime_put_sync(&ofdev->dev); in of_platform_serial_probe()
258 pm_runtime_disable(&ofdev->dev); in of_platform_serial_probe()
267 static void of_platform_serial_remove(struct platform_device *ofdev) in of_platform_serial_remove() argument
269 struct of_serial_info *info = platform_get_drvdata(ofdev); in of_platform_serial_remove()
277 pm_runtime_put_sync(&ofdev->dev); in of_platform_serial_remove()
278 pm_runtime_disable(&ofdev->dev); in of_platform_serial_remove()