/drivers/gpu/drm/radeon/ |
D | radeon_atombios.c | 1958 rdev->pm.power_state[state_index].misc = misc; in radeon_atombios_parse_misc_flags_1_3() 1959 rdev->pm.power_state[state_index].misc2 = misc2; in radeon_atombios_parse_misc_flags_1_3() 1962 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1965 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1968 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1971 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1974 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1976 rdev->pm.power_state[state_index].flags &= in radeon_atombios_parse_misc_flags_1_3() 1980 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() 1983 rdev->pm.power_state[state_index].type = in radeon_atombios_parse_misc_flags_1_3() [all …]
|
D | radeon_pm.c | 58 if (rdev->pm.power_state[i].type == ps_type) { in radeon_pm_get_type_index() 165 sclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state() 179 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state() 182 mclk = rdev->pm.power_state[rdev->pm.requested_power_state_index]. in radeon_set_power_state() 301 struct radeon_power_state *power_state; in radeon_pm_print_states() local 306 power_state = &rdev->pm.power_state[i]; in radeon_pm_print_states() 308 radeon_pm_state_type_name[power_state->type]); in radeon_pm_print_states() 312 DRM_DEBUG_DRIVER("\t%d PCIE Lanes\n", power_state->pcie_lanes); in radeon_pm_print_states() 313 if (power_state->flags & RADEON_PM_STATE_SINGLE_DISPLAY_ONLY) in radeon_pm_print_states() 315 DRM_DEBUG_DRIVER("\t%d Clock Mode(s)\n", power_state->num_clock_modes); in radeon_pm_print_states() [all …]
|
D | radeon_combios.c | 2714 rdev->pm.power_state = kzalloc(sizeof(struct radeon_power_state) * 2, GFP_KERNEL); in radeon_combios_get_power_modes() 2715 if (rdev->pm.power_state) { in radeon_combios_get_power_modes() 2717 rdev->pm.power_state[0].clock_info = in radeon_combios_get_power_modes() 2719 rdev->pm.power_state[1].clock_info = in radeon_combios_get_power_modes() 2721 if (!rdev->pm.power_state[0].clock_info || in radeon_combios_get_power_modes() 2722 !rdev->pm.power_state[1].clock_info) in radeon_combios_get_power_modes() 2799 rdev->pm.power_state[state_index].num_clock_modes = 1; in radeon_combios_get_power_modes() 2800 rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); in radeon_combios_get_power_modes() 2801 rdev->pm.power_state[state_index].clock_info[0].sclk = RBIOS32(offset + 0x5 + 0x6); in radeon_combios_get_power_modes() 2802 if ((rdev->pm.power_state[state_index].clock_info[0].mclk == 0) || in radeon_combios_get_power_modes() [all …]
|
/drivers/misc/ |
D | tsl2550.c | 50 unsigned int power_state:1; member 91 data->power_state = state; in tsl2550_set_power_state() 196 return sprintf(buf, "%u\n", data->power_state); in tsl2550_show_power_state() 220 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO, 242 if (data->power_state == 0) in tsl2550_store_operating_mode() 292 if (!data->power_state) in tsl2550_show_lux1_input() 334 data->power_state = 1; in tsl2550_init_client()
|
D | bh1780gli.c | 43 int power_state; member 126 ddata->power_state = val; in bh1780_store_power_state() 134 static DEVICE_ATTR(power_state, S_IWUSR | S_IRUGO, 211 ddata->power_state = state & BH1780_POWMASK; in bh1780_suspend() 229 state = ddata->power_state; in bh1780_resume()
|
D | hmc6352.c | 100 static DEVICE_ATTR(power_state, S_IWUSR, NULL, compass_power_mode_store);
|
/drivers/mfd/ |
D | si476x-i2c.c | 284 if (core->power_state == SI476X_POWER_INCONSISTENT) { in si476x_core_set_power_state() 290 if (next_state != core->power_state) { in si476x_core_set_power_state() 296 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state() 310 core->power_state = next_state; in si476x_core_set_power_state() 314 core->power_state = next_state; in si476x_core_set_power_state() 317 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state() 322 core->power_state = SI476X_POWER_INCONSISTENT; in si476x_core_set_power_state() 686 return core->power_state == SI476X_POWER_UP_FULL; in si476x_core_is_powered_up() 719 core->power_state = SI476X_POWER_DOWN; in si476x_core_probe()
|
/drivers/media/radio/ |
D | si4713-i2c.c | 358 if (sdev->power_state) in si4713_powerup() 381 sdev->power_state = POWER_ON; in si4713_powerup() 407 if (!sdev->power_state) in si4713_powerdown() 426 sdev->power_state = POWER_OFF; in si4713_powerdown() 768 if (sdev->power_state) in si4713_set_mute() 784 if (sdev->power_state) { in si4713_set_rds_ps_name() 822 if (!sdev->power_state) in si4713_set_rds_radio_text() 1068 if (!sdev->power_state) in si4713_s_ctrl() 1154 if (sdev->power_state) { in si4713_ioctl() 1195 if (sdev->power_state) { in si4713_g_modulator() [all …]
|
D | si4713-i2c.h | 231 u32 power_state; member
|
/drivers/platform/x86/ |
D | apple-gmux.c | 40 enum vga_switcheroo_state power_state; member 304 gmux_data->power_state = state; in gmux_set_discrete_state() 349 .power_state = gmux_set_power_state, 409 if (gmux_data->power_state == VGA_SWITCHEROO_OFF) in gmux_resume() 410 gmux_set_discrete_state(gmux_data, gmux_data->power_state); in gmux_resume() 516 gmux_data->power_state = VGA_SWITCHEROO_ON; in gmux_probe()
|
/drivers/iio/common/hid-sensors/ |
D | hid-sensor-trigger.c | 41 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in hid_sensor_data_rdy_trigger_set_state() 42 st->power_state.index, in hid_sensor_data_rdy_trigger_set_state()
|
D | hid-sensor-attributes.c | 230 &st->power_state); in hid_sensor_parse_common_attributes() 240 st->power_state.index, st->power_state.report_id, in hid_sensor_parse_common_attributes()
|
/drivers/pnp/pnpacpi/ |
D | core.c | 176 int power_state = acpi_pm_device_sleep_state(&dev->dev, NULL, in pnpacpi_suspend() local 178 if (power_state < 0) in pnpacpi_suspend() 179 power_state = (state.event == PM_EVENT_ON) ? in pnpacpi_suspend() 188 error = acpi_bus_set_power(handle, power_state); in pnpacpi_suspend()
|
/drivers/acpi/ |
D | device_pm.c | 698 int power_state; in acpi_dev_pm_low_power() local 703 power_state = acpi_device_power_state(dev, adev, system_state, in acpi_dev_pm_low_power() 705 if (power_state < ACPI_STATE_D0 || power_state > ACPI_STATE_D3) in acpi_dev_pm_low_power() 708 return acpi_device_set_power(adev, power_state); in acpi_dev_pm_low_power()
|
/drivers/gpu/vga/ |
D | vga_switcheroo.c | 280 if (vgasr_priv.handler->power_state) in vga_switchon() 281 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_ON); in vga_switchon() 292 if (vgasr_priv.handler->power_state) in vga_switchoff() 293 vgasr_priv.handler->power_state(client->id, VGA_SWITCHEROO_OFF); in vga_switchoff()
|
/drivers/ide/ |
D | pmac.c | 1235 if (mesg.event != mdev->ofdev.dev.power.power_state.event in pmac_ide_macio_suspend() 1239 mdev->ofdev.dev.power.power_state = mesg; in pmac_ide_macio_suspend() 1252 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_macio_resume() 1255 mdev->ofdev.dev.power.power_state = PMSG_ON; in pmac_ide_macio_resume() 1340 if (mesg.event != pdev->dev.power.power_state.event in pmac_ide_pci_suspend() 1344 pdev->dev.power.power_state = mesg; in pmac_ide_pci_suspend() 1356 if (pdev->dev.power.power_state.event != PM_EVENT_ON) { in pmac_ide_pci_resume() 1359 pdev->dev.power.power_state = PMSG_ON; in pmac_ide_pci_resume()
|
/drivers/video/ |
D | chipsfb.c | 457 if (state.event == pdev->dev.power.power_state.event) in chipsfb_pci_suspend() 467 pdev->dev.power.power_state = state; in chipsfb_pci_suspend() 480 pdev->dev.power.power_state = PMSG_ON; in chipsfb_pci_resume()
|
D | fb-puv3.c | 746 if (dev->dev.power.power_state.event == PM_EVENT_ON) in unifb_resume() 751 if (dev->dev.power.power_state.event == PM_EVENT_SUSPEND) { in unifb_resume() 763 dev->dev.power.power_state = PMSG_ON; in unifb_resume() 785 if (mesg.event == dev->dev.power.power_state.event) in unifb_suspend() 801 dev->dev.power.power_state = mesg; in unifb_suspend()
|
/drivers/macintosh/ |
D | mediabay.c | 623 if (state.event != mdev->ofdev.dev.power.power_state.event in media_bay_suspend() 630 mdev->ofdev.dev.power.power_state = state; in media_bay_suspend() 639 if (mdev->ofdev.dev.power.power_state.event != PM_EVENT_ON) { in media_bay_resume() 640 mdev->ofdev.dev.power.power_state = PMSG_ON; in media_bay_resume()
|
/drivers/net/wireless/rtlwifi/rtl8188ee/ |
D | fw.c | 459 u8 power_state = 0; in rtl88e_set_fw_pwrmode_cmd() local 471 power_state |= FW_PWR_STATE_ACTIVE; in rtl88e_set_fw_pwrmode_cmd() 473 power_state |= FW_PWR_STATE_RF_OFF; in rtl88e_set_fw_pwrmode_cmd() 474 SET_H2CCMD_PWRMODE_PARM_PWR_STATE(u1_h2c_set_pwrmode, power_state); in rtl88e_set_fw_pwrmode_cmd()
|
/drivers/staging/sep/ |
D | sep_dev.h | 81 u32 power_state; member
|
/drivers/usb/host/ |
D | ohci-da8xx.c | 421 dev->dev.power.power_state = PMSG_SUSPEND; in ohci_da8xx_suspend() 435 dev->dev.power.power_state = PMSG_ON; in ohci_da8xx_resume()
|
/drivers/media/usb/dvb-usb/ |
D | technisat-usb2.c | 60 u8 power_state; member 297 if (state->power_state == 0) in technisat_usb2_green_led_control() 362 state->power_state = level; in technisat_usb2_power_ctrl()
|
/drivers/mmc/host/ |
D | rtsx_pci_sdmmc.c | 60 int power_state; member 771 if (host->power_state == SDMMC_POWER_ON) in sd_power_on() 796 host->power_state = SDMMC_POWER_ON; in sd_power_on() 805 host->power_state = SDMMC_POWER_OFF; in sd_power_off() 1272 host->power_state = SDMMC_POWER_OFF; in rtsx_pci_sdmmc_drv_probe()
|
/drivers/crypto/ux500/cryp/ |
D | cryp.h | 243 bool power_state; member
|