Lines Matching defs:pnp_drv
83 struct pnp_driver *pnp_drv;
87 pnp_drv = to_pnp_driver(dev->driver);
94 if (!(pnp_drv->flags & PNP_DRIVER_RES_DO_NOT_CHANGE)) {
99 } else if ((pnp_drv->flags & PNP_DRIVER_RES_DISABLE)
106 if (pnp_drv->probe) {
107 dev_id = match_device(pnp_drv, pnp_dev);
109 error = pnp_drv->probe(pnp_dev, dev_id);
112 pnp_dev->driver = pnp_drv;
150 struct pnp_driver *pnp_drv = to_pnp_driver(drv);
152 if (match_device(pnp_drv, pnp_dev) == NULL)
160 struct pnp_driver *pnp_drv = pnp_dev->driver;
163 if (!pnp_drv)
166 if (pnp_drv->suspend) {
167 error = pnp_drv->suspend(pnp_dev, state);
186 struct pnp_driver *pnp_drv = pnp_dev->driver;
189 if (!pnp_drv)
201 if (pnp_drv->resume) {
202 error = pnp_drv->resume(pnp_dev);