• Home
  • Raw
  • Download

Lines Matching refs:isa_driver

27 	struct isa_driver *isa_driver = to_isa_driver(driver);  in isa_bus_match()  local
29 if (dev->platform_data == isa_driver) { in isa_bus_match()
30 if (!isa_driver->match || in isa_bus_match()
31 isa_driver->match(dev, to_isa_dev(dev)->id)) in isa_bus_match()
40 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_probe() local
42 if (isa_driver->probe) in isa_bus_probe()
43 return isa_driver->probe(dev, to_isa_dev(dev)->id); in isa_bus_probe()
50 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_remove() local
52 if (isa_driver->remove) in isa_bus_remove()
53 return isa_driver->remove(dev, to_isa_dev(dev)->id); in isa_bus_remove()
60 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_shutdown() local
62 if (isa_driver->shutdown) in isa_bus_shutdown()
63 isa_driver->shutdown(dev, to_isa_dev(dev)->id); in isa_bus_shutdown()
68 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_suspend() local
70 if (isa_driver->suspend) in isa_bus_suspend()
71 return isa_driver->suspend(dev, to_isa_dev(dev)->id, state); in isa_bus_suspend()
78 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_resume() local
80 if (isa_driver->resume) in isa_bus_resume()
81 return isa_driver->resume(dev, to_isa_dev(dev)->id); in isa_bus_resume()
101 void isa_unregister_driver(struct isa_driver *isa_driver) in isa_unregister_driver() argument
103 struct device *dev = isa_driver->devices; in isa_unregister_driver()
110 driver_unregister(&isa_driver->driver); in isa_unregister_driver()
114 int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) in isa_register_driver() argument
119 isa_driver->driver.bus = &isa_bus_type; in isa_register_driver()
120 isa_driver->devices = NULL; in isa_register_driver()
122 error = driver_register(&isa_driver->driver); in isa_register_driver()
139 isa_driver->driver.name, id); in isa_register_driver()
140 isa_dev->dev.platform_data = isa_driver; in isa_register_driver()
154 isa_dev->next = isa_driver->devices; in isa_register_driver()
155 isa_driver->devices = &isa_dev->dev; in isa_register_driver()
160 if (!error && !isa_driver->devices) in isa_register_driver()
164 isa_unregister_driver(isa_driver); in isa_register_driver()