Lines Matching refs:gpw

38 	struct gemini_powercon *gpw = data;  in gemini_powerbutton_interrupt()  local
42 val = readl(gpw->base + GEMINI_PWC_CTRLREG); in gemini_powerbutton_interrupt()
44 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_powerbutton_interrupt()
46 val = readl(gpw->base + GEMINI_PWC_STATREG); in gemini_powerbutton_interrupt()
55 dev_info(gpw->dev, "infrared poweroff - ignored\n"); in gemini_powerbutton_interrupt()
58 dev_info(gpw->dev, "RTC poweroff\n"); in gemini_powerbutton_interrupt()
62 dev_info(gpw->dev, "poweroff button pressed\n"); in gemini_powerbutton_interrupt()
66 dev_info(gpw->dev, "other power management IRQ\n"); in gemini_powerbutton_interrupt()
78 struct gemini_powercon *gpw = gpw_poweroff; in gemini_poweroff() local
81 dev_crit(gpw->dev, "Gemini power off\n"); in gemini_poweroff()
82 val = readl(gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff()
84 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff()
88 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff()
95 struct gemini_powercon *gpw; in gemini_poweroff_probe() local
100 gpw = devm_kzalloc(dev, sizeof(*gpw), GFP_KERNEL); in gemini_poweroff_probe()
101 if (!gpw) in gemini_poweroff_probe()
105 gpw->base = devm_ioremap_resource(dev, res); in gemini_poweroff_probe()
106 if (IS_ERR(gpw->base)) in gemini_poweroff_probe()
107 return PTR_ERR(gpw->base); in gemini_poweroff_probe()
113 gpw->dev = dev; in gemini_poweroff_probe()
115 val = readl(gpw->base + GEMINI_PWC_IDREG); in gemini_poweroff_probe()
129 val = readl(gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
131 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
134 val = readl(gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
136 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
139 val = readl(gpw->base + GEMINI_PWC_STATREG); in gemini_poweroff_probe()
141 val = readl(gpw->base + GEMINI_PWC_STATREG); in gemini_poweroff_probe()
144 val = readl(gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
146 writel(val, gpw->base + GEMINI_PWC_CTRLREG); in gemini_poweroff_probe()
149 "poweroff", gpw); in gemini_poweroff_probe()
154 gpw_poweroff = gpw; in gemini_poweroff_probe()