wblock 114 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 120 drivers/platform/x86/wmi.c list_for_each_entry(wblock, &wmi_block_list, list) { wblock 121 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 125 drivers/platform/x86/wmi.c *out = wblock; wblock 132 drivers/platform/x86/wmi.c static const void *find_guid_context(struct wmi_block *wblock, wblock 138 drivers/platform/x86/wmi.c if (wblock == NULL || wdriver == NULL) wblock 147 drivers/platform/x86/wmi.c if (!memcmp(wblock->gblock.guid, &guid_input, 16)) wblock 178 drivers/platform/x86/wmi.c static acpi_status wmi_method_enable(struct wmi_block *wblock, int enable) wblock 185 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 186 drivers/platform/x86/wmi.c handle = wblock->acpi_device->handle; wblock 210 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 212 drivers/platform/x86/wmi.c wblock = container_of(wdev, struct wmi_block, dev); wblock 213 drivers/platform/x86/wmi.c wblock->req_buf_size = length; wblock 232 drivers/platform/x86/wmi.c struct wmi_block *wblock = NULL; wblock 234 drivers/platform/x86/wmi.c if (!find_guid(guid_string, &wblock)) wblock 236 drivers/platform/x86/wmi.c return wmidev_evaluate_method(&wblock->dev, instance, method_id, wblock 255 drivers/platform/x86/wmi.c struct wmi_block *wblock = NULL; wblock 262 drivers/platform/x86/wmi.c wblock = container_of(wdev, struct wmi_block, dev); wblock 263 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 264 drivers/platform/x86/wmi.c handle = wblock->acpi_device->handle; wblock 299 drivers/platform/x86/wmi.c static acpi_status __query_block(struct wmi_block *wblock, u8 instance, wblock 313 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 314 drivers/platform/x86/wmi.c handle = wblock->acpi_device->handle; wblock 328 drivers/platform/x86/wmi.c if (instance == 0 && wblock->read_takes_no_args) wblock 373 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 378 drivers/platform/x86/wmi.c if (!find_guid(guid_string, &wblock)) wblock 381 drivers/platform/x86/wmi.c return __query_block(wblock, instance, out); wblock 388 drivers/platform/x86/wmi.c struct wmi_block *wblock = container_of(wdev, struct wmi_block, dev); wblock 390 drivers/platform/x86/wmi.c if (ACPI_FAILURE(__query_block(wblock, instance, &out))) wblock 409 drivers/platform/x86/wmi.c struct wmi_block *wblock = NULL; wblock 418 drivers/platform/x86/wmi.c if (!find_guid(guid_string, &wblock)) wblock 421 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 422 drivers/platform/x86/wmi.c handle = wblock->acpi_device->handle; wblock 609 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 616 drivers/platform/x86/wmi.c list_for_each_entry(wblock, &wmi_block_list, list) { wblock 617 drivers/platform/x86/wmi.c gblock = &wblock->gblock; wblock 621 drivers/platform/x86/wmi.c return acpi_evaluate_object(wblock->acpi_device->handle, wblock 651 drivers/platform/x86/wmi.c struct wmi_block *wblock = NULL; wblock 653 drivers/platform/x86/wmi.c if (!find_guid(guid_string, &wblock)) wblock 656 drivers/platform/x86/wmi.c return acpi_device_uid(wblock->acpi_device); wblock 676 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 678 drivers/platform/x86/wmi.c return sprintf(buf, "wmi:%pUL\n", wblock->gblock.guid); wblock 685 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 687 drivers/platform/x86/wmi.c return sprintf(buf, "%pUL\n", wblock->gblock.guid); wblock 694 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 696 drivers/platform/x86/wmi.c return sprintf(buf, "%d\n", (int)wblock->gblock.instance_count); wblock 703 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 706 drivers/platform/x86/wmi.c (wblock->gblock.flags & ACPI_WMI_EXPENSIVE) != 0); wblock 722 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 724 drivers/platform/x86/wmi.c return sprintf(buf, "%02X\n", (unsigned int)wblock->gblock.notify_id); wblock 737 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 739 drivers/platform/x86/wmi.c return sprintf(buf, "%c%c\n", wblock->gblock.object_id[0], wblock 740 drivers/platform/x86/wmi.c wblock->gblock.object_id[1]); wblock 768 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 770 drivers/platform/x86/wmi.c if (add_uevent_var(env, "MODALIAS=wmi:%pUL", wblock->gblock.guid)) wblock 773 drivers/platform/x86/wmi.c if (add_uevent_var(env, "WMI_GUID=%pUL", wblock->gblock.guid)) wblock 781 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 783 drivers/platform/x86/wmi.c kfree(wblock); wblock 790 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 801 drivers/platform/x86/wmi.c if (!memcmp(&driver_guid, wblock->gblock.guid, 16)) wblock 812 drivers/platform/x86/wmi.c struct wmi_block *wblock = NULL; wblock 815 drivers/platform/x86/wmi.c list_for_each_entry_safe(wblock, next, &wmi_block_list, list) { wblock 816 drivers/platform/x86/wmi.c if (!wblock->dev.dev.driver) wblock 818 drivers/platform/x86/wmi.c if (strcmp(driver_name, wblock->dev.dev.driver->name) == 0) { wblock 819 drivers/platform/x86/wmi.c filp->private_data = wblock; wblock 833 drivers/platform/x86/wmi.c struct wmi_block *wblock = filp->private_data; wblock 836 drivers/platform/x86/wmi.c &wblock->req_buf_size, wblock 837 drivers/platform/x86/wmi.c sizeof(wblock->req_buf_size)); wblock 844 drivers/platform/x86/wmi.c struct wmi_block *wblock = filp->private_data; wblock 853 drivers/platform/x86/wmi.c if (_IOC_NR(cmd) >= wblock->gblock.instance_count) wblock 856 drivers/platform/x86/wmi.c mutex_lock(&wblock->char_mutex); wblock 857 drivers/platform/x86/wmi.c buf = wblock->handler_data; wblock 859 drivers/platform/x86/wmi.c dev_dbg(&wblock->dev.dev, "Read length from user failed\n"); wblock 864 drivers/platform/x86/wmi.c if (buf->length < wblock->req_buf_size) { wblock 865 drivers/platform/x86/wmi.c dev_err(&wblock->dev.dev, wblock 867 drivers/platform/x86/wmi.c buf->length, wblock->req_buf_size); wblock 872 drivers/platform/x86/wmi.c if (buf->length > wblock->req_buf_size) wblock 873 drivers/platform/x86/wmi.c dev_warn(&wblock->dev.dev, wblock 875 drivers/platform/x86/wmi.c buf->length, wblock->req_buf_size); wblock 878 drivers/platform/x86/wmi.c if (copy_from_user(buf, input, wblock->req_buf_size)) { wblock 879 drivers/platform/x86/wmi.c dev_dbg(&wblock->dev.dev, "Copy %llu from user failed\n", wblock 880 drivers/platform/x86/wmi.c wblock->req_buf_size); wblock 886 drivers/platform/x86/wmi.c wdriver = container_of(wblock->dev.dev.driver, wblock 892 drivers/platform/x86/wmi.c ret = wdriver->filter_callback(&wblock->dev, cmd, buf); wblock 898 drivers/platform/x86/wmi.c if (copy_to_user(input, buf, wblock->req_buf_size)) { wblock 899 drivers/platform/x86/wmi.c dev_dbg(&wblock->dev.dev, "Copy %llu to user failed\n", wblock 900 drivers/platform/x86/wmi.c wblock->req_buf_size); wblock 905 drivers/platform/x86/wmi.c mutex_unlock(&wblock->char_mutex); wblock 919 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 925 drivers/platform/x86/wmi.c if (ACPI_FAILURE(wmi_method_enable(wblock, 1))) wblock 930 drivers/platform/x86/wmi.c find_guid_context(wblock, wdriver)); wblock 938 drivers/platform/x86/wmi.c if (!wblock->req_buf_size) { wblock 939 drivers/platform/x86/wmi.c dev_err(&wblock->dev.dev, wblock 945 drivers/platform/x86/wmi.c wblock->handler_data = kmalloc(wblock->req_buf_size, wblock 947 drivers/platform/x86/wmi.c if (!wblock->handler_data) { wblock 957 drivers/platform/x86/wmi.c wblock->char_dev.minor = MISC_DYNAMIC_MINOR; wblock 958 drivers/platform/x86/wmi.c wblock->char_dev.name = buf; wblock 959 drivers/platform/x86/wmi.c wblock->char_dev.fops = &wmi_fops; wblock 960 drivers/platform/x86/wmi.c wblock->char_dev.mode = 0444; wblock 961 drivers/platform/x86/wmi.c ret = misc_register(&wblock->char_dev); wblock 974 drivers/platform/x86/wmi.c kfree(wblock->handler_data); wblock 976 drivers/platform/x86/wmi.c if (ACPI_FAILURE(wmi_method_enable(wblock, 0))) wblock 983 drivers/platform/x86/wmi.c struct wmi_block *wblock = dev_to_wblock(dev); wblock 989 drivers/platform/x86/wmi.c misc_deregister(&wblock->char_dev); wblock 990 drivers/platform/x86/wmi.c kfree(wblock->char_dev.name); wblock 991 drivers/platform/x86/wmi.c kfree(wblock->handler_data); wblock 997 drivers/platform/x86/wmi.c if (ACPI_FAILURE(wmi_method_enable(wblock, 0))) wblock 1036 drivers/platform/x86/wmi.c struct wmi_block *wblock, wblock 1044 drivers/platform/x86/wmi.c wblock->dev.dev.type = &wmi_type_event; wblock 1049 drivers/platform/x86/wmi.c wblock->dev.dev.type = &wmi_type_method; wblock 1050 drivers/platform/x86/wmi.c mutex_init(&wblock->char_mutex); wblock 1060 drivers/platform/x86/wmi.c strncat(method, wblock->gblock.object_id, 2); wblock 1070 drivers/platform/x86/wmi.c wblock->dev.dev.type = &wmi_type_data; wblock 1083 drivers/platform/x86/wmi.c wblock->read_takes_no_args = true; wblock 1088 drivers/platform/x86/wmi.c strncat(method, wblock->gblock.object_id, 2); wblock 1092 drivers/platform/x86/wmi.c wblock->dev.setable = true; wblock 1095 drivers/platform/x86/wmi.c wblock->dev.dev.bus = &wmi_bus_type; wblock 1096 drivers/platform/x86/wmi.c wblock->dev.dev.parent = wmi_bus_dev; wblock 1098 drivers/platform/x86/wmi.c dev_set_name(&wblock->dev.dev, "%pUL", gblock->guid); wblock 1100 drivers/platform/x86/wmi.c device_initialize(&wblock->dev.dev); wblock 1107 drivers/platform/x86/wmi.c struct wmi_block *wblock, *next; wblock 1110 drivers/platform/x86/wmi.c list_for_each_entry_safe(wblock, next, &wmi_block_list, list) { wblock 1111 drivers/platform/x86/wmi.c if (wblock->acpi_device == device) { wblock 1112 drivers/platform/x86/wmi.c list_del(&wblock->list); wblock 1113 drivers/platform/x86/wmi.c device_unregister(&wblock->dev.dev); wblock 1121 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 1123 drivers/platform/x86/wmi.c list_for_each_entry(wblock, &wmi_block_list, list) { wblock 1124 drivers/platform/x86/wmi.c if (memcmp(wblock->gblock.guid, guid, 16) == 0) { wblock 1132 drivers/platform/x86/wmi.c guid, dev_name(&wblock->acpi_device->dev)); wblock 1147 drivers/platform/x86/wmi.c struct wmi_block *wblock, *next; wblock 1182 drivers/platform/x86/wmi.c wblock = kzalloc(sizeof(struct wmi_block), GFP_KERNEL); wblock 1183 drivers/platform/x86/wmi.c if (!wblock) { wblock 1188 drivers/platform/x86/wmi.c wblock->acpi_device = device; wblock 1189 drivers/platform/x86/wmi.c wblock->gblock = gblock[i]; wblock 1191 drivers/platform/x86/wmi.c retval = wmi_create_device(wmi_bus_dev, &gblock[i], wblock, device); wblock 1193 drivers/platform/x86/wmi.c kfree(wblock); wblock 1197 drivers/platform/x86/wmi.c list_add_tail(&wblock->list, &wmi_block_list); wblock 1200 drivers/platform/x86/wmi.c wblock->handler = wmi_notify_debug; wblock 1201 drivers/platform/x86/wmi.c wmi_method_enable(wblock, 1); wblock 1209 drivers/platform/x86/wmi.c list_for_each_entry_safe(wblock, next, &wmi_block_list, list) { wblock 1210 drivers/platform/x86/wmi.c if (wblock->acpi_device != device) wblock 1213 drivers/platform/x86/wmi.c retval = device_add(&wblock->dev.dev); wblock 1216 drivers/platform/x86/wmi.c wblock->gblock.guid); wblock 1218 drivers/platform/x86/wmi.c wmi_method_enable(wblock, 0); wblock 1219 drivers/platform/x86/wmi.c list_del(&wblock->list); wblock 1220 drivers/platform/x86/wmi.c put_device(&wblock->dev.dev); wblock 1277 drivers/platform/x86/wmi.c struct wmi_block *wblock; wblock 1280 drivers/platform/x86/wmi.c list_for_each_entry(wblock, &wmi_block_list, list) { wblock 1281 drivers/platform/x86/wmi.c block = &wblock->gblock; wblock 1283 drivers/platform/x86/wmi.c if (wblock->acpi_device->handle == handle && wblock 1296 drivers/platform/x86/wmi.c if (wblock->dev.dev.driver) { wblock 1303 drivers/platform/x86/wmi.c driver = container_of(wblock->dev.dev.driver, wblock 1311 drivers/platform/x86/wmi.c status = acpi_evaluate_object(wblock->acpi_device->handle, wblock 1314 drivers/platform/x86/wmi.c dev_warn(&wblock->dev.dev, wblock 1320 drivers/platform/x86/wmi.c driver->notify(&wblock->dev, wblock 1324 drivers/platform/x86/wmi.c } else if (wblock->handler) { wblock 1326 drivers/platform/x86/wmi.c wblock->handler(event, wblock->handler_data); wblock 1331 drivers/platform/x86/wmi.c wblock->gblock.guid); wblock 1335 drivers/platform/x86/wmi.c wblock->acpi_device->pnp.device_class, wblock 1336 drivers/platform/x86/wmi.c dev_name(&wblock->dev.dev), wblock 118 sound/pci/emu10k1/emu10k1_patch.c unsigned short *wblock = (unsigned short*)block; wblock 123 sound/pci/emu10k1/emu10k1_patch.c wblock[woffset + i] = wblock[woffset - i -1]; wblock 174 sound/pci/emu10k1/emu10k1_patch.c unsigned short *wblock = (unsigned short*)block; wblock 176 sound/pci/emu10k1/emu10k1_patch.c wblock[i] ^= 0x8000;