Lines Matching refs:ofdev
26 int __devinit tah_attach(struct of_device *ofdev, int channel) in tah_attach() argument
28 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_attach()
38 void tah_detach(struct of_device *ofdev, int channel) in tah_detach() argument
40 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_detach()
47 void tah_reset(struct of_device *ofdev) in tah_reset() argument
49 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_reset()
60 printk(KERN_ERR "%s: reset timeout\n", ofdev->node->full_name); in tah_reset()
68 int tah_get_regs_len(struct of_device *ofdev) in tah_get_regs_len() argument
74 void *tah_dump_regs(struct of_device *ofdev, void *buf) in tah_dump_regs() argument
76 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_dump_regs()
89 static int __devinit tah_probe(struct of_device *ofdev, in tah_probe() argument
92 struct device_node *np = ofdev->node; in tah_probe()
106 dev->ofdev = ofdev; in tah_probe()
124 dev_set_drvdata(&ofdev->dev, dev); in tah_probe()
127 tah_reset(ofdev); in tah_probe()
130 "TAH %s initialized\n", ofdev->node->full_name); in tah_probe()
141 static int __devexit tah_remove(struct of_device *ofdev) in tah_remove() argument
143 struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); in tah_remove()
145 dev_set_drvdata(&ofdev->dev, NULL); in tah_remove()