Lines Matching refs:wdriver
141 struct wmi_driver *wdriver) in find_guid_context() argument
145 id = wdriver->id_table; in find_guid_context()
887 struct wmi_driver *wdriver; in wmi_ioctl() local
927 wdriver = drv_to_wdrv(wblock->dev.dev.driver); in wmi_ioctl()
928 if (!try_module_get(wdriver->driver.owner)) { in wmi_ioctl()
932 ret = wdriver->filter_callback(&wblock->dev, cmd, buf); in wmi_ioctl()
933 module_put(wdriver->driver.owner); in wmi_ioctl()
960 struct wmi_driver *wdriver = drv_to_wdrv(dev->driver); in wmi_dev_probe() local
967 if (wdriver->probe) { in wmi_dev_probe()
968 ret = wdriver->probe(dev_to_wdev(dev), in wmi_dev_probe()
969 find_guid_context(wblock, wdriver)); in wmi_dev_probe()
975 if (wdriver->filter_callback) { in wmi_dev_probe()
991 buf = kasprintf(GFP_KERNEL, "wmi/%s", wdriver->driver.name); in wmi_dev_probe()
1023 struct wmi_driver *wdriver = drv_to_wdrv(dev->driver); in wmi_dev_remove() local
1025 if (wdriver->filter_callback) { in wmi_dev_remove()
1031 if (wdriver->remove) in wmi_dev_remove()
1032 wdriver->remove(dev_to_wdev(dev)); in wmi_dev_remove()