Lines Matching refs:ofdev
64 static int of_platform_serial_setup(struct platform_device *ofdev,
69 struct device *dev = &ofdev->dev;
77 pm_runtime_enable(&ofdev->dev);
78 pm_runtime_get_sync(&ofdev->dev);
86 port->dev = &ofdev->dev;
121 info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL);
161 pm_runtime_put_sync(&ofdev->dev);
162 pm_runtime_disable(&ofdev->dev);
169 static int of_platform_serial_probe(struct platform_device *ofdev)
178 of_device_is_compatible(ofdev->dev.of_node, "brcm,bcm7271-uart"))
181 port_type = (unsigned long)of_device_get_match_data(&ofdev->dev);
185 if (of_property_read_bool(ofdev->dev.of_node, "used-by-rtas"))
193 ret = of_platform_serial_setup(ofdev, port_type, &port8250, info);
201 if ((of_property_read_u32(ofdev->dev.of_node, "tx-threshold",
206 if (of_property_read_bool(ofdev->dev.of_node, "auto-flow-control"))
209 if (of_property_read_u32(ofdev->dev.of_node,
220 platform_set_drvdata(ofdev, info);
223 pm_runtime_put_sync(&ofdev->dev);
224 pm_runtime_disable(&ofdev->dev);
233 static void of_platform_serial_remove(struct platform_device *ofdev)
235 struct of_serial_info *info = platform_get_drvdata(ofdev);
240 pm_runtime_put_sync(&ofdev->dev);
241 pm_runtime_disable(&ofdev->dev);