Lines Matching refs:ofdev
27 int tah_attach(struct platform_device *ofdev, int channel) in tah_attach() argument
29 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_attach()
39 void tah_detach(struct platform_device *ofdev, int channel) in tah_detach() argument
41 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_detach()
48 void tah_reset(struct platform_device *ofdev) in tah_reset() argument
50 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_reset()
62 ofdev->dev.of_node->full_name); in tah_reset()
70 int tah_get_regs_len(struct platform_device *ofdev) in tah_get_regs_len() argument
76 void *tah_dump_regs(struct platform_device *ofdev, void *buf) in tah_dump_regs() argument
78 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_dump_regs()
91 static int tah_probe(struct platform_device *ofdev) in tah_probe() argument
93 struct device_node *np = ofdev->dev.of_node; in tah_probe()
104 dev->ofdev = ofdev; in tah_probe()
122 platform_set_drvdata(ofdev, dev); in tah_probe()
125 tah_reset(ofdev); in tah_probe()
128 "TAH %s initialized\n", ofdev->dev.of_node->full_name); in tah_probe()
139 static int tah_remove(struct platform_device *ofdev) in tah_remove() argument
141 struct tah_instance *dev = platform_get_drvdata(ofdev); in tah_remove()