Home
last modified time | relevance | path

Searched refs:power_mode (Results 1 – 25 of 104) sorted by relevance

12345

/Linux-v5.4/arch/arm/mach-meson/
Dplatsmp.c310 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/
Dcyapa_gen6.c320 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/
Dus5182d.c136 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/
Dsdhci-pxav3.c52 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()
Dpxamci.c60 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()
Dmmc_spi.c115 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()
Dsdhci-omap.c102 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()
Drtsx_usb_sdmmc.c50 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()
Dmmci_stm32_sdmmc.c200 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()
Dmxcmmc.c130 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()
Dsdhci-bcm-kona.c176 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()
Domap.c104 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()
Dushc.c321 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/
Dhibmc_drm_drv.c131 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()
Dhibmc_drm_drv.h53 unsigned int power_mode);
/Linux-v5.4/drivers/regulator/
Dmax77620-regulator.c208 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/
Dsdio.c591 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/
Dmmc-s3cmci.h36 void (*set_power)(unsigned char power_mode,
/Linux-v5.4/drivers/input/misc/
Dadxl34x.c233 .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/
Drtsx_usb_ms.c36 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/
Ddebugfs.c100 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/
Dad7124.c510 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/
Dadxl34x.h243 u8 power_mode; member
/Linux-v5.4/arch/arm/mach-s3c24xx/
Dmach-n30.c339 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/
Dcpqphp_core.c46 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()

12345