Home
last modified time | relevance | path

Searched refs:power_state (Results 1 – 25 of 152) sorted by relevance

1234567

/linux/drivers/gpu/drm/radeon/
A Dradeon_atombios.c2119 if (!rdev->pm.power_state) in radeon_atombios_parse_power_table_1_3()
2572 union pplib_power_state *power_state; in radeon_atombios_parse_power_table_4_5() local
2593 if (!rdev->pm.power_state) in radeon_atombios_parse_power_table_4_5()
2607 rdev->pm.power_state[i].clock_info = in radeon_atombios_parse_power_table_4_5()
2649 rdev->pm.power_state[0].type = in radeon_atombios_parse_power_table_4_5()
2662 union pplib_power_state *power_state; in radeon_atombios_parse_power_table_6() local
2696 if (!rdev->pm.power_state) in radeon_atombios_parse_power_table_6()
2705 rdev->pm.power_state[i].clock_info = in radeon_atombios_parse_power_table_6()
2707 power_state->v2.ucNumDPMLevels : 1, in radeon_atombios_parse_power_table_6()
2746 rdev->pm.power_state[0].type = in radeon_atombios_parse_power_table_6()
[all …]
A Dradeon_combios.c2650 if (rdev->pm.power_state) { in radeon_combios_get_power_modes()
2652 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes()
2655 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes()
2658 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes()
2659 !rdev->pm.power_state[1].clock_info) in radeon_combios_get_power_modes()
2741 rdev->pm.power_state[state_index].type = in radeon_combios_get_power_modes()
2746 rdev->pm.power_state[state_index].misc = misc; in radeon_combios_get_power_modes()
2807 rdev->pm.power_state[state_index].type = in radeon_combios_get_power_modes()
2812 …rdev->pm.power_state[state_index].default_clock_mode = &rdev->pm.power_state[state_index].clock_in… in radeon_combios_get_power_modes()
2816 rdev->pm.power_state[0].clock_info[0].voltage; in radeon_combios_get_power_modes()
[all …]
A Dradeon_pm.c64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
324 struct radeon_power_state *power_state; in radeon_pm_print_states() local
329 power_state = &rdev->pm.power_state[i]; in radeon_pm_print_states()
331 radeon_pm_state_type_name[power_state->type]); in radeon_pm_print_states()
335 DRM_DEBUG_DRIVER("\t%d PCIE Lanes\n", power_state->pcie_lanes); in radeon_pm_print_states()
336 if (power_state->flags & RADEON_PM_STATE_SINGLE_DISPLAY_ONLY) in radeon_pm_print_states()
339 for (j = 0; j < power_state->num_clock_modes; j++) { in radeon_pm_print_states()
340 clock_info = &(power_state->clock_info[j]); in radeon_pm_print_states()
1297 if (rdev->pm.power_state) { in radeon_pm_resume_old()
1662 kfree(rdev->pm.power_state); in radeon_pm_fini_old()
[all …]
/linux/arch/arm/mach-omap2/
A Domap-mpuss-lowpower.c225 int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state) in omap4_enter_lowpower() argument
233 switch (power_state) { in omap4_enter_lowpower()
269 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower()
272 omap_pm_ops.scu_prepare(cpu, power_state); in omap4_enter_lowpower()
305 int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
314 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu()
315 false, power_state); in omap4_hotplug_cpu()
317 if (power_state == PWRDM_POWER_OFF) in omap4_hotplug_cpu()
321 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_hotplug_cpu()
323 omap_pm_ops.scu_prepare(cpu, power_state); in omap4_hotplug_cpu()
A Dpm34xx.c54 struct power_state { struct
303 struct power_state *pwrst; in omap3_pm_suspend()
352 struct power_state *pwrst; in omap3_pm_off_mode_enable()
376 struct power_state *pwrst; in omap3_pm_get_suspend_state()
387 struct power_state *pwrst; in omap3_pm_set_suspend_state()
400 struct power_state *pwrst; in pwrdms_setup()
405 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
466 struct power_state *pwrst, *tmp; in omap3_pm_init()
A Dcommon.h287 extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state);
288 extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state);
291 unsigned int power_state) in omap4_enter_lowpower() argument
297 static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
A Dpm44xx.c26 struct power_state { struct
54 struct power_state *pwrst; in omap4_pm_suspend() argument
115 struct power_state *pwrst; in pwrdms_setup()
135 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
/linux/drivers/iio/common/hid-sensors/
A Dhid-sensor-trigger.c97 st->power_state.report_id, in _hid_sensor_power_state()
98 st->power_state.index, in _hid_sensor_power_state()
115 st->power_state.report_id, in _hid_sensor_power_state()
116 st->power_state.index, in _hid_sensor_power_state()
125 state_val += st->power_state.logical_minimum; in _hid_sensor_power_state()
126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
127 st->power_state.index, sizeof(state_val), in _hid_sensor_power_state()
142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
143 st->power_state.index, in _hid_sensor_power_state()
A Dhid-sensor-attributes.c518 &st->power_state); in hid_sensor_parse_common_attributes()
520 st->power_state.logical_minimum = 1; in hid_sensor_parse_common_attributes()
572 st->power_state.index, st->power_state.report_id, in hid_sensor_parse_common_attributes()
577 st->power_state.report_id, in hid_sensor_parse_common_attributes()
578 st->power_state.index, sizeof(value), &value); in hid_sensor_parse_common_attributes()
/linux/arch/arm/mach-s3c/
A Dsimtec-usb.c40 static unsigned int power_state[2]; variable
47 power_state[port] = to; in usb_simtec_powercontrol()
49 if (power_state[0] && power_state[1]) in usb_simtec_powercontrol()
/linux/drivers/misc/
A Dtsl2550.c36 unsigned int power_state:1; member
77 data->power_state = state; in tsl2550_set_power_state()
180 return sprintf(buf, "%u\n", data->power_state); in tsl2550_show_power_state()
204 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO,
226 if (data->power_state == 0) in tsl2550_store_operating_mode()
276 if (!data->power_state) in tsl2550_show_lux1_input()
318 data->power_state = 1; in tsl2550_init_client()
/linux/drivers/mfd/
A Dsi476x-i2c.c275 if (core->power_state == SI476X_POWER_INCONSISTENT) { in si476x_core_set_power_state()
281 if (next_state != core->power_state) { in si476x_core_set_power_state()
287 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
301 core->power_state = next_state; in si476x_core_set_power_state()
305 core->power_state = next_state; in si476x_core_set_power_state()
308 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
313 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state()
682 return core->power_state == SI476X_POWER_UP_FULL; in si476x_core_is_powered_up()
713 core->power_state = SI476X_POWER_DOWN; in si476x_core_probe()
/linux/drivers/iio/light/
A Dapds9300.c49 int power_state; member
95 if (!data->power_state) in apds9300_get_adc_val()
113 if (!data->power_state) in apds9300_set_thresh_low()
134 if (!data->power_state) in apds9300_set_thresh_hi()
156 if (!data->power_state) in apds9300_set_intr_state()
185 data->power_state = state; in apds9300_set_power_state()
/linux/drivers/media/radio/si4713/
A Dsi4713.c354 if (sdev->power_state) in si4713_powerup()
424 if (!sdev->power_state) in si4713_powerdown()
801 if (sdev->power_state) in si4713_set_mute()
817 if (sdev->power_state) { in si4713_set_rds_ps_name()
856 if (!sdev->power_state) in si4713_set_rds_radio_text()
1136 if (!sdev->power_state) in si4713_s_ctrl()
1274 if (sdev->power_state) { in si4713_g_modulator()
1324 if (sdev->power_state) { in si4713_s_modulator()
1354 if (sdev->power_state) { in si4713_g_frequency()
1383 if (sdev->power_state) { in si4713_s_frequency()
[all …]
/linux/arch/mips/ar7/
A Dsetup.c31 u32 power_state = readl(power_reg) | (3 << 30); in ar7_machine_power_off() local
33 writel(power_state, power_reg); in ar7_machine_power_off()
/linux/drivers/platform/x86/
A Dapple-gmux.c62 enum vga_switcheroo_state power_state; member
476 gmux_data->power_state = state; in gmux_set_discrete_state()
512 .power_state = gmux_set_power_state,
519 .power_state = gmux_set_power_state,
592 if (gmux_data->power_state == VGA_SWITCHEROO_OFF) in gmux_resume()
593 gmux_set_discrete_state(gmux_data, gmux_data->power_state); in gmux_resume()
703 gmux_data->power_state = VGA_SWITCHEROO_ON; in gmux_probe()
/linux/drivers/pnp/pnpacpi/
A Dcore.c146 int power_state = acpi_pm_device_sleep_state(&dev->dev, NULL, in pnpacpi_suspend() local
148 if (power_state < 0) in pnpacpi_suspend()
149 power_state = (state.event == PM_EVENT_ON) ? in pnpacpi_suspend()
158 error = acpi_device_set_power(acpi_dev, power_state); in pnpacpi_suspend()
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dvega12_processpptables.c356 uint32_t entry_index, struct pp_power_state *power_state,
368 power_state->classification.bios_index = entry_index;
388 result = call_back_func(hwmgr, (void *)state_entry, power_state,
395 if (!result && (power_state->classification.flags &
397 result = hwmgr->hwmgr_func->patch_boot_state(hwmgr, &(power_state->hardware));
/linux/Documentation/ABI/testing/
A Dsysfs-devices-power_state1 What: /sys/devices/.../power_state
5 The /sys/devices/.../power_state attribute is only present for
/linux/sound/pci/hda/
A Dhda_codec.c799 unsigned int power_state);
2689 unsigned int power_state) in snd_hda_codec_set_power_to_all() argument
2700 if (state != power_state && power_state == AC_PWRST_D3) in snd_hda_codec_set_power_to_all()
2723 return power_state; in snd_hda_codec_eapd_power_filter()
2724 if (power_state == AC_PWRST_D3 && in snd_hda_codec_eapd_power_filter()
2732 return power_state; in snd_hda_codec_eapd_power_filter()
2740 unsigned int power_state) in hda_set_power_state() argument
2748 if (power_state == AC_PWRST_D3) { in hda_set_power_state()
2760 power_state); in hda_set_power_state()
2762 state = power_state; in hda_set_power_state()
[all …]
/linux/drivers/hid/
A Dhid-sensor-custom.c49 struct hid_sensor_custom_field *power_state; member
186 if (sensor_inst->power_state) in set_power_report_state()
188 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
189 sensor_inst->power_state->attribute.index, in set_power_report_state()
199 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
201 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
202 sensor_inst->power_state->attribute.index, in set_power_report_state()
617 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
A Dfw.c221 u8 rlbm, power_state = 0, byte5 = 0; in rtl8723be_set_fw_pwrmode_cmd() local
264 power_state = FW_PWR_STATE_ACTIVE; in rtl8723be_set_fw_pwrmode_cmd()
268 power_state = btc_ops->btc_get_rpwm_val(rtlpriv); in rtl8723be_set_fw_pwrmode_cmd()
279 power_state = FW_PWR_STATE_RF_OFF; in rtl8723be_set_fw_pwrmode_cmd()
290 SET_H2CCMD_PWRMODE_PARM_PWR_STATE(u1_h2c_set_pwrmode, power_state); in rtl8723be_set_fw_pwrmode_cmd()
/linux/drivers/gpu/vga/
A Dvga_switcheroo.c676 if (vgasr_priv.handler->power_state) in vga_switchon()
677 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_ON); in vga_switchon()
690 if (vgasr_priv.handler->power_state) in vga_switchoff()
691 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_OFF); in vga_switchoff()
1000 if (!vgasr_priv.handler->power_state) in vga_switcheroo_power_switch()
1010 vgasr_priv.handler->power_state(client->id, state); in vga_switcheroo_power_switch()
/linux/drivers/thermal/st/
A Dst_thermal_syscfg.c64 enum st_thermal_power_state power_state) in st_syscfg_power_ctrl() argument
66 return regmap_field_write(sensor->pwr, power_state); in st_syscfg_power_ctrl()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
A Dfw.c400 u8 rlbm, power_state = 0, byte5 = 0; in rtl92ee_set_fw_pwrmode_cmd() local
443 power_state = FW_PWR_STATE_ACTIVE; in rtl92ee_set_fw_pwrmode_cmd()
447 power_state = btc_ops->btc_get_rpwm_val(rtlpriv); in rtl92ee_set_fw_pwrmode_cmd()
458 power_state = FW_PWR_STATE_RF_OFF; in rtl92ee_set_fw_pwrmode_cmd()
471 SET_H2CCMD_PWRMODE_PARM_PWR_STATE(u1_h2c_set_pwrmode, power_state); in rtl92ee_set_fw_pwrmode_cmd()

Completed in 72 milliseconds

1234567