Lines Matching refs:gdrv

36 	struct ccwgroup_driver *gdrv;  in ccwgroup_bus_match()  local
39 gdrv = to_ccwgroupdrv(drv); in ccwgroup_bus_match()
41 if (gdev->creator_id == gdrv->driver_id) in ccwgroup_bus_match()
368 struct ccwgroup_driver *gdrv; in ccwgroup_set_online() local
381 gdrv = to_ccwgroupdrv (gdev->dev.driver); in ccwgroup_set_online()
382 if ((ret = gdrv->set_online ? gdrv->set_online(gdev) : 0)) in ccwgroup_set_online()
394 struct ccwgroup_driver *gdrv; in ccwgroup_set_offline() local
407 gdrv = to_ccwgroupdrv (gdev->dev.driver); in ccwgroup_set_offline()
408 if ((ret = gdrv->set_offline ? gdrv->set_offline(gdev) : 0)) in ccwgroup_set_offline()
421 struct ccwgroup_driver *gdrv; in ccwgroup_online_store() local
429 gdrv = to_ccwgroupdrv(dev->driver); in ccwgroup_online_store()
431 if (!try_module_get(gdrv->driver.owner)) in ccwgroup_online_store()
445 module_put(gdrv->driver.owner); in ccwgroup_online_store()
465 struct ccwgroup_driver *gdrv; in ccwgroup_probe() local
470 gdrv = to_ccwgroupdrv(dev->driver); in ccwgroup_probe()
475 ret = gdrv->probe ? gdrv->probe(gdev) : -ENODEV; in ccwgroup_probe()
486 struct ccwgroup_driver *gdrv; in ccwgroup_remove() local
495 gdrv = to_ccwgroupdrv(dev->driver); in ccwgroup_remove()
497 if (gdrv->remove) in ccwgroup_remove()
498 gdrv->remove(gdev); in ccwgroup_remove()
506 struct ccwgroup_driver *gdrv; in ccwgroup_shutdown() local
512 gdrv = to_ccwgroupdrv(dev->driver); in ccwgroup_shutdown()
514 if (gdrv->shutdown) in ccwgroup_shutdown()
515 gdrv->shutdown(gdev); in ccwgroup_shutdown()
521 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_pm_prepare() local
530 return gdrv->prepare ? gdrv->prepare(gdev) : 0; in ccwgroup_pm_prepare()
536 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(dev->driver); in ccwgroup_pm_complete() local
541 if (gdrv->complete) in ccwgroup_pm_complete()
542 gdrv->complete(gdev); in ccwgroup_pm_complete()
548 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_pm_freeze() local
553 return gdrv->freeze ? gdrv->freeze(gdev) : 0; in ccwgroup_pm_freeze()
559 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_pm_thaw() local
564 return gdrv->thaw ? gdrv->thaw(gdev) : 0; in ccwgroup_pm_thaw()
570 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_pm_restore() local
575 return gdrv->restore ? gdrv->restore(gdev) : 0; in ccwgroup_pm_restore()