/linux-6.1.9/arch/arm/mach-meson/ |
D | platsmp.c | 312 int ret, power_mode; in meson8_smp_cpu_kill() local 317 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8_smp_cpu_kill() 319 if (power_mode == SCU_PM_POWEROFF) in meson8_smp_cpu_kill() 325 if (power_mode != SCU_PM_POWEROFF) { in meson8_smp_cpu_kill() 356 int ret, power_mode, count = 5000; in meson8b_smp_cpu_kill() local 359 power_mode = scu_get_cpu_power_mode(scu_base, cpu); in meson8b_smp_cpu_kill() 361 if (power_mode == SCU_PM_POWEROFF) in meson8b_smp_cpu_kill() 367 if (power_mode != SCU_PM_POWEROFF) { in meson8b_smp_cpu_kill()
|
/linux-6.1.9/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-6.1.9/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() 386 if (data->power_mode == US5182D_ONESHOT) { in us5182d_read_value() 646 data->power_mode = US5182D_CONTINUOUS; in us5182d_write_event_config() 667 data->power_mode = US5182D_CONTINUOUS; in us5182d_write_event_config() 693 data->power_mode = US5182D_ONESHOT; in us5182d_write_event_config() 734 data->power_mode = US5182D_CONTINUOUS; in us5182d_init() [all …]
|
/linux-6.1.9/include/linux/platform_data/ |
D | mmc-s3cmci.h | 36 void (*set_power)(unsigned char power_mode, 48 extern void s3c24xx_mci_def_set_power(unsigned char power_mode, unsigned short vdd);
|
/linux-6.1.9/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 | mmc_spi.c | 109 unsigned char power_mode; member 1147 static char *mmc_powerstring(u8 power_mode) in mmc_powerstring() argument 1149 switch (power_mode) { in mmc_powerstring() 1161 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios() 1167 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios() 1175 switch (ios->power_mode) { in mmc_spi_set_ios() 1180 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios() 1186 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios() 1198 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios() 1231 host->power_mode = ios->power_mode; in mmc_spi_set_ios()
|
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 | rtsx_usb_sdmmc.c | 50 unsigned char power_mode; member 1017 unsigned char power_mode) in sd_set_power_mode() argument 1021 if (power_mode != MMC_POWER_OFF) in sd_set_power_mode() 1022 power_mode = MMC_POWER_ON; in sd_set_power_mode() 1024 if (power_mode == host->power_mode) in sd_set_power_mode() 1027 if (power_mode == MMC_POWER_OFF) { in sd_set_power_mode() 1036 host->power_mode = power_mode; in sd_set_power_mode() 1110 sd_set_power_mode(host, ios->power_mode); in sdmmc_set_ios() 1284 if (host->power_mode == MMC_POWER_OFF) in rtsx_usb_update_led() 1321 host->power_mode = MMC_POWER_OFF; in rtsx_usb_init_host()
|
D | sdhci-omap.c | 116 u8 power_mode; member 628 u8 power_mode) in sdhci_omap_set_power_mode() argument 632 omap_host->power_mode = power_mode; in sdhci_omap_set_power_mode() 665 sdhci_omap_set_power_mode(omap_host, ios->power_mode); in sdhci_omap_set_ios() 781 static void sdhci_omap_init_74_clocks(struct sdhci_host *host, u8 power_mode) in sdhci_omap_init_74_clocks() argument 788 if (omap_host->power_mode == power_mode) in sdhci_omap_init_74_clocks() 791 if (power_mode != MMC_POWER_ON) in sdhci_omap_init_74_clocks() 1249 omap_host->power_mode = MMC_POWER_UNDEFINED; in sdhci_omap_probe()
|
D | mxcmmc.c | 130 unsigned int power_mode; member 223 if (host->power_mode == MMC_POWER_UP) in mxcmci_set_power() 226 else if (host->power_mode == MMC_POWER_OFF) in mxcmci_set_power() 854 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios() 855 host->power_mode = ios->power_mode; in mxcmci_set_ios() 858 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios()
|
D | sdhci-bcm-kona.c | 166 u8 power_mode) in sdhci_bcm_kona_init_74_clocks() argument 173 if (power_mode != MMC_POWER_OFF) in sdhci_bcm_kona_init_74_clocks()
|
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_drm_drv.c | 132 void hibmc_set_power_mode(struct hibmc_drm_private *priv, u32 power_mode) in hibmc_set_power_mode() argument 138 if (power_mode > HIBMC_PW_MODE_CTL_MODE_SLEEP) in hibmc_set_power_mode() 141 if (power_mode == HIBMC_PW_MODE_CTL_MODE_SLEEP) in hibmc_set_power_mode() 147 control_value |= HIBMC_FIELD(HIBMC_PW_MODE_CTL_MODE, power_mode); in hibmc_set_power_mode()
|
D | hibmc_drm_drv.h | 58 u32 power_mode);
|
/linux-6.1.9/drivers/staging/sm750fb/ |
D | ddk750_chip.c | 217 if (p_init_param->power_mode != 0) in ddk750_init_hw() 218 p_init_param->power_mode = 0; in ddk750_init_hw() 219 sm750_set_power_mode(p_init_param->power_mode); in ddk750_init_hw()
|
D | ddk750_chip.h | 56 unsigned short power_mode; member
|
/linux-6.1.9/drivers/staging/greybus/ |
D | sdio.c | 593 u8 power_mode; in gb_mmc_set_ios() local 611 switch (ios->power_mode) { in gb_mmc_set_ios() 614 power_mode = GB_SDIO_POWER_OFF; in gb_mmc_set_ios() 617 power_mode = GB_SDIO_POWER_UP; in gb_mmc_set_ios() 620 power_mode = GB_SDIO_POWER_ON; in gb_mmc_set_ios() 623 power_mode = GB_SDIO_POWER_UNDEFINED; in gb_mmc_set_ios() 626 request.power_mode = power_mode; in gb_mmc_set_ios()
|
/linux-6.1.9/drivers/iio/accel/ |
D | bma400_core.c | 104 enum bma400_power_mode power_mode; member 422 if (data->power_mode == POWER_MODE_SLEEP) in bma400_get_temp_reg() 447 if (data->power_mode == POWER_MODE_SLEEP) in bma400_get_accel_reg() 491 switch (data->power_mode) { in bma400_get_accel_output_data_rate() 587 switch (data->power_mode) { in bma400_get_accel_oversampling_ratio() 632 switch (data->power_mode) { in bma400_set_accel_oversampling_ratio() 742 data->power_mode = (val >> 1) & BMA400_TWO_BITS_MASK; in bma400_get_power_mode() 756 if (data->power_mode == mode) in bma400_set_power_mode() 770 data->power_mode = mode; in bma400_set_power_mode() 917 if (data->power_mode != POWER_MODE_NORMAL) { in bma400_init() [all …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/arch/arm/mach-s3c/ |
D | mach-n30.c | 373 static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd) in n30_sdi_set_power() argument 375 s3c24xx_mci_def_set_power(power_mode, vdd); in n30_sdi_set_power() 377 switch (power_mode) { in n30_sdi_set_power()
|
/linux-6.1.9/drivers/media/dvb-frontends/ |
D | mxl692.c | 27 enum MXL_EAGLE_POWER_MODE_E power_mode; member 829 enum MXL_EAGLE_POWER_MODE_E power_mode) in mxl692_powermode() argument 832 u8 mode = power_mode; in mxl692_powermode() 835 power_mode == MXL_EAGLE_POWER_MODE_SLEEP ? "sleep" : "active"); in mxl692_powermode() 848 dev->power_mode = power_mode; in mxl692_powermode() 905 dev->power_mode = MXL_EAGLE_POWER_MODE_SLEEP; in mxl692_init() 908 if (dev->power_mode != MXL_EAGLE_POWER_MODE_ACTIVE) { in mxl692_init() 939 if (dev->power_mode != MXL_EAGLE_POWER_MODE_SLEEP) in mxl692_sleep()
|
/linux-6.1.9/drivers/mmc/core/ |
D | debugfs.c | 101 switch (ios->power_mode) { in mmc_ios_show() 115 seq_printf(s, "power mode:\t%u (%s)\n", ios->power_mode, str); in mmc_ios_show()
|
/linux-6.1.9/include/linux/input/ |
D | adxl34x.h | 243 u8 power_mode; member
|
/linux-6.1.9/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"); 689 power_mode = 0; in one_time_init() 1201 if (!power_mode) in cpqhpc_probe() 1211 if (!power_mode) { in cpqhpc_probe()
|