| /linux-6.15/drivers/cpuidle/ |
| H A D | dt_idle_genpd.c | 26 struct genpd_power_state *states, int state_count) in pd_parse_state_nodes() argument 32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes() 42 states[i].data = state_buf; in pd_parse_state_nodes() 50 kfree(states[i].data); in pd_parse_state_nodes() 56 struct genpd_power_state **states, in pd_parse_states() argument 69 kfree(*states); in pd_parse_states() 80 kfree(states[i].data); in pd_free_states() 81 kfree(states); in pd_free_states() 86 pd_free_states(pd->states, pd->state_count); in dt_idle_pd_free() 95 struct genpd_power_state *states = NULL; in dt_idle_pd_alloc() local [all …]
|
| H A D | cpuidle-riscv-sbi.c | 34 u32 *states; member 81 u32 *states = __this_cpu_read(sbi_cpuidle_data.states); in sbi_cpuidle_enter_state() local 82 u32 state = states[idx]; in sbi_cpuidle_enter_state() 96 u32 *states = data->states; in __sbi_enter_domain_idle_state() local 116 state = states[idx]; in __sbi_enter_domain_idle_state() 241 u32 *states; in sbi_cpuidle_dt_init_states() local 248 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL); in sbi_cpuidle_dt_init_states() 249 if (!states) in sbi_cpuidle_dt_init_states() 275 data->states = states; in sbi_cpuidle_dt_init_states() 304 drv->states[0].exit_latency = 1; in sbi_cpuidle_init_cpu() [all …]
|
| H A D | cpuidle-mvebu-v7.c | 36 if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE) in mvebu_v7_enter_idle() 53 .states[0] = ARM_CPUIDLE_WFI_STATE, 54 .states[1] = { 63 .states[2] = { 77 .states[0] = ARM_CPUIDLE_WFI_STATE, 78 .states[1] = { 92 .states[0] = ARM_CPUIDLE_WFI_STATE, 93 .states[1] = {
|
| H A D | cpuidle-psci.c | 59 u32 *states = data->psci_states; in __psci_enter_domain_idle_state() local 76 state = states[idx]; in __psci_enter_domain_idle_state() 245 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology() 247 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 364 drv->states[0].enter = psci_enter_idle_state; in psci_idle_init_cpu() 365 drv->states[0].exit_latency = 1; in psci_idle_init_cpu() 366 drv->states[0].target_residency = 1; in psci_idle_init_cpu() 367 drv->states[0].power_usage = UINT_MAX; in psci_idle_init_cpu() 368 strcpy(drv->states[0].name, "WFI"); in psci_idle_init_cpu() 369 strcpy(drv->states[0].desc, "ARM WFI"); in psci_idle_init_cpu()
|
| /linux-6.15/drivers/regulator/ |
| H A D | gpio-regulator.c | 39 struct gpio_regulator_state *states; member 52 return data->states[ptr].value; in gpio_regulator_get_value() 68 target = data->states[ptr].gpios; in gpio_regulator_set_voltage() 94 return data->states[selector].value; in gpio_regulator_list_voltage() 107 target = data->states[ptr].gpios; in gpio_regulator_set_current_limit() 196 config->states = devm_kcalloc(dev, in of_get_gpio_regulator_config() 200 if (!config->states) in of_get_gpio_regulator_config() 205 &config->states[i].value); in of_get_gpio_regulator_config() 207 &config->states[i].gpios); in of_get_gpio_regulator_config() 292 config->states, in gpio_regulator_probe() [all …]
|
| H A D | irq_helpers.c | 107 stat = &rid->states[i]; in regulator_notifier_isr_work() 132 stat = &rid->states[i]; in regulator_notifier_isr_work() 214 rdev = rid->states[i].rdev; in regulator_notifier_isr() 240 stat = &rid->states[i]; in regulator_notifier_isr() 286 h->rdata.states = devm_kzalloc(dev, sizeof(*h->rdata.states) * in init_rdev_state() 288 if (!h->rdata.states) in init_rdev_state() 295 h->rdata.states[i].possible_errs = common_err; in init_rdev_state() 298 h->rdata.states[i].rdev = *rdev++; in init_rdev_state() 309 if (h->rdata.states[i].possible_errs) in init_rdev_errors() 426 int err = rid->states[0].possible_errs; in regulator_irq_map_event_simple() [all …]
|
| /linux-6.15/drivers/cpuidle/governors/ |
| H A D | ladder.c | 40 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member 56 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection() 57 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection() 73 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_select_state() 83 last_state = &ldev->states[last_idx]; in ladder_select_state() 91 drv->states[last_idx + 1].exit_latency_ns <= latency_req) { in ladder_select_state() 103 drv->states[last_idx].exit_latency_ns > latency_req)) { in ladder_select_state() 107 if (drv->states[i].exit_latency_ns <= latency_req) in ladder_select_state() 137 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_enable_device() 145 state = &drv->states[i]; in ladder_enable_device() [all …]
|
| H A D | teo.c | 172 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; in teo_update() 202 target_residency_ns = drv->states[i].target_residency_ns; in teo_update() 233 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok() 252 (no_poll && drv->states[i].flags & CPUIDLE_FLAG_POLLING)) in teo_find_shallower_state() 256 if (drv->states[i].target_residency_ns <= duration_ns) in teo_find_shallower_state() 311 struct cpuidle_state *s = &drv->states[i]; in teo_select() 347 duration_ns = drv->states[idx].target_residency_ns; in teo_select() 461 if (drv->states[idx].target_residency_ns > duration_ns) { in teo_select() 472 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select() 482 if ((!(drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in teo_select() [all …]
|
| H A D | menu.c | 262 ((data->next_timer_ns < drv->states[1].target_residency_ns || in menu_select() 263 latency_req < drv->states[1].exit_latency_ns) && in menu_select() 270 *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); in menu_select() 295 struct cpuidle_state *s = &drv->states[i]; in menu_select() 308 if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in menu_select() 325 predicted_ns = drv->states[idx].target_residency_ns; in menu_select() 335 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select() 354 if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) || in menu_select() 370 if (drv->states[i].target_residency_ns <= delta_tick) in menu_select() 405 struct cpuidle_state *target = &drv->states[last_idx]; in menu_update() [all …]
|
| /linux-6.15/tools/verification/dot2/ |
| H A D | automata.py | 26 self.states, self.initial_state, self.final_states = self.__get_state_variables() 81 states = [] 97 states.append(state) 108 states = sorted(set(states)) 109 states.remove(initial_state) 112 states.insert(0, initial_state) 117 return states, initial_state, final_states 146 states = self.states 155 for state in states: 184 for j, _ in enumerate(self.states):
|
| H A D | dot2c.py | 41 for state in self.states: 89 if self.states.__len__() > 255: 92 if self.states.__len__() > 65535: 95 if self.states.__len__() > 1000000: 96 raise Exception("Too many states: %d" % self.states.__len__()) 134 return self.__get_string_vector_per_line_content(self.states) 152 max_state_name = max(self.states, key = len).__len__() 160 nr_states = self.states.__len__() 202 for state in self.states:
|
| /linux-6.15/drivers/acpi/ |
| H A D | processor_idle.c | 397 if (!states[i].valid) in acpi_cst_latency_sort() 401 if (!states[j].valid) in acpi_cst_latency_sort() 404 if (states[j].latency > states[k].latency) in acpi_cst_latency_sort() 405 swap(states[j].latency, states[k].latency); in acpi_cst_latency_sort() 472 memset(pr->power.states, 0, sizeof(pr->power.states)); in acpi_processor_get_cstate_info() 751 cx = &pr->power.states[i]; in acpi_processor_setup_cpuidle_cx() 796 cx = &pr->power.states[i]; in acpi_processor_setup_cstates() 801 state = &drv->states[count]; in acpi_processor_setup_cstates() 1213 state = &drv->states[i]; in acpi_processor_setup_lpi_states() 1246 drv->states[i].name[0] = '\0'; in acpi_processor_setup_cpuidle_states() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/cpu/ |
| H A D | idle-states.yaml | 7 title: Idle states 26 2 - ARM idle states 38 The power states described in the SBSA document define the basic CPU states on 52 3 - RISC-V idle states 226 shallower states in a system with multiple idle states) is defined 234 5 - idle-states node 329 const: idle-states 591 idle-states { 734 idle-states { 844 idle-states { [all …]
|
| /linux-6.15/sound/usb/misc/ |
| H A D | ua101.c | 90 unsigned long states; member 504 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_capture() 521 set_bit(USB_CAPTURE_RUNNING, &ua->states); in start_usb_capture() 545 if (test_bit(DISCONNECTED, &ua->states)) in start_usb_playback() 572 test_bit(DISCONNECTED, &ua->states)); in start_usb_playback() 573 if (test_bit(DISCONNECTED, &ua->states)) { in start_usb_playback() 664 set_bit(ALSA_CAPTURE_OPEN, &ua->states); in capture_pcm_open() 692 set_bit(ALSA_PLAYBACK_OPEN, &ua->states); in playback_pcm_open() 769 if (test_bit(DISCONNECTED, &ua->states)) in capture_pcm_prepare() 796 if (test_bit(DISCONNECTED, &ua->states)) in playback_pcm_prepare() [all …]
|
| /linux-6.15/Documentation/admin-guide/pm/ |
| H A D | intel_idle.rst | 42 .. _intel-idle-enumeration-of-states: 50 as C-states (in the ACPI terminology) or idle states. The list of meaningful 56 subsystem (see :ref:`idle-states-representation` in 102 :ref:`idle-states-representation` in 148 available idle states is created as explained 181 after finding that number of usable idle states (the other idle states that 204 C-states on/off status in native mode. 216 idle state; see :ref:`idle-states-representation` in 243 .. _intel-idle-core-and-package-idle-states: 249 least) two levels of idle states (or C-states). One level, referred to as [all …]
|
| H A D | strategies.rst | 15 One of them is based on using global low-power states of the whole system in 17 significantly reduced, referred to as :doc:`sleep states <sleep-states>`. The 18 kernel puts the system into one of these states when requested by user space 21 user space code can run. Because sleep states are global and the whole system 26 <working-state>`, is based on adjusting the power states of individual hardware 30 a metastate covering a range of different power states of the system in which 32 ``inactive`` (idle). If they are active, they have to be in power states 34 are inactive, ideally, they should be in low-power states in which they may not 43 for the same system in a sleep state. However, transitions from sleep states 47 sleep states than when they are runtime idle most of the time.
|
| /linux-6.15/Documentation/admin-guide/blockdev/drbd/ |
| H A D | figures.rst | 20 .. kernel-figure:: conn-states-8.dot 21 :alt: conn-states-8.dot 24 .. kernel-figure:: disk-states-8.dot 25 :alt: disk-states-8.dot 28 .. kernel-figure:: peer-states-8.dot 29 :alt: peer-states-8.dot
|
| /linux-6.15/arch/arm64/boot/dts/qcom/ |
| H A D | sc7180-firmware-tfa.dtsi | 13 cpu-idle-states = <&little_cpu_sleep_0 22 cpu-idle-states = <&little_cpu_sleep_0 31 cpu-idle-states = <&little_cpu_sleep_0 40 cpu-idle-states = <&little_cpu_sleep_0 49 cpu-idle-states = <&little_cpu_sleep_0 58 cpu-idle-states = <&little_cpu_sleep_0 67 cpu-idle-states = <&big_cpu_sleep_0 76 cpu-idle-states = <&big_cpu_sleep_0
|
| /linux-6.15/arch/x86/kernel/acpi/ |
| H A D | cstate.c | 116 } states[ACPI_PROCESSOR_MAX_POWER]; member 184 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe() 185 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe() 193 percpu_entry->states[cx->index].eax = cx->address; in acpi_processor_ffh_cstate_probe() 194 percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK; in acpi_processor_ffh_cstate_probe() 215 mwait_play_dead(percpu_entry->states[cx->index].eax); in acpi_processor_ffh_play_dead() 225 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, in acpi_processor_ffh_cstate_enter() 226 percpu_entry->states[cx->index].ecx); in acpi_processor_ffh_cstate_enter()
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_blend.c | 448 struct drm_plane_state **states; in drm_atomic_helper_crtc_normalize_zpos() local 456 states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL); in drm_atomic_helper_crtc_normalize_zpos() 457 if (!states) in drm_atomic_helper_crtc_normalize_zpos() 471 states[n++] = plane_state; in drm_atomic_helper_crtc_normalize_zpos() 476 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); in drm_atomic_helper_crtc_normalize_zpos() 479 plane = states[i]->plane; in drm_atomic_helper_crtc_normalize_zpos() 481 states[i]->normalized_zpos = i; in drm_atomic_helper_crtc_normalize_zpos() 488 kfree(states); in drm_atomic_helper_crtc_normalize_zpos()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-bus-surface_aggregator-tabletsw | 8 Currently returned posture states are: 29 New states may be introduced with new hardware. Users therefore 30 must not rely on this list of states being exhaustive and 31 gracefully handle unknown states. 39 returned posture states are: 55 New states may be introduced with new hardware. Users therefore 56 must not rely on this list of states being exhaustive and 57 gracefully handle unknown states.
|
| /linux-6.15/drivers/i2c/muxes/ |
| H A D | i2c-mux-pinctrl.c | 19 struct pinctrl_state *states[]; member 26 return pinctrl_select_state(mux->pinctrl, mux->states[chan]); in i2c_mux_pinctrl_select() 96 struct_size(mux, states, num_names), in i2c_mux_pinctrl_probe() 121 mux->states[i] = pinctrl_lookup_state(mux->pinctrl, name); in i2c_mux_pinctrl_probe() 122 if (IS_ERR(mux->states[i])) { in i2c_mux_pinctrl_probe() 123 ret = PTR_ERR(mux->states[i]); in i2c_mux_pinctrl_probe() 144 if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) { in i2c_mux_pinctrl_probe()
|
| /linux-6.15/Documentation/devicetree/bindings/powerpc/opal/ |
| H A D | power-mgt.txt | 5 idle states. The description of these idle states is exposed via the 14 - flags: indicating some aspects of this idle states such as the 16 idle states and so on. The flag bits are as follows: 32 If idle-states are defined, then the properties 38 Array of strings containing the names of the idle states. 42 flags associated with the aforementioned idle-states. The 62 exit-latencies (in ns) for the idle states in 67 target-residency (in ns) for the idle states in 75 PSSCR for each of the idle states in ibm,cpu-idle-state-names. 88 kernel. For such idle states, the kernel would set the [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/mux/ |
| H A D | mux-consumer.yaml | 29 be set to, the property "mux-states" must be used. An optional property 31 each of the multiplixer states listed in the "mux-states" property. 33 Properties "mux-controls" and "mux-states" can be used depending on how 35 needs to set multiple states in a mux controller, then property 37 controller to a given state then property "mux-states" can be used. 49 mux-states: 62 controller to an index into the list given by the "mux-states"
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | encodings.c | 1282 if (states == NULL) in vdo_destroy_component_states() 1285 vdo_uninitialize_layout(&states->layout); in vdo_destroy_component_states() 1300 struct vdo_component_states *states) in decode_components() argument 1307 states->vdo.config.physical_blocks, &states->layout); in decode_components() 1312 &states->recovery_journal); in decode_components() 1338 struct vdo_component_states *states) in vdo_decode_component_states() argument 1355 vdo_uninitialize_layout(&states->layout); in vdo_decode_component_states() 1374 if (geometry_nonce != states->vdo.nonce) { in vdo_validate_component_states() 1388 const struct vdo_component_states *states) in vdo_encode_component_states() argument 1391 encode_u32_le(buffer, offset, states->unused); in vdo_encode_component_states() [all …]
|