Home
last modified time | relevance | path

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

/drivers/soc/bcm/
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 …]
/drivers/gpio/
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()
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()
/drivers/net/ethernet/broadcom/
Dtg3.c16508 u32 pm_reg; in tg3_get_invariants() local
16518 &pm_reg); in tg3_get_invariants()
16519 pm_reg &= ~PCI_PM_CTRL_STATE_MASK; in tg3_get_invariants()
16520 pm_reg |= PCI_PM_CTRL_PME_ENABLE | 0 /* D0 */; in tg3_get_invariants()
16523 pm_reg); in tg3_get_invariants()