Lines Matching full:method

82 #define ACPI_WMI_METHOD      BIT(1)	/* GUID is a method */
129 char method[5]; in wmi_method_enable() local
136 snprintf(method, 5, "WE%02X", block->notify_id); in wmi_method_enable()
137 status = acpi_execute_simple_method(handle, method, enable); in wmi_method_enable()
147 const char method, in get_acpi_method_name() argument
154 buffer[1] = method; in get_acpi_method_name()
254 * wmi_evaluate_method - Evaluate a WMI method (deprecated)
257 * @method_id: Method ID to call
258 * @in: Mandatory buffer containing input for the method call
259 * @out: Empty buffer to return the method results
261 * Call an ACPI-WMI method, the caller must free @out.
284 * wmidev_evaluate_method - Evaluate a WMI method
287 * @method_id: Method ID to call
288 * @in: Mandatory buffer containing input for the method call
289 * @out: Empty buffer to return the method results
291 * Call an ACPI-WMI method, the caller must free @out.
303 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmidev_evaluate_method() local
329 get_acpi_method_name(wblock, 'M', method); in wmidev_evaluate_method()
331 return acpi_evaluate_object(handle, method, &input, out); in wmidev_evaluate_method()
344 char method[WMI_ACPI_METHOD_NAME_SIZE]; in __query_block() local
368 * If ACPI_WMI_EXPENSIVE, call the relevant WCxx method first to in __query_block()
376 * expensive, but have no corresponding WCxx method. So we in __query_block()
382 get_acpi_method_name(wblock, 'Q', method); in __query_block()
383 status = acpi_evaluate_object(handle, method, &input, out); in __query_block()
386 * If ACPI_WMI_EXPENSIVE, call the relevant WCxx method, even if in __query_block()
387 * the WQxx method failed - we should disable collection anyway. in __query_block()
392 * the previously executed WQxx method call might have 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()
931 .name = "method",
972 char method[WMI_ACPI_METHOD_NAME_SIZE]; in wmi_create_device() local
984 get_acpi_method_name(wblock, 'M', method); in wmi_create_device()
985 if (!acpi_has_method(device->handle, method)) { in wmi_create_device()
987 FW_BUG "%s method block execution control method not found\n", in wmi_create_device()
988 method); in wmi_create_device()
998 * Data Block Query Control Method (WQxx by convention) is in wmi_create_device()
1002 get_acpi_method_name(wblock, 'Q', method); in wmi_create_device()
1003 status = acpi_get_handle(device->handle, method, &method_handle); in wmi_create_device()
1006 FW_BUG "%s data block query control method not found\n", in wmi_create_device()
1007 method); in wmi_create_device()
1024 * ACPICA will get mad at us if we call the method with the wrong number in wmi_create_device()
1025 * of arguments, so check what our method expects. (On some Dell in wmi_create_device()
1026 * laptops, WQxx may not be a method at all.) in wmi_create_device()
1033 get_acpi_method_name(wblock, 'S', method); in wmi_create_device()
1034 if (acpi_has_method(device->handle, method)) in wmi_create_device()
1080 * Parse the _WDG method for the GUID data blocks
1299 dev_err(&device->dev, "Failed to parse _WDG method\n"); in acpi_wmi_probe()