Lines Matching defs:method
183 static int write_acpi_int(acpi_handle handle, const char *method, int val)
187 status = acpi_execute_simple_method(handle, (char *)method, val);
192 static int read_acpi_int(acpi_handle handle, const char *method, int *val)
197 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result);
209 const char *method = cm_setv[cm];
211 if (method == NULL)
216 if (write_acpi_int(eeepc->handle, method, value))
217 pr_warn("Error writing %s\n", method);
223 const char *method = cm_getv[cm];
226 if (method == NULL)
231 if (read_acpi_int(eeepc->handle, method, &value))
232 pr_warn("Error reading %s\n", method);
239 const char *method = cm_setv[cm];
242 if (method == NULL)
247 status = acpi_get_handle(eeepc->handle, (char *)method,
250 pr_warn("Error finding %s\n", method);
528 if (get_acpi(eeepc, CM_ASL_TPD) >= 0) /* if method is available */