Lines Matching defs:method

219 	const char *method;
355 * This function evaluates an ACPI method, given an int as parameter, the
356 * method is searched within the scope of the handle, can be NULL. The output
357 * of the method is written is output, which can also be NULL
361 static int write_acpi_int_ret(acpi_handle handle, const char *method, int val,
376 status = acpi_evaluate_object(handle, (char *)method, &params, output);
383 static int write_acpi_int(acpi_handle handle, const char *method, int val)
385 return write_acpi_int_ret(handle, method, val, NULL);
388 static int acpi_check_handle(acpi_handle handle, const char *method,
393 if (method == NULL)
397 status = acpi_get_handle(handle, (char *)method,
402 status = acpi_get_handle(handle, (char *)method,
408 pr_warn("Error finding %s\n", method);
424 char *method = enable ? METHOD_PEGA_ENABLE : METHOD_PEGA_DISABLE;
425 return write_acpi_int(asus->handle, method, unit);
428 static int pega_acc_axis(struct asus_laptop *asus, int curr, char *method)
433 acpi_evaluate_integer(asus->handle, method, NULL, &val);
537 static int asus_led_set(struct asus_laptop *asus, const char *method,
540 if (!strcmp(method, METHOD_MLED))
542 else if (!strcmp(method, METHOD_GLED))
547 return write_acpi_int(asus->handle, method, value);
569 asus_led_set(asus, led->method, led->wk);
661 const char *name, const char *method)
665 if (!method || acpi_check_handle(asus->handle, method, NULL))
669 led->method = method;
858 * The SFUN method probably allows the original driver to get the list
868 * The HWRS method return informations about the hardware.
880 * Another value for userspace: the ASYM method returns 0x02 for
883 * Note: since not all the laptops provide this method, errors are
915 const char *method)
923 if (write_acpi_int(asus->handle, method, value))
1673 * method, we can make all the detection we want, and modify the asus_laptop