Lines Matching refs:ofdev
25 int tah_attach(struct platform_device *ofdev, int channel) in tah_attach() argument
27 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_attach()
37 void tah_detach(struct platform_device *ofdev, int channel) in tah_detach() argument
39 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_detach()
46 void tah_reset(struct platform_device *ofdev) in tah_reset() argument
48 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_reset()
59 printk(KERN_ERR "%pOF: reset timeout\n", ofdev->dev.of_node); in tah_reset()
67 int tah_get_regs_len(struct platform_device *ofdev) in tah_get_regs_len() argument
73 void *tah_dump_regs(struct platform_device *ofdev, void *buf) in tah_dump_regs() argument
75 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_dump_regs()
88 static int tah_probe(struct platform_device *ofdev) in tah_probe() argument
90 struct device_node *np = ofdev->dev.of_node; in tah_probe()
101 dev->ofdev = ofdev; in tah_probe()
117 platform_set_drvdata(ofdev, dev); in tah_probe()
120 tah_reset(ofdev); in tah_probe()
122 printk(KERN_INFO "TAH %pOF initialized\n", ofdev->dev.of_node); in tah_probe()
133 static void tah_remove(struct platform_device *ofdev) in tah_remove() argument
135 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_remove()