Home
last modified time | relevance | path

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

12345

/drivers/regulator/
Dgpio-regulator.c45 struct gpio_regulator_state *states; member
57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
58 return data->states[ptr].value; in gpio_regulator_get_value()
71 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage()
72 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage()
73 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage()
74 target = data->states[ptr].gpios; in gpio_regulator_set_voltage()
75 best_val = data->states[ptr].value; in gpio_regulator_set_voltage()
100 return data->states[selector].value; in gpio_regulator_list_voltage()
110 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit()
[all …]
/drivers/cpuidle/governors/
Dladder.c42 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member
57 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
58 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
81 last_state = &ldev->states[last_idx]; in ladder_select_state()
83 last_residency = cpuidle_get_last_residency(dev) - 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()
107 if (drv->states[i].exit_latency <= latency_req) in ladder_select_state()
[all …]
Dmenu.c323 struct cpuidle_state *s = &drv->states[CPUIDLE_DRIVER_STATE_START]; in menu_select()
360 struct cpuidle_state *s = &drv->states[i]; in menu_select()
401 struct cpuidle_state *target = &drv->states[last_idx]; in menu_update()
/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-big_little.c65 .states[0] = ARM_CPUIDLE_WFI_STATE,
66 .states[1] = {
86 .states[0] = ARM_CPUIDLE_WFI_STATE,
87 .states[1] = {
Dcpuidle.c69 if (drv->states[i].enter_dead) in cpuidle_play_dead()
70 return drv->states[i].enter_dead(dev, i); in cpuidle_play_dead()
85 struct cpuidle_state *s = &drv->states[i]; in find_deepest_state()
127 drv->states[index].enter_freeze(dev, drv, index); in enter_freeze_proper()
174 struct cpuidle_state *target_state = &drv->states[index]; in cpuidle_enter_state()
191 target_state = &drv->states[index]; in cpuidle_enter_state()
Dcpuidle-at91.c40 .states[0] = ARM_CPUIDLE_WFI_STATE,
41 .states[1] = {
Dcpuidle-kirkwood.c44 .states[0] = ARM_CPUIDLE_WFI_STATE,
45 .states[1] = {
Dcpuidle-exynos.c82 .states = {
99 .states = {
Dcpuidle-cps.c76 .states = {
154 cps_driver.states[i].flags |= CPUIDLE_FLAG_COUPLED; in cps_cpuidle_init()
/drivers/cpufreq/
Dia64-acpi-cpufreq.c94 if (value == data->acpi_data.states[i].status) in extract_clock()
95 return data->acpi_data.states[i].core_frequency; in extract_clock()
97 return data->acpi_data.states[i-1].core_frequency; in extract_clock()
175 value = (u32) data->acpi_data.states[state].control; in processor_set_freq()
269 if ((data->acpi_data.states[i].transition_latency * 1000) > in acpi_cpufreq_cpu_init()
272 data->acpi_data.states[i].transition_latency * 1000; in acpi_cpufreq_cpu_init()
281 data->acpi_data.states[i].core_frequency * 1000; in acpi_cpufreq_cpu_init()
300 (u32) data->acpi_data.states[i].core_frequency, in acpi_cpufreq_cpu_init()
301 (u32) data->acpi_data.states[i].power, in acpi_cpufreq_cpu_init()
302 (u32) data->acpi_data.states[i].transition_latency, in acpi_cpufreq_cpu_init()
[all …]
Dacpi-cpufreq.c211 if (value == perf->states[i].status) in extract_io()
231 if (msr == perf->states[pos->driver_data].status) in extract_msr()
448 drv_write(data, mask, perf->states[next_perf_state].control); in acpi_cpufreq_target()
494 perf->states[next_perf_state].control); in acpi_cpufreq_fast_switch()
509 unsigned long freqn = perf->states[0].core_frequency * 1000; in acpi_cpufreq_guess_freq()
513 freqn = perf->states[i+1].core_frequency * 1000; in acpi_cpufreq_guess_freq()
524 return perf->states[0].core_frequency * 1000; in acpi_cpufreq_guess_freq()
791 if ((perf->states[i].transition_latency * 1000) > in acpi_cpufreq_cpu_init()
794 perf->states[i].transition_latency * 1000; in acpi_cpufreq_cpu_init()
806 if (i > 0 && perf->states[i].core_frequency >= in acpi_cpufreq_cpu_init()
[all …]
De_powersaver.c188 int states; in eps_cpu_init() local
322 states = max_multiplier - min_multiplier + 1; in eps_cpu_init()
324 states = 2; in eps_cpu_init()
328 + (states + 1) * sizeof(struct cpufreq_frequency_table), in eps_cpu_init()
/drivers/gpu/drm/
Ddrm_blend.c303 struct drm_plane_state **states; in drm_atomic_helper_crtc_normalize_zpos() local
311 states = kmalloc_array(total_planes, sizeof(*states), GFP_TEMPORARY); in drm_atomic_helper_crtc_normalize_zpos()
312 if (!states) in drm_atomic_helper_crtc_normalize_zpos()
326 states[n++] = plane_state; in drm_atomic_helper_crtc_normalize_zpos()
332 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); in drm_atomic_helper_crtc_normalize_zpos()
335 plane = states[i]->plane; in drm_atomic_helper_crtc_normalize_zpos()
337 states[i]->normalized_zpos = i; in drm_atomic_helper_crtc_normalize_zpos()
344 kfree(states); in drm_atomic_helper_crtc_normalize_zpos()
/drivers/acpi/
Dprocessor_idle.c179 int state = cx - pr->power.states; in lapic_timer_state_broadcast()
233 pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; in acpi_processor_get_power_info_fadt()
234 pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3; in acpi_processor_get_power_info_fadt()
247 pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4; in acpi_processor_get_power_info_fadt()
248 pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5; in acpi_processor_get_power_info_fadt()
251 pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.c2_latency; in acpi_processor_get_power_info_fadt()
252 pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.c3_latency; in acpi_processor_get_power_info_fadt()
262 pr->power.states[ACPI_STATE_C2].address = 0; in acpi_processor_get_power_info_fadt()
273 pr->power.states[ACPI_STATE_C3].address = 0; in acpi_processor_get_power_info_fadt()
278 pr->power.states[ACPI_STATE_C2].address, in acpi_processor_get_power_info_fadt()
[all …]
Dprocessor_perflib.c101 pr->performance->states[ppc]. in acpi_processor_ppc_notifier()
198 *limit = pr->performance->states[pr->performance_platform_limit]. in acpi_processor_get_bios_limit()
349 pr->performance->states = in acpi_processor_get_performance_states()
352 if (!pr->performance->states) { in acpi_processor_get_performance_states()
359 struct acpi_processor_px *px = &(pr->performance->states[i]); in acpi_processor_get_performance_states()
371 kfree(pr->performance->states); in acpi_processor_get_performance_states()
402 memcpy(&(pr->performance->states[last_invalid]), in acpi_processor_get_performance_states()
413 kfree(pr->performance->states); in acpi_processor_get_performance_states()
414 pr->performance->states = NULL; in acpi_processor_get_performance_states()
796 kfree(pr->performance->states); in acpi_processor_unregister_performance()
Ddevice_pm.c131 if (adev->power.states[state].flags.explicit_set) { in acpi_dev_pm_explicit_set()
175 if (!device->power.states[ACPI_STATE_D3_COLD].flags.valid) in acpi_device_set_power()
177 } else if (!device->power.states[state].flags.valid) { in acpi_device_set_power()
557 if (!adev->power.states[ret].flags.valid) { in acpi_dev_pm_get_state()
586 if (!adev->power.states[ret].flags.valid) in acpi_dev_pm_get_state()
647 if (adev->power.states[d_max].flags.valid) in acpi_pm_device_sleep_state()
/drivers/i2c/muxes/
Di2c-mux-pinctrl.c32 struct pinctrl_state **states; member
40 return pinctrl_select_state(mux->pinctrl, mux->states[chan]); in i2c_mux_pinctrl_select()
169 mux->states = devm_kzalloc(&pdev->dev, in i2c_mux_pinctrl_probe()
170 sizeof(*mux->states) * mux->pdata->bus_count, in i2c_mux_pinctrl_probe()
172 if (!mux->states) { in i2c_mux_pinctrl_probe()
195 mux->states[i] = pinctrl_lookup_state(mux->pinctrl, in i2c_mux_pinctrl_probe()
197 if (IS_ERR(mux->states[i])) { in i2c_mux_pinctrl_probe()
198 ret = PTR_ERR(mux->states[i]); in i2c_mux_pinctrl_probe()
231 if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) { in i2c_mux_pinctrl_probe()
/drivers/xen/
Dxen-acpi-processor.c76 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor()
116 set_xen_guest_handle(op.u.set_pminfo.power.states, dst_cx_states); in push_cxx_to_hypervisor()
124 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor()
159 memcpy(&(dst_states[i]), &(_pr->performance->states[i]), in xen_copy_pss_data()
233 set_xen_guest_handle(dst_perf->states, dst_states); in push_pxx_to_hypervisor()
258 (u32) perf->states[i].core_frequency, in push_pxx_to_hypervisor()
259 (u32) perf->states[i].power, in push_pxx_to_hypervisor()
260 (u32) perf->states[i].transition_latency); in push_pxx_to_hypervisor()
286 if (_pr->performance && _pr->performance->states) in upload_pm_data()
/drivers/staging/android/fiq_debugger/
Dfiq_debugger.c835 struct fiq_debugger_state **states = tty->driver->driver_state; in fiq_tty_open() local
836 struct fiq_debugger_state *state = states[line]; in fiq_tty_open()
850 struct fiq_debugger_state **states = tty->driver->driver_state; in fiq_tty_write() local
851 struct fiq_debugger_state *state = states[line]; in fiq_tty_write()
879 struct fiq_debugger_state **states = driver->driver_state; in fiq_tty_poll_get_char() local
880 struct fiq_debugger_state *state = states[line]; in fiq_tty_poll_get_char()
902 struct fiq_debugger_state **states = driver->driver_state; in fiq_tty_poll_put_char() local
903 struct fiq_debugger_state *state = states[line]; in fiq_tty_poll_put_char()
927 struct fiq_debugger_state **states = NULL; in fiq_debugger_tty_init() local
929 states = kzalloc(sizeof(*states) * MAX_FIQ_DEBUGGER_PORTS, GFP_KERNEL); in fiq_debugger_tty_init()
[all …]
/drivers/soc/qcom/
Dsmsm.c470 u32 *states; in qcom_smsm_probe() local
523 states = qcom_smem_get(QCOM_SMEM_HOST_ANY, SMEM_SMSM_SHARED_STATE, NULL); in qcom_smsm_probe()
524 if (IS_ERR(states)) { in qcom_smsm_probe()
526 return PTR_ERR(states); in qcom_smsm_probe()
544 smsm->local_state = states + smsm->local_host; in qcom_smsm_probe()
569 entry->remote_state = states + id; in qcom_smsm_probe()
/drivers/input/
Dff-memless.c61 struct ml_effect_state states[FF_MEMLESS_EFFECTS]; member
137 state = &ml->states[i]; in ml_schedule_timer()
353 state = &ml->states[i]; in ml_get_combo_effect()
439 __clear_bit(FF_EFFECT_PLAYING, &ml->states[i].flags); in ml_ff_set_gain()
450 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
481 struct ml_effect_state *state = &ml->states[effect->id]; in ml_ff_upload()
555 ml->states[i].effect = &ff->effects[i]; in input_ff_create_memless()
/drivers/base/power/
Ddomain_governor.c110 off_on_time_ns = genpd->states[state].power_off_latency_ns + in __default_power_down_ok()
111 genpd->states[state].power_on_latency_ns; in __default_power_down_ok()
186 genpd->states[state].power_on_latency_ns; in __default_power_down_ok()
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dhardwaremanager.c82 struct phm_set_power_state_input states; in phm_set_power_state() local
86 states.pcurrent_state = pcurrent_state; in phm_set_power_state()
87 states.pnew_state = pnew_power_state; in phm_set_power_state()
92 return hwmgr->hwmgr_func->power_state_set(hwmgr, &states); in phm_set_power_state()
94 return phm_dispatch_table(hwmgr, &(hwmgr->set_power_state), &states, NULL); in phm_set_power_state()
/drivers/iommu/
Damd_iommu_v2.c67 struct pasid_state **states; member
170 root = dev_state->states; in __get_pasid_state_ptr()
356 free_pasid_states_level2(dev_state->states); in free_pasid_states()
358 free_pasid_states_level1(dev_state->states); in free_pasid_states()
362 free_page((unsigned long)dev_state->states); in free_pasid_states()
793 dev_state->states = (void *)get_zeroed_page(GFP_KERNEL); in amd_iommu_init_device()
794 if (dev_state->states == NULL) in amd_iommu_init_device()
840 free_page((unsigned long)dev_state->states); in amd_iommu_init_device()

12345