Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pmdomain/bcm/
H A Dbcm2835-power.c197 static int bcm2835_power_power_off(struct bcm2835_power_domain *pd, u32 pm_reg) in bcm2835_power_power_off() argument
206 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISFUNC); in bcm2835_power_power_off()
209 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISPOW); in bcm2835_power_power_off()
212 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_POWUP); in bcm2835_power_power_off()
217 static int bcm2835_power_power_on(struct bcm2835_power_domain *pd, u32 pm_reg) in bcm2835_power_power_on() argument
231 if (PM_READ(pm_reg) & PM_POWUP) in bcm2835_power_power_on()
240 PM_WRITE(pm_reg, in bcm2835_power_power_on()
241 (PM_READ(pm_reg) & ~PM_INRUSH_MASK) | in bcm2835_power_power_on()
246 while (!(powok = !!(PM_READ(pm_reg) & PM_POWOK))) { in bcm2835_power_power_on()
260 PM_WRITE(pm_reg, PM_READ(pm_reg) | PM_ISPOW); in bcm2835_power_power_on()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-pch.c73 u32 pm_reg; member
178 chip->pch_gpio_reg.pm_reg = ioread32(&chip->reg->pm); in pch_gpio_save_reg_conf()
196 iowrite32(chip->pch_gpio_reg.pm_reg, &chip->reg->pm); in pch_gpio_restore_reg_conf()
H A Dgpio-ml-ioh.c59 u32 pm_reg; member
168 chip->ioh_gpio_reg.pm_reg = in ioh_gpio_save_reg_conf()
194 iowrite32(chip->ioh_gpio_reg.pm_reg, in ioh_gpio_restore_reg_conf()
/openbmc/linux/sound/isa/
H A Des18xx.c116 unsigned char pm_reg; member
1700 chip->pm_reg = (unsigned char)snd_es18xx_read(chip, ES18XX_PM); in snd_es18xx_suspend()
1701 chip->pm_reg |= (ES18XX_PM_FM | ES18XX_PM_SUS); in snd_es18xx_suspend()
1702 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg); in snd_es18xx_suspend()
1703 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg ^= ES18XX_PM_SUS); in snd_es18xx_suspend()
1713 snd_es18xx_write(chip, ES18XX_PM, chip->pm_reg ^= ES18XX_PM_FM); in snd_es18xx_resume()
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c16503 u32 pm_reg; in tg3_get_invariants() local
16513 &pm_reg); in tg3_get_invariants()
16514 pm_reg &= ~PCI_PM_CTRL_STATE_MASK; in tg3_get_invariants()
16515 pm_reg |= PCI_PM_CTRL_PME_ENABLE | 0 /* D0 */; in tg3_get_invariants()
16518 pm_reg); in tg3_get_invariants()