Lines Matching refs:ofdev
81 int zmii_attach(struct platform_device *ofdev, int input, in zmii_attach() argument
84 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_attach()
121 ofdev->dev.of_node, in zmii_attach()
128 ofdev->dev.of_node, *mode, input); in zmii_attach()
148 void zmii_get_mdio(struct platform_device *ofdev, int input) in zmii_get_mdio() argument
150 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_get_mdio()
161 void zmii_put_mdio(struct platform_device *ofdev, int input) in zmii_put_mdio() argument
163 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_put_mdio()
170 void zmii_set_speed(struct platform_device *ofdev, int input, int speed) in zmii_set_speed() argument
172 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_set_speed()
191 void zmii_detach(struct platform_device *ofdev, int input) in zmii_detach() argument
193 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_detach()
210 int zmii_get_regs_len(struct platform_device *ofdev) in zmii_get_regs_len() argument
216 void *zmii_dump_regs(struct platform_device *ofdev, void *buf) in zmii_dump_regs() argument
218 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_dump_regs()
231 static int zmii_probe(struct platform_device *ofdev) in zmii_probe() argument
233 struct device_node *np = ofdev->dev.of_node; in zmii_probe()
244 dev->ofdev = ofdev; in zmii_probe()
267 printk(KERN_INFO "ZMII %pOF initialized\n", ofdev->dev.of_node); in zmii_probe()
269 platform_set_drvdata(ofdev, dev); in zmii_probe()
279 static int zmii_remove(struct platform_device *ofdev) in zmii_remove() argument
281 struct zmii_instance *dev = platform_get_drvdata(ofdev); in zmii_remove()