• Home
  • Raw
  • Download

Lines Matching refs:pnp_dev

44 						struct pnp_dev *dev)  in match_device()
59 int pnp_device_attach(struct pnp_dev *pnp_dev) in pnp_device_attach() argument
62 if (pnp_dev->status != PNP_READY) { in pnp_device_attach()
66 pnp_dev->status = PNP_ATTACHED; in pnp_device_attach()
71 void pnp_device_detach(struct pnp_dev *pnp_dev) in pnp_device_detach() argument
74 if (pnp_dev->status == PNP_ATTACHED) in pnp_device_detach()
75 pnp_dev->status = PNP_READY; in pnp_device_detach()
77 pnp_disable_dev(pnp_dev); in pnp_device_detach()
84 struct pnp_dev *pnp_dev; in pnp_device_probe() local
86 pnp_dev = to_pnp_dev(dev); in pnp_device_probe()
89 error = pnp_device_attach(pnp_dev); in pnp_device_probe()
93 if (pnp_dev->active == 0) { in pnp_device_probe()
95 error = pnp_activate_dev(pnp_dev); in pnp_device_probe()
101 error = pnp_disable_dev(pnp_dev); in pnp_device_probe()
107 dev_id = match_device(pnp_drv, pnp_dev); in pnp_device_probe()
109 error = pnp_drv->probe(pnp_dev, dev_id); in pnp_device_probe()
112 pnp_dev->driver = pnp_drv; in pnp_device_probe()
120 pnp_device_detach(pnp_dev); in pnp_device_probe()
126 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_device_remove() local
127 struct pnp_driver *drv = pnp_dev->driver; in pnp_device_remove()
131 drv->remove(pnp_dev); in pnp_device_remove()
132 pnp_dev->driver = NULL; in pnp_device_remove()
134 pnp_device_detach(pnp_dev); in pnp_device_remove()
140 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_device_shutdown() local
141 struct pnp_driver *drv = pnp_dev->driver; in pnp_device_shutdown()
144 drv->shutdown(pnp_dev); in pnp_device_shutdown()
149 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_bus_match() local
152 if (match_device(pnp_drv, pnp_dev) == NULL) in pnp_bus_match()
159 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in __pnp_bus_suspend() local
160 struct pnp_driver *pnp_drv = pnp_dev->driver; in __pnp_bus_suspend()
174 error = pnp_drv->suspend(pnp_dev, state); in __pnp_bus_suspend()
179 if (pnp_can_disable(pnp_dev)) { in __pnp_bus_suspend()
180 error = pnp_stop_dev(pnp_dev); in __pnp_bus_suspend()
185 if (pnp_dev->protocol->suspend) in __pnp_bus_suspend()
186 pnp_dev->protocol->suspend(pnp_dev, state); in __pnp_bus_suspend()
207 struct pnp_dev *pnp_dev = to_pnp_dev(dev); in pnp_bus_resume() local
208 struct pnp_driver *pnp_drv = pnp_dev->driver; in pnp_bus_resume()
214 if (pnp_dev->protocol->resume) { in pnp_bus_resume()
215 error = pnp_dev->protocol->resume(pnp_dev); in pnp_bus_resume()
220 if (pnp_can_write(pnp_dev)) { in pnp_bus_resume()
221 error = pnp_start_dev(pnp_dev); in pnp_bus_resume()
233 error = pnp_drv->resume(pnp_dev); in pnp_bus_resume()
280 struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id) in pnp_add_id()