Lines Matching full:method
82 #define ACPI_WMI_METHOD BIT(1) /* GUID is a method */
129 const char method, in get_acpi_method_name() argument
136 buffer[1] = method; in get_acpi_method_name()
176 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmi_device_enable() local
187 snprintf(method, sizeof(method), "WE%02X", wblock->gblock.notify_id); in wmi_device_enable()
189 get_acpi_method_name(wblock, 'C', method); in wmi_device_enable()
193 * necessary ACPI method. Ignore this missing ACPI method to match in wmi_device_enable()
196 status = acpi_get_handle(wblock->acpi_device->handle, method, &handle); in wmi_device_enable()
274 * wmi_evaluate_method - Evaluate a WMI method (deprecated)
277 * @method_id: Method ID to call
278 * @in: Mandatory buffer containing input for the method call
279 * @out: Empty buffer to return the method results
281 * Call an ACPI-WMI method, the caller must free @out.
304 * wmidev_evaluate_method - Evaluate a WMI method
307 * @method_id: Method ID to call
308 * @in: Mandatory buffer containing input for the method call
309 * @out: Empty buffer to return the method results
311 * Call an ACPI-WMI method, the caller must free @out.
323 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmidev_evaluate_method() local
349 get_acpi_method_name(wblock, 'M', method); in wmidev_evaluate_method()
351 return acpi_evaluate_object(handle, method, &input, out); in wmidev_evaluate_method()
362 char method[WMI_ACPI_METHOD_NAME_SIZE]; in __query_block() local
385 get_acpi_method_name(wblock, 'Q', method); in __query_block()
387 return acpi_evaluate_object(handle, method, &input, out); in __query_block()
495 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmidev_block_set() local
517 get_acpi_method_name(wblock, 'S', method); in wmidev_block_set()
519 return acpi_evaluate_object(handle, method, &input, NULL); in wmidev_block_set()
944 .name = "method",
985 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmi_create_device() local
997 get_acpi_method_name(wblock, 'M', method); in wmi_create_device()
998 if (!acpi_has_method(device->handle, method)) { in wmi_create_device()
1000 FW_BUG "%s method block execution control method not found\n", in wmi_create_device()
1001 method); in wmi_create_device()
1011 * Data Block Query Control Method (WQxx by convention) is in wmi_create_device()
1015 get_acpi_method_name(wblock, 'Q', method); in wmi_create_device()
1016 status = acpi_get_handle(device->handle, method, &method_handle); in wmi_create_device()
1019 FW_BUG "%s data block query control method not found\n", in wmi_create_device()
1020 method); in wmi_create_device()
1037 * ACPICA will get mad at us if we call the method with the wrong number in wmi_create_device()
1038 * of arguments, so check what our method expects. (On some Dell in wmi_create_device()
1039 * laptops, WQxx may not be a method at all.) in wmi_create_device()
1046 get_acpi_method_name(wblock, 'S', method); in wmi_create_device()
1047 if (acpi_has_method(device->handle, method)) in wmi_create_device()
1093 * Parse the _WDG method for the GUID data blocks
1312 dev_err(&device->dev, "Failed to parse _WDG method\n"); in acpi_wmi_probe()