Home
last modified time | relevance | path

Searched refs:states (Results 1 – 25 of 696) sorted by relevance

12345678910>>...28

/linux-6.12.1/drivers/cpuidle/
Ddt_idle_genpd.c26 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
62 ret = of_genpd_parse_idle_states(np, states, state_count); in pd_parse_states()
67 ret = pd_parse_state_nodes(parse_state, *states, *state_count); in pd_parse_states()
69 kfree(*states); in pd_parse_states()
74 static void pd_free_states(struct genpd_power_state *states, in pd_free_states() argument
80 kfree(states[i].data); in pd_free_states()
[all …]
Dcpuidle-riscv-sbi.c33 u32 *states; member
80 u32 *states = __this_cpu_read(sbi_cpuidle_data.states); in sbi_cpuidle_enter_state() local
81 u32 state = states[idx]; in sbi_cpuidle_enter_state()
95 u32 *states = data->states; in __sbi_enter_domain_idle_state() local
115 state = states[idx]; in __sbi_enter_domain_idle_state()
224 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; in sbi_dt_cpu_init_topology()
225 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; in sbi_dt_cpu_init_topology()
226 drv->states[state_count - 1].enter_s2idle = in sbi_dt_cpu_init_topology()
240 u32 *states; in sbi_cpuidle_dt_init_states() local
247 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL); in sbi_cpuidle_dt_init_states()
[all …]
Dcpuidle-mvebu-v7.c36 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] = {
Dcpuidle-psci.c58 u32 *states = data->psci_states; in __psci_enter_domain_idle_state() local
75 state = states[idx]; in __psci_enter_domain_idle_state()
242 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology()
244 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology()
361 drv->states[0].enter = psci_enter_idle_state; in psci_idle_init_cpu()
362 drv->states[0].exit_latency = 1; in psci_idle_init_cpu()
363 drv->states[0].target_residency = 1; in psci_idle_init_cpu()
364 drv->states[0].power_usage = UINT_MAX; in psci_idle_init_cpu()
365 strcpy(drv->states[0].name, "WFI"); in psci_idle_init_cpu()
366 strcpy(drv->states[0].desc, "ARM WFI"); in psci_idle_init_cpu()
/linux-6.12.1/drivers/regulator/
Dgpio-regulator.c39 struct gpio_regulator_state *states; member
51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
52 return data->states[ptr].value; in gpio_regulator_get_value()
65 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage()
66 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage()
67 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage()
68 target = data->states[ptr].gpios; in gpio_regulator_set_voltage()
69 best_val = data->states[ptr].value; in gpio_regulator_set_voltage()
94 return data->states[selector].value; in gpio_regulator_list_voltage()
104 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit()
[all …]
Dirq_helpers.c107 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()
297 h->rdata.states[i].possible_errs |= *rdev_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()
[all …]
/linux-6.12.1/drivers/cpuidle/governors/
Dladder.c40 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()
85 last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns; 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()
[all …]
Dteo.c158 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; in teo_update()
195 target_residency_ns = drv->states[i].target_residency_ns; in teo_update()
242 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok()
261 (no_poll && drv->states[i].flags & CPUIDLE_FLAG_POLLING)) in teo_find_shallower_state()
265 if (drv->states[i].target_residency_ns <= duration_ns) in teo_find_shallower_state()
318 struct cpuidle_state *s = &drv->states[i]; in teo_select()
354 duration_ns = drv->states[idx].target_residency_ns; in teo_select()
449 if ((drv->states[0].flags & CPUIDLE_FLAG_POLLING) && in teo_select()
450 drv->states[idx].target_residency_ns < RESIDENCY_THRESHOLD_NS) in teo_select()
460 if (drv->states[idx].target_residency_ns > duration_ns) { in teo_select()
[all …]
Dmenu.c308 ((data->next_timer_ns < drv->states[1].target_residency_ns || in menu_select()
309 latency_req < drv->states[1].exit_latency_ns) && in menu_select()
316 *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); in menu_select()
348 struct cpuidle_state *s = &drv->states[i]; in menu_select()
361 if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in menu_select()
378 predicted_ns = drv->states[idx].target_residency_ns; in menu_select()
388 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select()
407 if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) || in menu_select()
411 if (idx > 0 && drv->states[idx].target_residency_ns > delta_tick) { in menu_select()
423 if (drv->states[i].target_residency_ns <= delta_tick) in menu_select()
[all …]
/linux-6.12.1/tools/verification/dot2/
Dautomata.py26 self.states, self.initial_state, self.final_states = self.__get_state_variables()
80 states = []
96 states.append(state)
107 states = sorted(set(states))
108 states.remove(initial_state)
111 states.insert(0, initial_state)
116 return states, initial_state, final_states
145 states = self.states
154 for state in states:
Ddot2c.py41 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.12.1/sound/usb/misc/
Dua101.c90 unsigned long states; member
158 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
166 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
185 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { in playback_urb_complete()
205 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); in first_playback_urb_complete()
258 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) in playback_work()
288 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in playback_work()
369 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in capture_urb_complete()
374 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in capture_urb_complete()
401 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && in capture_urb_complete()
[all …]
/linux-6.12.1/drivers/acpi/
Dprocessor_idle.c167 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast()
217 pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; in acpi_processor_get_power_info_fadt()
218 pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3; in acpi_processor_get_power_info_fadt()
231 pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4; in acpi_processor_get_power_info_fadt()
232 pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5; in acpi_processor_get_power_info_fadt()
235 pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.c2_latency; in acpi_processor_get_power_info_fadt()
236 pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.c3_latency; in acpi_processor_get_power_info_fadt()
246 pr->power.states[ACPI_STATE_C2].address = 0; in acpi_processor_get_power_info_fadt()
257 pr->power.states[ACPI_STATE_C3].address = 0; in acpi_processor_get_power_info_fadt()
261 pr->power.states[ACPI_STATE_C2].address, in acpi_processor_get_power_info_fadt()
[all …]
/linux-6.12.1/Documentation/admin-guide/pm/
Dintel_idle.rst28 processor's functional blocks into low-power states. That instruction takes two
42 .. _intel-idle-enumeration-of-states:
50 as C-states (in the ACPI terminology) or idle states. The list of meaningful
51 ``MWAIT`` hint values and idle states (i.e. low-power configurations of the
55 In order to create a list of available idle states required by the ``CPUIdle``
56 subsystem (see :ref:`idle-states-representation` in
58 ``intel_idle`` can use two sources of information: static tables of idle states
69 states, ``intel_idle`` first looks for a ``_CST`` object under one of the ACPI
72 ``CPUIdle`` subsystem expects that the list of idle states supplied by the
76 state description and such that all of the idle states included in its return
[all …]
Dstrategies.rst15 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.12.1/Documentation/admin-guide/blockdev/drbd/
Dfigures.rst20 .. 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.12.1/arch/arm64/boot/dts/qcom/
Dsc7180-firmware-tfa.dtsi13 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.12.1/drivers/gpu/drm/
Ddrm_blend.c448 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.12.1/Documentation/ABI/testing/
Dsysfs-bus-surface_aggregator-tabletsw8 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.12.1/arch/x86/kernel/acpi/
Dcstate.c114 } states[ACPI_PROCESSOR_MAX_POWER]; member
182 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe()
183 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe()
191 percpu_entry->states[cx->index].eax = cx->address; in acpi_processor_ffh_cstate_probe()
192 percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK; in acpi_processor_ffh_cstate_probe()
213 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, in acpi_processor_ffh_cstate_enter()
214 percpu_entry->states[cx->index].ecx); in acpi_processor_ffh_cstate_enter()
/linux-6.12.1/drivers/i2c/muxes/
Di2c-mux-pinctrl.c19 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.12.1/Documentation/devicetree/bindings/powerpc/opal/
Dpower-mgt.txt5 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:
27 The following properties provide details about the idle states. These
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.
[all …]
/linux-6.12.1/drivers/md/dm-vdo/
Dencodings.c1298 void vdo_destroy_component_states(struct vdo_component_states *states) in vdo_destroy_component_states() argument
1300 if (states == NULL) in vdo_destroy_component_states()
1303 vdo_uninitialize_layout(&states->layout); in vdo_destroy_component_states()
1318 struct vdo_component_states *states) in decode_components() argument
1322 decode_vdo_component(buffer, offset, &states->vdo); in decode_components()
1325 states->vdo.config.physical_blocks, &states->layout); in decode_components()
1330 &states->recovery_journal); in decode_components()
1334 result = decode_slab_depot_state_2_0(buffer, offset, &states->slab_depot); in decode_components()
1338 result = decode_block_map_state_2_0(buffer, offset, &states->block_map); in decode_components()
1356 struct vdo_component_states *states) in vdo_decode_component_states() argument
[all …]
/linux-6.12.1/arch/arm64/boot/dts/freescale/
Dfsl-ls2088a.dtsi28 cpu-idle-states = <&CPU_PW20>;
38 cpu-idle-states = <&CPU_PW20>;
48 cpu-idle-states = <&CPU_PW20>;
58 cpu-idle-states = <&CPU_PW20>;
69 cpu-idle-states = <&CPU_PW20>;
78 cpu-idle-states = <&CPU_PW20>;
88 cpu-idle-states = <&CPU_PW20>;
98 cpu-idle-states = <&CPU_PW20>;
/linux-6.12.1/arch/arm64/boot/dts/sprd/
Dums9620.dtsi53 cpu-idle-states = <&LIT_CORE_PD>;
61 cpu-idle-states = <&LIT_CORE_PD>;
69 cpu-idle-states = <&LIT_CORE_PD>;
77 cpu-idle-states = <&LIT_CORE_PD>;
85 cpu-idle-states = <&BIG_CORE_PD>;
93 cpu-idle-states = <&BIG_CORE_PD>;
101 cpu-idle-states = <&BIG_CORE_PD>;
109 cpu-idle-states = <&BIG_CORE_PD>;
113 idle-states {

12345678910>>...28