/drivers/gpu/drm/radeon/ |
D | radeon_atombios.c | 2047 rdev->pm.power_state[state_index].misc = misc; in radeon_atombios_parse_misc_flags_1_3() 2048 rdev->pm.power_state[state_index].misc2 = misc2; in radeon_atombios_parse_misc_flags_1_3() 2051 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2054 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2057 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2060 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2063 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2065 rdev->pm.power_state[state_index].flags &= in radeon_atombios_parse_misc_flags_1_3() 2069 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 2072 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() [all …]
|
D | radeon_combios.c | 2649 rdev->pm.power_state = kcalloc(2, sizeof(struct radeon_power_state), in radeon_combios_get_power_modes() 2651 if (rdev->pm.power_state) { in radeon_combios_get_power_modes() 2653 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes() 2656 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes() 2659 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes() 2660 !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 …]
|
D | radeon_pm.c | 64 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 …]
|
/drivers/iio/common/hid-sensors/ |
D | hid-sensor-trigger.c | 109 st->power_state.report_id, in _hid_sensor_power_state() 110 st->power_state.index, in _hid_sensor_power_state() 127 st->power_state.report_id, in _hid_sensor_power_state() 128 st->power_state.index, in _hid_sensor_power_state() 137 state_val += st->power_state.logical_minimum; in _hid_sensor_power_state() 138 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 139 st->power_state.index, sizeof(state_val), in _hid_sensor_power_state() 154 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 155 st->power_state.index, in _hid_sensor_power_state()
|
D | hid-sensor-attributes.c | 466 &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()
|
/drivers/misc/ |
D | tsl2550.c | 36 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()
|
/drivers/mfd/ |
D | si476x-i2c.c | 275 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()
|
/drivers/iio/light/ |
D | apds9300.c | 49 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()
|
/drivers/media/radio/si4713/ |
D | si4713.c | 354 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 …]
|
/drivers/platform/x86/ |
D | apple-gmux.c | 62 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()
|
/drivers/pnp/pnpacpi/ |
D | core.c | 146 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()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_processpptables.c | 357 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));
|
D | process_pptables_v1_0.h | 31 struct pp_power_state *power_state, int (*call_back_func)(struct pp_hwmgr *, void *,
|
/drivers/hid/ |
D | hid-sensor-custom.c | 47 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()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | fw.c | 221 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()
|
/drivers/gpu/vga/ |
D | vga_switcheroo.c | 676 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()
|
/drivers/thermal/st/ |
D | st_thermal_syscfg.c | 64 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()
|
D | st_thermal_memmap.c | 49 enum st_thermal_power_state power_state) in st_mmap_power_ctrl() argument 52 const unsigned int val = power_state ? mask : 0; in st_mmap_power_ctrl()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | fw.c | 400 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()
|
/drivers/firmware/arm_scmi/ |
D | power.c | 54 __le32 power_state; member 243 r->power_state = le32_to_cpu(p->power_state); in scmi_power_fill_custom_report()
|
/drivers/ide/ |
D | pmac.c | 1222 if (mesg.event != mdev->ofdev.dev.power.power_state.event in pmac_ide_macio_suspend() 1226 mdev->ofdev.dev.power.power_state = mesg; in pmac_ide_macio_suspend() 1238 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_macio_resume() 1241 mdev->ofdev.dev.power.power_state = PMSG_ON; in pmac_ide_macio_resume() 1325 if (mesg.event != pdev->dev.power.power_state.event in pmac_ide_pci_suspend() 1329 pdev->dev.power.power_state = mesg; in pmac_ide_pci_suspend() 1341 if (pdev->dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_pci_resume() 1344 pdev->dev.power.power_state = PMSG_ON; in pmac_ide_pci_resume()
|
/drivers/video/fbdev/ |
D | chipsfb.c | 455 if (state.event == pdev->dev.power.power_state.event) in chipsfb_pci_suspend() 465 pdev->dev.power.power_state = state; in chipsfb_pci_suspend() 478 pdev->dev.power.power_state = PMSG_ON; in chipsfb_pci_resume()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | fw.c | 372 u8 rlbm, power_state = 0; in rtl88e_set_fw_pwrmode_cmd() local 384 power_state |= FW_PWR_STATE_ACTIVE; in rtl88e_set_fw_pwrmode_cmd() 386 power_state |= FW_PWR_STATE_RF_OFF; in rtl88e_set_fw_pwrmode_cmd() 388 set_h2ccmd_pwrmode_parm_pwr_state(u1_h2c_set_pwrmode, power_state); in rtl88e_set_fw_pwrmode_cmd()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_dp.h | 38 u8 power_state);
|
/drivers/macintosh/ |
D | mediabay.c | 619 if (state.event != mdev->ofdev.dev.power.power_state.event in media_bay_suspend() 626 mdev->ofdev.dev.power.power_state = state; in media_bay_suspend() 635 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in media_bay_resume() 636 mdev->ofdev.dev.power.power_state = PMSG_ON; in media_bay_resume()
|