Home
last modified time | relevance | path

Searched refs:pm_reg (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/soc/bcm/
Dbcm2835-power.c191 static int bcm2835_power_power_off(struct bcm2835_power_domain *pd, u32 pm_reg) in bcm2835_power_power_off() argument
196 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISFUNC); in bcm2835_power_power_off()
199 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISPOW); in bcm2835_power_power_off()
202 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_POWUP); in bcm2835_power_power_off()
207 static int bcm2835_power_power_on(struct bcm2835_power_domain *pd, u32 pm_reg) in bcm2835_power_power_on() argument
217 if (PM_READ(pm_reg) & PM_POWUP) in bcm2835_power_power_on()
226 PM_WRITE(pm_reg, in bcm2835_power_power_on()
227 (PM_READ(pm_reg) & ~PM_INRUSH_MASK) | in bcm2835_power_power_on()
232 while (!(powok = !!(PM_READ(pm_reg) & PM_POWOK))) { in bcm2835_power_power_on()
246 PM_WRITE(pm_reg, PM_READ(pm_reg) | PM_ISPOW); in bcm2835_power_power_on()
[all …]
/Linux-v5.10/drivers/gpio/
Dgpio-pch.c68 u32 pm_reg; member
173 chip->pch_gpio_reg.pm_reg = ioread32(&chip->reg->pm); in pch_gpio_save_reg_conf()
191 iowrite32(chip->pch_gpio_reg.pm_reg, &chip->reg->pm); in pch_gpio_restore_reg_conf()
Dgpio-ml-ioh.c59 u32 pm_reg; member
169 chip->ioh_gpio_reg.pm_reg = in ioh_gpio_save_reg_conf()
195 iowrite32(chip->ioh_gpio_reg.pm_reg, in ioh_gpio_restore_reg_conf()
/Linux-v5.10/sound/isa/
Des18xx.c119 unsigned char pm_reg; member
1704 chip->pm_reg = (unsigned char)snd_es18xx_read(chip, ES18XX_PM); in snd_es18xx_suspend()
1705 chip->pm_reg |= (ES18XX_PM_FM | ES18XX_PM_SUS); in snd_es18xx_suspend()
1706 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg); in snd_es18xx_suspend()
1707 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg ^= ES18XX_PM_SUS); in snd_es18xx_suspend()
1717 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg ^= ES18XX_PM_FM); in snd_es18xx_resume()
/Linux-v5.10/drivers/net/ethernet/broadcom/
Dtg3.c16539 u32 pm_reg; in tg3_get_invariants() local
16549 &pm_reg); in tg3_get_invariants()
16550 pm_reg &= ~PCI_PM_CTRL_STATE_MASK; in tg3_get_invariants()
16551 pm_reg |= PCI_PM_CTRL_PME_ENABLE | 0 /* D0 */; in tg3_get_invariants()
16554 pm_reg); in tg3_get_invariants()