| /Linux-v5.4/arch/arm/mach-meson/ |
| D | platsmp.c | 310 int ret, power_mode; in meson8_smp_cpu_kill() local 315 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8_smp_cpu_kill() 317 if (power_mode == SCU_PM_POWEROFF) in meson8_smp_cpu_kill() 323 if (power_mode != SCU_PM_POWEROFF) { in meson8_smp_cpu_kill() 354 int ret, power_mode, count = 5000; in meson8b_smp_cpu_kill() local 357 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8b_smp_cpu_kill() 359 if (power_mode == SCU_PM_POWEROFF) in meson8b_smp_cpu_kill() 365 if (power_mode != SCU_PM_POWEROFF) { in meson8b_smp_cpu_kill()
|
| /Linux-v5.4/drivers/input/mouse/ |
| D | cyapa_gen6.c | 320 static int cyapa_gen6_change_power_state(struct cyapa *cyapa, u8 power_mode) in cyapa_gen6_change_power_state() argument 322 u8 cmd[] = { 0x04, 0x00, 0x06, 0x00, 0x2f, 0x00, 0x46, power_mode }; in cyapa_gen6_change_power_state() 335 if (resp_data[5] != power_mode) in cyapa_gen6_change_power_state() 428 u8 power_mode, u16 sleep_time, enum cyapa_pm_stage pm_stage) in cyapa_gen6_set_power_mode() argument 452 if (PIP_DEV_GET_PWR_STATE(cyapa) == power_mode) { in cyapa_gen6_set_power_mode() 453 if (power_mode == PWR_MODE_OFF || in cyapa_gen6_set_power_mode() 454 power_mode == PWR_MODE_FULL_ACTIVE || in cyapa_gen6_set_power_mode() 455 power_mode == PWR_MODE_BTN_ONLY || in cyapa_gen6_set_power_mode() 462 if (power_mode == PWR_MODE_OFF) { in cyapa_gen6_set_power_mode() 494 if (power_mode == PWR_MODE_FULL_ACTIVE) { in cyapa_gen6_set_power_mode() [all …]
|
| /Linux-v5.4/drivers/iio/light/ |
| D | us5182d.c | 136 u8 power_mode; member 255 if (data->power_mode == US5182D_ONESHOT) { in us5182d_als_enable() 281 if (data->power_mode == US5182D_ONESHOT) { in us5182d_px_enable() 339 if (data->power_mode == US5182D_ONESHOT) in us5182d_shutdown_en() 366 if (data->power_mode == US5182D_ONESHOT) in us5182d_set_power_state() 388 if (data->power_mode == US5182D_ONESHOT) { in us5182d_read_value() 648 data->power_mode = US5182D_CONTINUOUS; in us5182d_write_event_config() 669 data->power_mode = US5182D_CONTINUOUS; in us5182d_write_event_config() 695 data->power_mode = US5182D_ONESHOT; in us5182d_write_event_config() 736 data->power_mode = US5182D_CONTINUOUS; in us5182d_init() [all …]
|
| /Linux-v5.4/drivers/mmc/host/ |
| D | sdhci-pxav3.c | 52 u8 power_mode; member 191 static void pxav3_gen_init_74_clocks(struct sdhci_host *host, u8 power_mode) in pxav3_gen_init_74_clocks() argument 198 if (pxa->power_mode == MMC_POWER_UP in pxav3_gen_init_74_clocks() 199 && power_mode == MMC_POWER_ON) { in pxav3_gen_init_74_clocks() 205 pxa->power_mode, in pxav3_gen_init_74_clocks() 206 power_mode); in pxav3_gen_init_74_clocks() 237 pxa->power_mode = power_mode; in pxav3_gen_init_74_clocks()
|
| D | pxamci.c | 60 unsigned int power_mode; member 97 unsigned char power_mode, in pxamci_set_power() argument 481 if (host->power_mode != ios->power_mode) { in pxamci_set_ios() 484 host->power_mode = ios->power_mode; in pxamci_set_ios() 486 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios() 498 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios()
|
| D | mmc_spi.c | 115 unsigned char power_mode; member 1156 static char *mmc_powerstring(u8 power_mode) in mmc_powerstring() argument 1158 switch (power_mode) { in mmc_powerstring() 1170 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios() 1176 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios() 1184 switch (ios->power_mode) { in mmc_spi_set_ios() 1189 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios() 1195 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios() 1207 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios() 1240 host->power_mode = ios->power_mode; in mmc_spi_set_ios()
|
| D | sdhci-omap.c | 102 u8 power_mode; member 585 u8 power_mode) in sdhci_omap_set_power_mode() argument 589 omap_host->power_mode = power_mode; in sdhci_omap_set_power_mode() 622 sdhci_omap_set_power_mode(omap_host, ios->power_mode); in sdhci_omap_set_ios() 717 static void sdhci_omap_init_74_clocks(struct sdhci_host *host, u8 power_mode) in sdhci_omap_init_74_clocks() argument 724 if (omap_host->power_mode == power_mode) in sdhci_omap_init_74_clocks() 727 if (power_mode != MMC_POWER_ON) in sdhci_omap_init_74_clocks() 1064 omap_host->power_mode = MMC_POWER_UNDEFINED; in sdhci_omap_probe()
|
| D | rtsx_usb_sdmmc.c | 50 unsigned char power_mode; member 1023 unsigned char power_mode) in sd_set_power_mode() argument 1027 if (power_mode != MMC_POWER_OFF) in sd_set_power_mode() 1028 power_mode = MMC_POWER_ON; in sd_set_power_mode() 1030 if (power_mode == host->power_mode) in sd_set_power_mode() 1033 if (power_mode == MMC_POWER_OFF) { in sd_set_power_mode() 1042 host->power_mode = power_mode; in sd_set_power_mode() 1119 sd_set_power_mode(host, ios->power_mode); in sdmmc_set_ios() 1293 if (host->power_mode == MMC_POWER_OFF) in rtsx_usb_update_led() 1330 host->power_mode = MMC_POWER_OFF; in rtsx_usb_init_host()
|
| D | mmci_stm32_sdmmc.c | 200 if (host->mmc->ios.power_mode == MMC_POWER_ON) in mmci_sdmmc_set_clkreg() 235 if (ios.power_mode == MMC_POWER_OFF) { in mmci_sdmmc_set_pwrreg() 248 } else if (ios.power_mode == MMC_POWER_ON) { in mmci_sdmmc_set_pwrreg()
|
| D | mxcmmc.c | 130 unsigned int power_mode; member 239 if (host->power_mode == MMC_POWER_UP) in mxcmci_set_power() 242 else if (host->power_mode == MMC_POWER_OFF) in mxcmci_set_power() 870 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios() 871 host->power_mode = ios->power_mode; in mxcmci_set_ios() 874 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios()
|
| D | sdhci-bcm-kona.c | 176 u8 power_mode) in sdhci_bcm_kona_init_74_clocks() argument 183 if (power_mode != MMC_POWER_OFF) in sdhci_bcm_kona_init_74_clocks()
|
| D | omap.c | 104 u16 power_mode; member 1169 switch (ios->power_mode) { in mmc_omap_set_ios() 1176 slot->power_mode = ios->power_mode; in mmc_omap_set_ios() 1182 if (slot->power_mode != MMC_POWER_ON) in mmc_omap_set_ios() 1186 slot->power_mode = ios->power_mode; in mmc_omap_set_ios() 1240 slot->power_mode = MMC_POWER_UNDEFINED; in mmc_omap_new_slot()
|
| D | ushc.c | 321 static int ushc_set_power(struct ushc_data *ushc, unsigned char power_mode) in ushc_set_power() argument 325 switch (power_mode) { in ushc_set_power() 375 ushc_set_power(ushc, ios->power_mode); in ushc_set_ios()
|
| /Linux-v5.4/drivers/gpu/drm/hisilicon/hibmc/ |
| D | hibmc_drm_drv.c | 131 unsigned int power_mode) in hibmc_set_power_mode() argument 137 if (power_mode > HIBMC_PW_MODE_CTL_MODE_SLEEP) in hibmc_set_power_mode() 140 if (power_mode == HIBMC_PW_MODE_CTL_MODE_SLEEP) in hibmc_set_power_mode() 146 control_value |= HIBMC_FIELD(HIBMC_PW_MODE_CTL_MODE, power_mode); in hibmc_set_power_mode()
|
| D | hibmc_drm_drv.h | 53 unsigned int power_mode);
|
| /Linux-v5.4/drivers/regulator/ |
| D | max77620-regulator.c | 208 int power_mode, int id) in max77620_regulator_set_power_mode() argument 225 ret = regmap_update_bits(pmic->rmap, addr, mask, power_mode << shift); in max77620_regulator_set_power_mode() 231 pmic->current_power_mode[id] = power_mode; in max77620_regulator_set_power_mode() 493 int power_mode; in max77620_regulator_set_mode() local 500 power_mode = MAX77620_POWER_MODE_NORMAL; in max77620_regulator_set_mode() 504 power_mode = MAX77620_POWER_MODE_NORMAL; in max77620_regulator_set_mode() 508 power_mode = MAX77620_POWER_MODE_LPM; in max77620_regulator_set_mode() 531 ret = max77620_regulator_set_power_mode(pmic, power_mode, id); in max77620_regulator_set_mode() 535 pmic->enable_power_mode[id] = power_mode; in max77620_regulator_set_mode()
|
| /Linux-v5.4/drivers/staging/greybus/ |
| D | sdio.c | 591 u8 power_mode; in gb_mmc_set_ios() local 609 switch (ios->power_mode) { in gb_mmc_set_ios() 612 power_mode = GB_SDIO_POWER_OFF; in gb_mmc_set_ios() 615 power_mode = GB_SDIO_POWER_UP; in gb_mmc_set_ios() 618 power_mode = GB_SDIO_POWER_ON; in gb_mmc_set_ios() 621 power_mode = GB_SDIO_POWER_UNDEFINED; in gb_mmc_set_ios() 624 request.power_mode = power_mode; in gb_mmc_set_ios()
|
| /Linux-v5.4/include/linux/platform_data/ |
| D | mmc-s3cmci.h | 36 void (*set_power)(unsigned char power_mode,
|
| /Linux-v5.4/drivers/input/misc/ |
| D | adxl34x.c | 233 .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK, 412 AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); in __adxl34x_enable() 570 ac->pdata.power_mode & (PCTL_AUTO_SLEEP | PCTL_LINK) ? 1 : 0); in adxl34x_autosleep_show() 588 ac->pdata.power_mode |= (PCTL_AUTO_SLEEP | PCTL_LINK); in adxl34x_autosleep_store() 590 ac->pdata.power_mode &= ~(PCTL_AUTO_SLEEP | PCTL_LINK); in adxl34x_autosleep_store() 593 AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); in adxl34x_autosleep_store() 883 ac->pdata.power_mode &= (PCTL_AUTO_SLEEP | PCTL_LINK); in adxl34x_probe()
|
| /Linux-v5.4/drivers/memstick/host/ |
| D | rtsx_usb_ms.c | 36 int power_mode; member 572 if (value == host->power_mode) in rtsx_usb_ms_set_param() 587 host->power_mode = value; in rtsx_usb_ms_set_param() 690 if (host->msh->card || host->power_mode != MEMSTICK_POWER_OFF) in rtsx_usb_ms_runtime_suspend() 724 if (host->eject || host->power_mode != MEMSTICK_POWER_ON) in rtsx_usb_ms_poll_card() 752 if (!host->eject && host->power_mode == MEMSTICK_POWER_ON) in rtsx_usb_ms_poll_card() 778 host->power_mode = MEMSTICK_POWER_OFF; in rtsx_usb_ms_drv_probe()
|
| /Linux-v5.4/drivers/mmc/core/ |
| D | debugfs.c | 100 switch (ios->power_mode) { in mmc_ios_show() 114 seq_printf(s, "power mode:\t%u (%s)\n", ios->power_mode, str); in mmc_ios_show()
|
| /Linux-v5.4/drivers/iio/adc/ |
| D | ad7124.c | 510 unsigned int val, fclk, power_mode; in ad7124_setup() local 518 power_mode = ad7124_find_closest_match(ad7124_master_clk_freq_hz, in ad7124_setup() 521 if (fclk != ad7124_master_clk_freq_hz[power_mode]) { in ad7124_setup() 529 st->adc_control |= AD7124_ADC_CTRL_PWR(power_mode); in ad7124_setup()
|
| /Linux-v5.4/include/linux/input/ |
| D | adxl34x.h | 243 u8 power_mode; member
|
| /Linux-v5.4/arch/arm/mach-s3c24xx/ |
| D | mach-n30.c | 339 static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd) in n30_sdi_set_power() argument 341 switch (power_mode) { in n30_sdi_set_power()
|
| /Linux-v5.4/drivers/pci/hotplug/ |
| D | cpqphp_core.c | 46 static bool power_mode; variable 58 module_param(power_mode, bool, 0644); 59 MODULE_PARM_DESC(power_mode, "Power mode enabled or not"); 688 power_mode = 0; in one_time_init() 1200 if (!power_mode) in cpqhpc_probe() 1210 if (!power_mode) { in cpqhpc_probe()
|