Home
last modified time | relevance | path

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

123456

/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_atombios.c2057 rdev->pm.power_state[state_index].misc = misc; in radeon_atombios_parse_misc_flags_1_3()
2058 rdev->pm.power_state[state_index].misc2 = misc2; in radeon_atombios_parse_misc_flags_1_3()
2061 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2064 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2067 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2070 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2073 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2075 rdev->pm.power_state[state_index].flags &= in radeon_atombios_parse_misc_flags_1_3()
2079 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
2082 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3()
[all …]
Dradeon_combios.c2648 rdev->pm.power_state = kcalloc(2, sizeof(struct radeon_power_state), in radeon_combios_get_power_modes()
2650 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()
2736 rdev->pm.power_state[state_index].num_clock_modes = 1; in radeon_combios_get_power_modes()
2737 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); in radeon_combios_get_power_modes()
2738 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6); in radeon_combios_get_power_modes()
2739 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_combios_get_power_modes()
[all …]
Dradeon_pm.c64 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index()
182 sclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
196 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
199 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state()
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()
338 DRM_DEBUG_DRIVER("\t%d Clock Mode(s)\n", power_state->num_clock_modes); in radeon_pm_print_states()
[all …]
/Linux-v5.4/arch/arm/mach-omap2/
Domap-mpuss-lowpower.c226 int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state) in omap4_enter_lowpower() argument
235 switch (power_state) { in omap4_enter_lowpower()
271 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower()
274 omap_pm_ops.scu_prepare(cpu, power_state); in omap4_enter_lowpower()
308 int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
317 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu()
318 false, power_state); in omap4_hotplug_cpu()
320 if (power_state == PWRDM_POWER_OFF) in omap4_hotplug_cpu()
324 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_hotplug_cpu()
326 omap_pm_ops.scu_prepare(cpu, power_state); in omap4_hotplug_cpu()
Dpm34xx.c55 struct power_state { struct
310 struct power_state *pwrst; in omap3_pm_suspend()
359 struct power_state *pwrst; in omap3_pm_off_mode_enable()
383 struct power_state *pwrst; in omap3_pm_get_suspend_state()
394 struct power_state *pwrst; in omap3_pm_set_suspend_state()
407 struct power_state *pwrst; in pwrdms_setup()
412 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
452 struct power_state *pwrst, *tmp; in omap3_pm_init()
Dpm44xx.c26 struct power_state { struct
54 struct power_state *pwrst; in omap4_pm_suspend() argument
115 struct power_state *pwrst; in pwrdms_setup()
144 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
Dcommon.h281 extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state);
282 extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state);
285 unsigned int power_state) in omap4_enter_lowpower() argument
291 static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) in omap4_hotplug_cpu() argument
/Linux-v5.4/arch/arm/mach-s3c24xx/
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-v5.4/drivers/iio/common/hid-sensors/
Dhid-sensor-trigger.c107 st->power_state.report_id, in _hid_sensor_power_state()
108 st->power_state.index, in _hid_sensor_power_state()
125 st->power_state.report_id, in _hid_sensor_power_state()
126 st->power_state.index, in _hid_sensor_power_state()
135 state_val += st->power_state.logical_minimum; in _hid_sensor_power_state()
136 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
137 st->power_state.index, sizeof(state_val), in _hid_sensor_power_state()
152 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
153 st->power_state.index, in _hid_sensor_power_state()
Dhid-sensor-attributes.c466 &st->power_state); in hid_sensor_parse_common_attributes()
468 st->power_state.logical_minimum = 1; in hid_sensor_parse_common_attributes()
496 st->power_state.index, st->power_state.report_id, in hid_sensor_parse_common_attributes()
501 st->power_state.report_id, in hid_sensor_parse_common_attributes()
502 st->power_state.index, sizeof(value), &value); in hid_sensor_parse_common_attributes()
/Linux-v5.4/drivers/misc/
Dtsl2550.c36 unsigned int power_state:1; member
77 data->power_state = state; in tsl2550_set_power_state()
182 return sprintf(buf, "%u\n", data->power_state); in tsl2550_show_power_state()
206 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO,
228 if (data->power_state == 0) in tsl2550_store_operating_mode()
278 if (!data->power_state) in tsl2550_show_lux1_input()
320 data->power_state = 1; in tsl2550_init_client()
/Linux-v5.4/drivers/mfd/
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()
677 return core->power_state == SI476X_POWER_UP_FULL; in si476x_core_is_powered_up()
708 core->power_state = SI476X_POWER_DOWN; in si476x_core_probe()
/Linux-v5.4/arch/mips/ar7/
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-v5.4/drivers/iio/light/
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-v5.4/drivers/pnp/pnpacpi/
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-v5.4/drivers/media/radio/si4713/
Dsi4713.c354 if (sdev->power_state) in si4713_powerup()
390 sdev->power_state = POWER_ON; in si4713_powerup()
424 if (!sdev->power_state) in si4713_powerdown()
454 sdev->power_state = POWER_OFF; 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()
1233 if (sdev->power_state) { in si4713_ioctl()
1274 if (sdev->power_state) { in si4713_g_modulator()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-devices-power_state1 What: /sys/devices/.../power_state
5 The /sys/devices/.../power_state attribute is only present for
/Linux-v5.4/drivers/platform/x86/
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-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dvega12_processpptables.c357 uint32_t entry_index, struct pp_power_state *power_state,
369 power_state->classification.bios_index = entry_index;
389 result = call_back_func(hwmgr, (void *)state_entry, power_state,
396 if (!result && (power_state->classification.flags &
398 result = hwmgr->hwmgr_func->patch_boot_state(hwmgr, &(power_state->hardware));
Dprocess_pptables_v1_0.h31 struct pp_power_state *power_state, int (*call_back_func)(struct pp_hwmgr *, void *,
/Linux-v5.4/include/sound/
Dcore.h123 unsigned int power_state; /* power state */ member
138 return card->power_state; in snd_power_get_state()
143 card->power_state = state; in snd_power_change_state()
148 int snd_power_wait(struct snd_card *card, unsigned int power_state);
/Linux-v5.4/drivers/hid/
Dhid-sensor-custom.c47 struct hid_sensor_custom_field *power_state; member
183 if (sensor_inst->power_state) in set_power_report_state()
185 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
186 sensor_inst->power_state->attribute.index, in set_power_report_state()
196 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
198 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
199 sensor_inst->power_state->attribute.index, in set_power_report_state()
613 sensor_inst->power_state = &sensor_inst->fields[i]; in hid_sensor_custom_add_attributes()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
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-v5.4/drivers/gpu/vga/
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-v5.4/drivers/thermal/st/
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()

123456