Home
last modified time | relevance | path

Searched full:method (Results 1 – 25 of 4451) sorted by relevance

12345678910>>...179

/kernel/linux/linux-6.6/drivers/acpi/acpica/
Ddsmethod.c4 * Module Name: dsmethod - Parser/Interpreter interface - control method parsing
34 * PARAMETERS: node - Namespace Node of the method
35 * obj_desc - Method object attached to node
39 * DESCRIPTION: Parse a control method AML to scan for control methods that
43 * there is only a problem if the method actually blocks during execution.
46 * detect whether a method will block or not, so we simply mark all suspicious
50 * control method.
65 "Method auto-serialization parse [%4.4s] %p\n", in acpi_ds_auto_serialize_method()
68 /* Create/Init a root op for the method parse tree */ in acpi_ds_auto_serialize_method()
70 op = acpi_ps_alloc_op(AML_METHOD_OP, obj_desc->method.aml_start); in acpi_ds_auto_serialize_method()
[all …]
Dpsxface.c37 * method execution
65 * PARAMETERS: info - Method info block, contains:
66 * node - Method Node to execute
67 * obj_desc - Method object
68 * parameters - List of parameters to pass to the method,
71 * return_object - Where to put method's return value (if
74 * return_object - Where to put method's return value (if
80 * DESCRIPTION: Execute a control method
96 /* Validate the Info and method Node */ in acpi_ps_execute_method()
102 /* Init for new method, wait on concurrency semaphore */ in acpi_ps_execute_method()
[all …]
Dnsarguments.c22 * PARAMETERS: info - Method execution information block
41 * Also, ignore typecheck if warnings/errors if this method in acpi_ns_check_argument_types()
70 /* Prevent any additional typechecking for this method */ in acpi_ns_check_argument_types()
82 * node - Namespace node for the method/object
111 * If this object is not a control method, we can check if the ACPI in acpi_ns_check_acpi_compliance()
112 * spec requires that it be a method. in acpi_ns_check_acpi_compliance()
117 /* Object requires args, must be implemented as a method */ in acpi_ns_check_acpi_compliance()
121 "Object (%s) must be a control method with %u arguments", in acpi_ns_check_acpi_compliance()
128 /* Object requires no args and no return value, must be a method */ in acpi_ns_check_acpi_compliance()
132 "Object (%s) must be a control method " in acpi_ns_check_acpi_compliance()
[all …]
Dnseval.c4 * Module Name: nseval - Object evaluation, includes control method execution
23 * prefix_node - Prefix or Method/Object Node to execute
24 * relative_path - Name of method to execute, If NULL, the
26 * parameters - List of parameters to pass to the method,
30 * return_object - Where to put method's return value (if
36 * DESCRIPTION: Execute a control method or return the current value of an
70 * For a method alias, we must grab the actual method node so that in acpi_ns_evaluate()
138 * this method/object matches the actual ASL/AML definition. in acpi_ns_evaluate()
151 * 2) The object is a control method -- execute it in acpi_ns_evaluate()
152 * 3) The object is not a method -- just return it's current value in acpi_ns_evaluate()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Ddsmethod.c4 * Module Name: dsmethod - Parser/Interpreter interface - control method parsing
34 * PARAMETERS: node - Namespace Node of the method
35 * obj_desc - Method object attached to node
39 * DESCRIPTION: Parse a control method AML to scan for control methods that
43 * there is only a problem if the method actually blocks during execution.
46 * detect whether a method will block or not, so we simply mark all suspicious
50 * control method.
65 "Method auto-serialization parse [%4.4s] %p\n", in acpi_ds_auto_serialize_method()
68 /* Create/Init a root op for the method parse tree */ in acpi_ds_auto_serialize_method()
70 op = acpi_ps_alloc_op(AML_METHOD_OP, obj_desc->method.aml_start); in acpi_ds_auto_serialize_method()
[all …]
Dpsxface.c37 * method execution
65 * PARAMETERS: info - Method info block, contains:
66 * node - Method Node to execute
67 * obj_desc - Method object
68 * parameters - List of parameters to pass to the method,
71 * return_object - Where to put method's return value (if
74 * return_object - Where to put method's return value (if
80 * DESCRIPTION: Execute a control method
96 /* Validate the Info and method Node */ in acpi_ps_execute_method()
102 /* Init for new method, wait on concurrency semaphore */ in acpi_ps_execute_method()
[all …]
Dnsarguments.c22 * PARAMETERS: info - Method execution information block
41 * Also, ignore typecheck if warnings/errors if this method in acpi_ns_check_argument_types()
70 /* Prevent any additional typechecking for this method */ in acpi_ns_check_argument_types()
82 * node - Namespace node for the method/object
111 * If this object is not a control method, we can check if the ACPI in acpi_ns_check_acpi_compliance()
112 * spec requires that it be a method. in acpi_ns_check_acpi_compliance()
117 /* Object requires args, must be implemented as a method */ in acpi_ns_check_acpi_compliance()
121 "Object (%s) must be a control method with %u arguments", in acpi_ns_check_acpi_compliance()
128 /* Object requires no args and no return value, must be a method */ in acpi_ns_check_acpi_compliance()
132 "Object (%s) must be a control method " in acpi_ns_check_acpi_compliance()
[all …]
/kernel/linux/linux-6.6/Documentation/firmware-guide/acpi/
Dmethod-tracing.rst15 method tracing facility.
20 ACPICA provides method tracing capability. And two functions are
33 But when the particular layer/level is applied to the control method
37 logs when the control method evaluation is started, and disable the
38 detailed logging when the control method evaluation is stopped.
52 control method is being evaluated::
58 # echo "method" > /sys/module/acpi/parameters/trace_state
61 control method is being evaluated for the first time::
67 # echo "method-once" > /sys/module/acpi/parameters/trace_state
74 Full path of a control method that can be found in the ACPI namespace.
[all …]
Dmethod-customizing.rst4 Linux ACPI Custom Control Method How To
14 1. override an existing method which may not work correctly,
16 2. insert a completely new method in order to create a missing
17 method such as _OFF, _ON, _STA, _INI, etc.
20 control method rather than override the entire DSDT, because kernel
25 - Only ACPI METHOD can be overridden, any other object types like
29 - The same ACPI control method can be overridden for many times,
38 1. override an existing method
43 c) rewrite the ASL code of the method and save it in a new file,
45 Here is an example of a customized \_SB._AC._PSR method::
[all …]
/kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/
Dmethod-tracing.rst15 method tracing facility.
20 ACPICA provides method tracing capability. And two functions are
33 But when the particular layer/level is applied to the control method
37 logs when the control method evaluation is started, and disable the
38 detailed logging when the control method evaluation is stopped.
52 control method is being evaluated::
58 # echo "method" > /sys/module/acpi/parameters/trace_state
61 control method is being evaluated for the first time::
67 # echo "method-once" > /sys/module/acpi/parameters/trace_state
74 Full path of a control method that can be found in the ACPI namespace.
[all …]
Dmethod-customizing.rst4 Linux ACPI Custom Control Method How To
14 1. override an existing method which may not work correctly,
16 2. insert a completely new method in order to create a missing
17 method such as _OFF, _ON, _STA, _INI, etc.
20 control method rather than override the entire DSDT, because kernel
25 - Only ACPI METHOD can be overridden, any other object types like
29 - The same ACPI control method can be overridden for many times,
38 1. override an existing method
43 c) rewrite the ASL code of the method and save it in a new file,
45 Here is an example of a customized \_SB._AC._PSR method::
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/cavium/
Dthunder-88xx.dtsi58 method = "smc";
69 enable-method = "psci";
75 enable-method = "psci";
81 enable-method = "psci";
87 enable-method = "psci";
93 enable-method = "psci";
99 enable-method = "psci";
105 enable-method = "psci";
111 enable-method = "psci";
117 enable-method = "psci";
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/cavium/
Dthunder-88xx.dtsi58 method = "smc";
69 enable-method = "psci";
75 enable-method = "psci";
81 enable-method = "psci";
87 enable-method = "psci";
93 enable-method = "psci";
99 enable-method = "psci";
105 enable-method = "psci";
111 enable-method = "psci";
117 enable-method = "psci";
[all …]
/kernel/linux/linux-5.10/arch/arm/mm/
Dproc-v7-bugs.c66 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
74 switch (method) { in spectre_v2_install_workaround()
109 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
119 unsigned int state, method = 0; in cpu_v7_spectre_v2_init() local
129 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_v2_init()
135 method = SPECTRE_V2_METHOD_ICIALLU; in cpu_v7_spectre_v2_init()
161 method = SPECTRE_V2_METHOD_HVC; in cpu_v7_spectre_v2_init()
165 method = SPECTRE_V2_METHOD_SMC; in cpu_v7_spectre_v2_init()
175 state = spectre_v2_install_workaround(method); in cpu_v7_spectre_v2_init()
177 spectre_v2_update_state(state, method); in cpu_v7_spectre_v2_init()
[all …]
/kernel/linux/linux-6.6/arch/arm/mm/
Dproc-v7-bugs.c66 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
74 switch (method) { in spectre_v2_install_workaround()
109 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
119 unsigned int state, method = 0; in cpu_v7_spectre_v2_init() local
129 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_v2_init()
135 method = SPECTRE_V2_METHOD_ICIALLU; in cpu_v7_spectre_v2_init()
161 method = SPECTRE_V2_METHOD_HVC; in cpu_v7_spectre_v2_init()
165 method = SPECTRE_V2_METHOD_SMC; in cpu_v7_spectre_v2_init()
175 state = spectre_v2_install_workaround(method); in cpu_v7_spectre_v2_init()
177 spectre_v2_update_state(state, method); in cpu_v7_spectre_v2_init()
[all …]
/kernel/linux/linux-6.6/Documentation/wmi/
Dacpi-interface.rst32 0x10 2 2 character method ID or single byte notification ID.
37 The WMI object flags control whether the method or notification ID is used:
43 of method ID.
46 The method/notification ID is used to construct the ACPI method names used for
53 by this required ACPI method. The last two characters of the ACPI method name
54 are the method ID of the data block to query. Their single parameter is an
69 characters of the ACPI method name are the method ID of the data block
72 describing the WMI method ID to execute, and the third parameter is a buffer
73 containing the WMI method parameters. If the data block is marked as containing
75 method will return the result of the executed WMI method.
[all …]
/kernel/linux/linux-6.6/arch/arm/kernel/
Dcpuidle.c54 * @method: the method name
57 * method name.
61 static const struct cpuidle_ops *__init arm_cpuidle_get_ops(const char *method) in arm_cpuidle_get_ops() argument
65 for (; m->method; m++) in arm_cpuidle_get_ops()
66 if (!strcmp(m->method, method)) in arm_cpuidle_get_ops()
77 * Get the method name defined in the 'enable-method' property, retrieve the
82 * Return 0 on sucess, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
83 * no cpuidle_ops is registered for the 'enable-method', or if either init or
91 enable_method = of_get_property(dn, "enable-method", NULL); in arm_cpuidle_read_ops()
97 pr_warn("%pOF: unsupported enable-method property: %s\n", in arm_cpuidle_read_ops()
[all …]
Dspectre.c26 void spectre_v2_update_state(unsigned int state, unsigned int method) in spectre_v2_update_state() argument
30 spectre_v2_methods |= method; in spectre_v2_update_state()
36 const char *method; in cpu_show_spectre_v2() local
49 method = "Branch predictor hardening"; in cpu_show_spectre_v2()
53 method = "I-cache invalidation"; in cpu_show_spectre_v2()
58 method = "Firmware call"; in cpu_show_spectre_v2()
62 method = "History overwrite"; in cpu_show_spectre_v2()
66 method = "Multiple mitigations"; in cpu_show_spectre_v2()
70 return sprintf(buf, "Mitigation: %s\n", method); in cpu_show_spectre_v2()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dcpuidle.c55 * @method: the method name
58 * method name.
62 static const struct cpuidle_ops *__init arm_cpuidle_get_ops(const char *method) in arm_cpuidle_get_ops() argument
66 for (; m->method; m++) in arm_cpuidle_get_ops()
67 if (!strcmp(m->method, method)) in arm_cpuidle_get_ops()
78 * Get the method name defined in the 'enable-method' property, retrieve the
83 * Return 0 on sucess, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
84 * no cpuidle_ops is registered for the 'enable-method', or if either init or
92 enable_method = of_get_property(dn, "enable-method", NULL); in arm_cpuidle_read_ops()
98 pr_warn("%pOF: unsupported enable-method property: %s\n", in arm_cpuidle_read_ops()
[all …]
Dspectre.c26 void spectre_v2_update_state(unsigned int state, unsigned int method) in spectre_v2_update_state() argument
30 spectre_v2_methods |= method; in spectre_v2_update_state()
36 const char *method; in cpu_show_spectre_v2() local
49 method = "Branch predictor hardening"; in cpu_show_spectre_v2()
53 method = "I-cache invalidation"; in cpu_show_spectre_v2()
58 method = "Firmware call"; in cpu_show_spectre_v2()
62 method = "History overwrite"; in cpu_show_spectre_v2()
66 method = "Multiple mitigations"; in cpu_show_spectre_v2()
70 return sprintf(buf, "Mitigation: %s\n", method); in cpu_show_spectre_v2()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dcharge_reserved_hugetlb.sh153 local method="$6"
178 if [[ "$method" == "1" ]] || [[ "$method" == 2 ]] ||
182 "$cgroup" "$path" "$method" "$private" "-l" "$reserve" 2>&1 | tee $output &
215 "$cgroup" "$path" "$method" "$private" "$reserve"
271 local method="$7"
291 "$write" "/mnt/huge/test" "$method" "$private" "$expect_failure" \
319 local method="${12}"
345 "$populate1" "$write1" "/mnt/huge/test1" "$method" "$private" \
362 "$populate2" "$write2" "/mnt/huge/test2" "$method" "$private" \
397 for method in 0 1 2; do
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
Dcharge_reserved_hugetlb.sh156 local method="$6"
181 if [[ "$method" == "1" ]] || [[ "$method" == 2 ]] ||
185 "$cgroup" "$path" "$method" "$private" "-l" "$reserve" 2>&1 | tee $output &
218 "$cgroup" "$path" "$method" "$private" "$reserve"
274 local method="$7"
294 "$write" "/mnt/huge/test" "$method" "$private" "$expect_failure" \
322 local method="${12}"
348 "$populate1" "$write1" "/mnt/huge/test1" "$method" "$private" \
365 "$populate2" "$write2" "/mnt/huge/test2" "$method" "$private" \
400 for method in 0 1 2; do
[all …]
/kernel/linux/linux-6.6/arch/sh/boards/
Dof-generic.c57 const char *method = NULL; in sh_of_smp_probe() local
68 if (!method) in sh_of_smp_probe()
69 of_property_read_string(np, "enable-method", &method); in sh_of_smp_probe()
76 if (!method) { in sh_of_smp_probe()
78 of_property_read_string(np, "enable-method", &method); in sh_of_smp_probe()
82 pr_info("CPU enable method: %s\n", method); in sh_of_smp_probe()
83 if (method) in sh_of_smp_probe()
84 for (; m->method; m++) in sh_of_smp_probe()
85 if (!strcmp(m->method, method)) { in sh_of_smp_probe()
/kernel/linux/linux-5.10/arch/sh/boards/
Dof-generic.c57 const char *method = NULL; in sh_of_smp_probe() local
69 if (!method) in sh_of_smp_probe()
70 of_property_read_string(np, "enable-method", &method); in sh_of_smp_probe()
77 if (!method) { in sh_of_smp_probe()
79 of_property_read_string(np, "enable-method", &method); in sh_of_smp_probe()
83 pr_info("CPU enable method: %s\n", method); in sh_of_smp_probe()
84 if (method) in sh_of_smp_probe()
85 for (; m->method; m++) in sh_of_smp_probe()
86 if (!strcmp(m->method, method)) { in sh_of_smp_probe()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/
Dcpus.yaml174 enable-method:
192 - brcm,bcm11351-cpu-method
222 Required for systems that have an "enable-method"
278 Required for systems that have an "enable-method" property
288 Required for systems that have an "enable-method" property
298 Optional for systems that have an "enable-method"
306 Required for systems that have an "enable-method" property value of
307 "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp".
320 # If the enable-method property contains one of those values
322 enable-method:
[all …]

12345678910>>...179