Lines Matching refs:thdrv
31 const struct intel_th_driver *thdrv = to_intel_th_driver(driver);
35 (!thdrv->enable || !thdrv->disable))
50 struct intel_th_driver *thdrv = to_intel_th_driver(dev->driver);
70 ret = thdrv->probe(to_intel_th_device(dev));
74 if (thdrv->attr_group) {
75 ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group);
87 thdrv->remove(thdev);
100 struct intel_th_driver *thdrv = to_intel_th_driver(dev->driver);
148 if (thdrv->attr_group)
149 sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group);
153 thdrv->remove(thdev);
236 struct intel_th_driver *thdrv =
241 if (!thdrv)
244 if (!try_module_get(thdrv->driver.owner))
255 if (thdrv->activate)
256 ret = thdrv->activate(thdev);
271 module_put(thdrv->driver.owner);
278 struct intel_th_driver *thdrv =
282 if (!thdrv)
285 if (thdrv->deactivate)
286 thdrv->deactivate(thdev);
294 module_put(thdrv->driver.owner);
354 int intel_th_driver_register(struct intel_th_driver *thdrv)
356 if (!thdrv->probe || !thdrv->remove)
359 thdrv->driver.bus = &intel_th_bus;
361 return driver_register(&thdrv->driver);
365 void intel_th_driver_unregister(struct intel_th_driver *thdrv)
367 driver_unregister(&thdrv->driver);
808 struct intel_th_driver *thdrv;
816 thdrv = to_intel_th_driver(dev->driver);
817 fops = fops_get(thdrv->fops);