Lines Matching refs:driver
3 * ACPI-WMI mapping driver
100 .driver = {
211 * @wdev: A wmi bus device from a driver
251 * @wdev: A wmi bus device from a driver
802 static int wmi_dev_match(struct device *dev, struct device_driver *driver)
805 container_of(driver, struct wmi_driver, driver);
875 /* if it's too big, warn, driver will only use what is needed */
889 /* let the driver do any filtering and do the call */
890 wdriver = container_of(wblock->dev.dev.driver,
891 struct wmi_driver, driver);
892 if (!try_module_get(wdriver->driver.owner)) {
897 module_put(wdriver->driver.owner);
925 container_of(dev->driver, struct wmi_driver, driver);
939 /* driver wants a character device made */
941 /* check that required buffer size declared by driver or MOF */
956 buf = kasprintf(GFP_KERNEL, "wmi/%s", wdriver->driver.name);
989 container_of(dev->driver, struct wmi_driver, driver);
1233 * hand these off to the EC driver.
1296 /* If a driver is bound, then notify the driver. */
1297 if (wblock->dev.dev.driver) {
1298 struct wmi_driver *driver;
1304 driver = container_of(wblock->dev.dev.driver,
1305 struct wmi_driver, driver);
1320 if (driver->notify)
1321 driver->notify(&wblock->dev,
1417 int __must_check __wmi_driver_register(struct wmi_driver *driver,
1420 driver->driver.owner = owner;
1421 driver->driver.bus = &wmi_bus_type;
1423 return driver_register(&driver->driver);
1427 void wmi_driver_unregister(struct wmi_driver *driver)
1429 driver_unregister(&driver->driver);