Lines Matching +full:domain +full:- +full:idle +full:- +full:states
1 // SPDX-License-Identifier: GPL-2.0
7 * of_get_cpu_hwid - Get the hardware ID from a CPU device node
29 * arch_match_cpu_phys_id - Match the given logical CPU and physical id
79 * arch_find_n_match_cpu_physical_id - See if the given device node is
81 * else false. If 'thread' is non-NULL, the local thread number within the
87 /* Check for non-standard "ibm,ppc-interrupt-server#s" property in arch_find_n_match_cpu_physical_id()
93 "ibm,ppc-interrupt-server#s", in arch_find_n_match_cpu_physical_id()
101 * of_get_cpu_node - Get device node associated with the given logical CPU
146 return of_node_get(cpu_dev->of_node); in of_cpu_device_node_get()
155 * Return: The logical CPU number of the given CPU device_node or -ENODEV if the
172 return -ENODEV; in of_cpu_node_to_id()
177 * of_get_cpu_state_node - Get CPU's idle state node at the given index
180 * @index: The index in the list of the idle states
182 * Two generic methods can be used to describe a CPU's idle states, either via
183 * a flattened description through the "cpu-idle-states" binding or via the
184 * hierarchical layout, using the "power-domains" and the "domain-idle-states"
185 * bindings. This function check for both and returns the idle state node for
188 * Return: An idle state node if found at @index. The refcount is incremented
197 err = of_parse_phandle_with_args(cpu_node, "power-domains", in of_get_cpu_state_node()
198 "#power-domain-cells", 0, &args); in of_get_cpu_state_node()
201 of_parse_phandle(args.np, "domain-idle-states", index); in of_get_cpu_state_node()
208 return of_parse_phandle(cpu_node, "cpu-idle-states", index); in of_get_cpu_state_node()