Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpio-mlxbf.c46 struct mlxbf_gpio_context_save_regs csave_regs; member
95 gs->csave_regs.scratchpad = readq(gs->base + MLXBF_GPIO_SCRATCHPAD); in mlxbf_gpio_suspend()
96 gs->csave_regs.pad_control[0] = in mlxbf_gpio_suspend()
98 gs->csave_regs.pad_control[1] = in mlxbf_gpio_suspend()
100 gs->csave_regs.pad_control[2] = in mlxbf_gpio_suspend()
102 gs->csave_regs.pad_control[3] = in mlxbf_gpio_suspend()
104 gs->csave_regs.pin_dir_i = readq(gs->base + MLXBF_GPIO_PIN_DIR_I); in mlxbf_gpio_suspend()
105 gs->csave_regs.pin_dir_o = readq(gs->base + MLXBF_GPIO_PIN_DIR_O); in mlxbf_gpio_suspend()
114 writeq(gs->csave_regs.scratchpad, gs->base + MLXBF_GPIO_SCRATCHPAD); in mlxbf_gpio_resume()
115 writeq(gs->csave_regs.pad_control[0], in mlxbf_gpio_resume()
[all …]
Dgpio-pl061.c59 struct pl061_context_save_regs csave_regs; member
359 pl061->csave_regs.gpio_data = 0; in pl061_suspend()
360 pl061->csave_regs.gpio_dir = readb(pl061->base + GPIODIR); in pl061_suspend()
361 pl061->csave_regs.gpio_is = readb(pl061->base + GPIOIS); in pl061_suspend()
362 pl061->csave_regs.gpio_ibe = readb(pl061->base + GPIOIBE); in pl061_suspend()
363 pl061->csave_regs.gpio_iev = readb(pl061->base + GPIOIEV); in pl061_suspend()
364 pl061->csave_regs.gpio_ie = readb(pl061->base + GPIOIE); in pl061_suspend()
367 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_suspend()
368 pl061->csave_regs.gpio_data |= in pl061_suspend()
381 if (pl061->csave_regs.gpio_dir & (BIT(offset))) in pl061_resume()
[all …]
Dgpio-mlxbf2.c62 struct mlxbf2_gpio_context_save_regs *csave_regs; member
284 gs->csave_regs->gpio_mode0 = readl(gs->gpio_io + in mlxbf2_gpio_suspend()
286 gs->csave_regs->gpio_mode1 = readl(gs->gpio_io + in mlxbf2_gpio_suspend()
296 writel(gs->csave_regs->gpio_mode0, gs->gpio_io + in mlxbf2_gpio_resume()
298 writel(gs->csave_regs->gpio_mode1, gs->gpio_io + in mlxbf2_gpio_resume()
/drivers/pinctrl/spear/
Dpinctrl-plgpio.c75 struct plgpio_regs *csave_regs; member
538 plgpio->csave_regs = devm_kcalloc(&pdev->dev, in plgpio_probe()
540 sizeof(*plgpio->csave_regs), in plgpio_probe()
542 if (!plgpio->csave_regs) in plgpio_probe()
616 plgpio->csave_regs[i].enb = in plgpio_suspend()
619 plgpio->csave_regs[i].eit = in plgpio_suspend()
621 plgpio->csave_regs[i].wdata = readl_relaxed(plgpio->regs.wdata + in plgpio_suspend()
623 plgpio->csave_regs[i].dir = readl_relaxed(plgpio->regs.dir + in plgpio_suspend()
625 plgpio->csave_regs[i].ie = readl_relaxed(plgpio->regs.ie + off); in plgpio_suspend()
641 plgpio->csave_regs[i].__reg = \
[all …]