Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpio-altera.c40 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_unmask() local
45 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask()
48 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
51 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
58 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local
63 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask()
66 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
69 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
108 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local
110 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get()
[all …]
Dgpio-mpc5200.c46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() local
47 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_get()
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() local
62 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in __mpc52xx_wkup_gpio_set()
88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() local
90 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_in()
111 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() local
112 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_out()
210 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get() local
211 struct mpc52xx_gpio __iomem *regs = mm_gc->regs; in mpc52xx_simple_gpio_get()
[all …]
Dgpiolib-of.c815 struct of_mm_gpio_chip *mm_gc, in of_mm_gpiochip_add_data() argument
819 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add_data()
825 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add_data()
826 if (!mm_gc->regs) in of_mm_gpiochip_add_data()
831 if (mm_gc->save_regs) in of_mm_gpiochip_add_data()
832 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add_data()
834 of_node_put(mm_gc->gc.of_node); in of_mm_gpiochip_add_data()
835 mm_gc->gc.of_node = of_node_get(np); in of_mm_gpiochip_add_data()
844 iounmap(mm_gc->regs); in of_mm_gpiochip_add_data()
857 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument
[all …]
Dgpio-mm-lantiq.c90 static void ltq_mm_save_regs(struct of_mm_gpio_chip *mm_gc) in ltq_mm_save_regs() argument
93 container_of(mm_gc, struct ltq_mm, mmchip); in ltq_mm_save_regs()
/drivers/soc/fsl/qe/
Dgpio.c25 struct of_mm_gpio_chip mm_gc; member
38 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in qe_gpio_save_regs() argument
41 container_of(mm_gc, struct qe_gpio_chip, mm_gc); in qe_gpio_save_regs()
42 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_save_regs()
55 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_get() local
56 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_get()
64 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set() local
66 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_set()
85 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set_multiple() local
87 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_set_multiple()
[all …]