Home
last modified time | relevance | path

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

12345678910>>...20

/Linux-v5.4/arch/h8300/lib/
Dmulsi3.S9 ; 16b * 16b = 372 states (worst case)
10 ; 32b * 32b = 724 states (worst case)
14 ; 16b * 16b = 48 states
15 ; 16b * 32b = 72 states
16 ; 32b * 32b = 92 states
21 mov.w r1,r2 ; ( 2 states) b * d
22 mulxu r0,er2 ; (22 states)
24 mov.w e0,r3 ; ( 2 states) a * d
25 beq L_skip1 ; ( 4 states)
26 mulxu r1,er3 ; (22 states)
[all …]
/Linux-v5.4/drivers/cpuidle/governors/
Dteo.c105 struct teo_idle_state states[CPUIDLE_STATE_MAX]; member
134 lat = drv->states[dev->last_state_idx].exit_latency; in teo_update()
154 unsigned int early_hits = cpu_data->states[i].early_hits; in teo_update()
156 cpu_data->states[i].early_hits -= early_hits >> DECAY_SHIFT; in teo_update()
158 if (drv->states[i].target_residency <= sleep_length_us) { in teo_update()
160 if (drv->states[i].target_residency <= measured_us) in teo_update()
174 unsigned int hits = cpu_data->states[idx_timer].hits; in teo_update()
175 unsigned int misses = cpu_data->states[idx_timer].misses; in teo_update()
183 cpu_data->states[idx_hit].early_hits += PULSE; in teo_update()
188 cpu_data->states[idx_timer].misses = misses; in teo_update()
[all …]
Dladder.c40 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member
55 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
56 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
72 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_select_state()
81 last_state = &ldev->states[last_idx]; in ladder_select_state()
83 last_residency = dev->last_residency - drv->states[last_idx].exit_latency; in ladder_select_state()
87 !drv->states[last_idx + 1].disabled && in ladder_select_state()
90 drv->states[last_idx + 1].exit_latency <= latency_req) { in ladder_select_state()
101 (drv->states[last_idx].disabled || in ladder_select_state()
103 drv->states[last_idx].exit_latency > latency_req)) { in ladder_select_state()
[all …]
Dmenu.c299 ((data->next_timer_us < drv->states[1].target_residency || in menu_select()
300 latency_req < drv->states[1].exit_latency) && in menu_select()
301 !drv->states[0].disabled && !dev->states_usage[0].disable)) { in menu_select()
307 *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); in menu_select()
351 struct cpuidle_state *s = &drv->states[i]; in menu_select()
365 if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in menu_select()
382 predicted_us = drv->states[idx].target_residency; in menu_select()
392 if (drv->states[idx].target_residency < TICK_USEC && in menu_select()
411 if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) || in menu_select()
417 if (idx > 0 && drv->states[idx].target_residency > delta_next_us) { in menu_select()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/cpuidle/
Dcpuidle-mvebu-v7.c36 if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE) in mvebu_v7_enter_idle()
50 .states[0] = ARM_CPUIDLE_WFI_STATE,
51 .states[1] = {
59 .states[2] = {
73 .states[0] = ARM_CPUIDLE_WFI_STATE,
74 .states[1] = {
88 .states[0] = ARM_CPUIDLE_WFI_STATE,
89 .states[1] = {
Dcpuidle.c70 if (drv->states[i].enter_dead) in cpuidle_play_dead()
71 return drv->states[i].enter_dead(dev, i); in cpuidle_play_dead()
86 struct cpuidle_state *s = &drv->states[i]; in find_deepest_state()
150 drv->states[index].enter_s2idle(dev, drv, index); in enter_s2idle_proper()
202 struct cpuidle_state *target_state = &drv->states[index]; in cpuidle_enter_state()
218 target_state = &drv->states[index]; in cpuidle_enter_state()
250 s64 diff, delay = drv->states[entered_state].exit_latency; in cpuidle_enter_state()
266 if (diff < drv->states[entered_state].target_residency) { in cpuidle_enter_state()
268 if (drv->states[i].disabled || in cpuidle_enter_state()
278 if (drv->states[i].disabled || in cpuidle_enter_state()
[all …]
Dcpuidle-big_little.c62 .states[0] = ARM_CPUIDLE_WFI_STATE,
63 .states[1] = {
83 .states[0] = ARM_CPUIDLE_WFI_STATE,
84 .states[1] = {
/Linux-v5.4/Documentation/devicetree/bindings/arm/
Didle-states.txt2 ARM idle states binding description
10 where cores can be put in different low-power states (ranging from simple
11 wfi to power gating) according to OS PM policies. The CPU states representing
12 the range of dynamic idle states that a processor can enter at run-time, can be
14 to enter/exit specific idle states on a given processor.
17 power states an ARM CPU can be put into are identified by the following list:
25 The power states described in the SBSA document define the basic CPU states on
27 PM implementation to put the processor in different idle states (which include
28 states listed above; "off" state is not an idle state since it does not have
35 The device tree binding definition for ARM idle states is the subject of this
[all …]
/Linux-v5.4/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:: node-states-8.dot
29 :alt: node-states-8.dot
/Linux-v5.4/drivers/cpufreq/
Dia64-acpi-cpufreq.c97 if (value == data->acpi_data.states[i].status) in extract_clock()
98 return data->acpi_data.states[i].core_frequency; in extract_clock()
100 return data->acpi_data.states[i-1].core_frequency; in extract_clock()
159 value = (u32) data->acpi_data.states[state].control; in processor_set_freq()
254 if ((data->acpi_data.states[i].transition_latency * 1000) > in acpi_cpufreq_cpu_init()
257 data->acpi_data.states[i].transition_latency * 1000; in acpi_cpufreq_cpu_init()
266 data->acpi_data.states[i].core_frequency * 1000; in acpi_cpufreq_cpu_init()
282 (u32) data->acpi_data.states[i].core_frequency, in acpi_cpufreq_cpu_init()
283 (u32) data->acpi_data.states[i].power, in acpi_cpufreq_cpu_init()
284 (u32) data->acpi_data.states[i].transition_latency, in acpi_cpufreq_cpu_init()
[all …]
/Linux-v5.4/sound/usb/misc/
Dua101.c91 unsigned long states; member
159 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { in abort_usb_capture()
167 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) in abort_usb_playback()
186 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { in playback_urb_complete()
206 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); in first_playback_urb_complete()
259 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) in playback_tasklet()
289 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) in playback_tasklet()
370 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) in capture_urb_complete()
375 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { in capture_urb_complete()
402 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && in capture_urb_complete()
[all …]
/Linux-v5.4/drivers/acpi/
Dprocessor_idle.c168 int state = cx - pr->power.states; in lapic_timer_state_broadcast()
225 pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; in acpi_processor_get_power_info_fadt()
226 pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3; in acpi_processor_get_power_info_fadt()
239 pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4; in acpi_processor_get_power_info_fadt()
240 pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5; in acpi_processor_get_power_info_fadt()
243 pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.c2_latency; in acpi_processor_get_power_info_fadt()
244 pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.c3_latency; in acpi_processor_get_power_info_fadt()
254 pr->power.states[ACPI_STATE_C2].address = 0; in acpi_processor_get_power_info_fadt()
265 pr->power.states[ACPI_STATE_C3].address = 0; in acpi_processor_get_power_info_fadt()
270 pr->power.states[ACPI_STATE_C2].address, in acpi_processor_get_power_info_fadt()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_blend.c428 struct drm_plane_state **states; in drm_atomic_helper_crtc_normalize_zpos() local
436 states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL); in drm_atomic_helper_crtc_normalize_zpos()
437 if (!states) in drm_atomic_helper_crtc_normalize_zpos()
451 states[n++] = plane_state; in drm_atomic_helper_crtc_normalize_zpos()
457 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); in drm_atomic_helper_crtc_normalize_zpos()
460 plane = states[i]->plane; in drm_atomic_helper_crtc_normalize_zpos()
462 states[i]->normalized_zpos = i; in drm_atomic_helper_crtc_normalize_zpos()
469 kfree(states); in drm_atomic_helper_crtc_normalize_zpos()
/Linux-v5.4/arch/x86/kernel/acpi/
Dcstate.c91 } states[ACPI_PROCESSOR_MAX_POWER]; member
159 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe()
160 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe()
167 percpu_entry->states[cx->index].eax = cx->address; in acpi_processor_ffh_cstate_probe()
168 percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK; in acpi_processor_ffh_cstate_probe()
189 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, in acpi_processor_ffh_cstate_enter()
190 percpu_entry->states[cx->index].ecx); in acpi_processor_ffh_cstate_enter()
/Linux-v5.4/Documentation/admin-guide/pm/
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-v5.4/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-v5.4/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 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-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls2080a.dtsi20 cpu-idle-states = <&CPU_PW20>;
30 cpu-idle-states = <&CPU_PW20>;
40 cpu-idle-states = <&CPU_PW20>;
50 cpu-idle-states = <&CPU_PW20>;
60 cpu-idle-states = <&CPU_PW20>;
70 cpu-idle-states = <&CPU_PW20>;
81 cpu-idle-states = <&CPU_PW20>;
90 cpu-idle-states = <&CPU_PW20>;
Dfsl-ls2088a.dtsi20 cpu-idle-states = <&CPU_PW20>;
30 cpu-idle-states = <&CPU_PW20>;
40 cpu-idle-states = <&CPU_PW20>;
50 cpu-idle-states = <&CPU_PW20>;
61 cpu-idle-states = <&CPU_PW20>;
70 cpu-idle-states = <&CPU_PW20>;
80 cpu-idle-states = <&CPU_PW20>;
90 cpu-idle-states = <&CPU_PW20>;
/Linux-v5.4/tools/power/cpupower/utils/helpers/
Dmisc.c9 int *states) in cpufreq_has_boost_support() argument
15 *support = *active = *states = 0; in cpufreq_has_boost_support()
35 ret = amd_pci_get_num_boost_states(active, states); in cpufreq_has_boost_support()
/Linux-v5.4/arch/x86/platform/intel-mid/
Dpwr.c398 static int mid_set_initial_state(struct mid_pwr *pwr, const u32 *states) in mid_set_initial_state() argument
423 mid_pwr_set_state(pwr, 0, states[0]); in mid_set_initial_state()
424 mid_pwr_set_state(pwr, 1, states[1]); in mid_set_initial_state()
425 mid_pwr_set_state(pwr, 2, states[2]); in mid_set_initial_state()
426 mid_pwr_set_state(pwr, 3, states[3]); in mid_set_initial_state()
444 static const u32 states[] = { in pnw_set_initial_state() local
450 return mid_set_initial_state(pwr, states); in pnw_set_initial_state()
455 static const u32 states[] = { in tng_set_initial_state() local
461 return mid_set_initial_state(pwr, states); in tng_set_initial_state()
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-devices-power15 from sleep states, such as the memory sleep state (suspend to
33 be enabled to wake up the system from sleep states.
87 the system from sleep states, this attribute is not present.
89 states, this attribute is empty.
99 system from sleep states, this attribute is not present. If
101 states, this attribute is empty.
111 is not capable to wake up the system from sleep states, this
113 up the system from sleep states, this attribute is empty.
123 from sleep states, this attribute is not present. If the
124 device is not enabled to wake up the system from sleep states,
[all …]
/Linux-v5.4/arch/arm/mach-imx/
Dcpuidle-imx6q.c40 .states = {
65 imx6q_cpuidle_driver.states[1].disabled = true; in imx6q_cpuidle_fec_irqs_used()
71 imx6q_cpuidle_driver.states[1].disabled = false; in imx6q_cpuidle_fec_irqs_unused()
/Linux-v5.4/arch/sh/kernel/cpu/shmobile/
Dcpuidle.c54 .states = {
89 cpuidle_driver.states[1].disabled = false; in sh_mobile_setup_cpuidle()
92 cpuidle_driver.states[2].disabled = false; in sh_mobile_setup_cpuidle()

12345678910>>...20