Lines Matching defs:ocpdev
20 static int __init tah_init(struct ocp_device *ocpdev)
24 if (ocp_get_drvdata(ocpdev)) {
25 printk(KERN_ERR "tah%d: already in use!\n", ocpdev->def->index);
30 p = (struct tah_regs *)ioremap(ocpdev->def->paddr, sizeof(*p));
33 ocpdev->def->index);
36 ocp_set_drvdata(ocpdev, p);
37 __tah_reset(ocpdev);
66 void __tah_fini(struct ocp_device *ocpdev)
68 struct tah_regs *p = ocp_get_drvdata(ocpdev);
70 ocp_set_drvdata(ocpdev, NULL);
74 void __tah_reset(struct ocp_device *ocpdev)
76 struct tah_regs *p = ocp_get_drvdata(ocpdev);
86 printk(KERN_ERR "tah%d: reset timeout\n", ocpdev->def->index);
94 int __tah_get_regs_len(struct ocp_device *ocpdev)
100 void *tah_dump_regs(struct ocp_device *ocpdev, void *buf)
102 struct tah_regs *dev = ocp_get_drvdata(ocpdev);
107 hdr->index = ocpdev->def->index;