Lines Matching refs:pnp_drv
85 struct pnp_driver *pnp_drv; in pnp_device_probe() local
89 pnp_drv = to_pnp_driver(dev->driver); in pnp_device_probe()
96 if (!(pnp_drv->flags & PNP_DRIVER_RES_DO_NOT_CHANGE)) { in pnp_device_probe()
101 } else if ((pnp_drv->flags & PNP_DRIVER_RES_DISABLE) in pnp_device_probe()
108 if (pnp_drv->probe) { in pnp_device_probe()
109 dev_id = match_device(pnp_drv, pnp_dev); in pnp_device_probe()
111 error = pnp_drv->probe(pnp_dev, dev_id); in pnp_device_probe()
114 pnp_dev->driver = pnp_drv; in pnp_device_probe()
156 struct pnp_driver *pnp_drv = to_pnp_driver(drv); in pnp_bus_match() local
158 if (match_device(pnp_drv, pnp_dev) == NULL) in pnp_bus_match()
166 struct pnp_driver *pnp_drv = pnp_dev->driver; in __pnp_bus_suspend() local
169 if (!pnp_drv) in __pnp_bus_suspend()
172 if (pnp_drv->driver.pm && pnp_drv->driver.pm->suspend) { in __pnp_bus_suspend()
173 error = pnp_drv->driver.pm->suspend(dev); in __pnp_bus_suspend()
174 suspend_report_result(dev, pnp_drv->driver.pm->suspend, error); in __pnp_bus_suspend()
179 if (pnp_drv->suspend) { in __pnp_bus_suspend()
180 error = pnp_drv->suspend(pnp_dev, state); in __pnp_bus_suspend()
215 struct pnp_driver *pnp_drv = pnp_dev->driver; in pnp_bus_resume() local
218 if (!pnp_drv) in pnp_bus_resume()
233 if (pnp_drv->driver.pm && pnp_drv->driver.pm->resume) { in pnp_bus_resume()
234 error = pnp_drv->driver.pm->resume(dev); in pnp_bus_resume()
239 if (pnp_drv->resume) { in pnp_bus_resume()
240 error = pnp_drv->resume(pnp_dev); in pnp_bus_resume()