Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/radeon/
Dradeon_atombios.c1958 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 …]
Dradeon_pm.c58 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 …]
Dradeon_combios.c2714 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/
Dtsl2550.c50 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()
Dbh1780gli.c43 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()
Dhmc6352.c100 static DEVICE_ATTR(power_state, S_IWUSR, NULL, compass_power_mode_store);
/drivers/mfd/
Dsi476x-i2c.c284 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/
Dsi4713-i2c.c358 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 …]
Dsi4713-i2c.h231 u32 power_state; member
/drivers/platform/x86/
Dapple-gmux.c40 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/
Dhid-sensor-trigger.c41 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()
Dhid-sensor-attributes.c230 &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/
Dcore.c176 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/
Ddevice_pm.c698 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/
Dvga_switcheroo.c280 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/
Dpmac.c1235 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/
Dchipsfb.c457 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()
Dfb-puv3.c746 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/
Dmediabay.c623 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/
Dfw.c459 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/
Dsep_dev.h81 u32 power_state; member
/drivers/usb/host/
Dohci-da8xx.c421 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/
Dtechnisat-usb2.c60 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/
Drtsx_pci_sdmmc.c60 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/
Dcryp.h243 bool power_state; member

123