Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpio-altera.c53 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_unmask() local
58 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask()
61 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
64 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
71 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local
76 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask()
79 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
82 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
130 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local
132 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get()
[all …]
Dgpio-mpc5200.c59 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() local
60 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_get()
73 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() local
74 struct mpc52xx_gpiochip *chip = container_of(mm_gc, in __mpc52xx_wkup_gpio_set()
76 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in __mpc52xx_wkup_gpio_set()
102 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() local
103 struct mpc52xx_gpiochip *chip = container_of(mm_gc, in mpc52xx_wkup_gpio_dir_in()
105 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_in()
126 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() local
127 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_out()
[all …]
Dgpio-xilinx.c94 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get() local
96 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_get()
99 val = xgpio_readreg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_get()
117 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set() local
119 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_set()
131 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_set()
149 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in() local
151 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_dir_in()
159 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET + in xgpio_dir_in()
182 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out() local
[all …]
Dgpio-mpc8xxx.c34 struct of_mm_gpio_chip mm_gc; member
55 return container_of(mm, struct mpc8xxx_gpio_chip, mm_gc); in to_mpc8xxx_gpio_chip()
201 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_gpio_irq_cascade()
215 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_unmask()
228 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_mask()
241 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_ack()
249 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_set_type()
277 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc512x_irq_set_type()
383 struct of_mm_gpio_chip *mm_gc; in mpc8xxx_probe() local
398 mm_gc = &mpc8xxx_gc->mm_gc; in mpc8xxx_probe()
[all …]
Dgpiolib-of.c284 struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_add() argument
287 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add()
293 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add()
294 if (!mm_gc->regs) in of_mm_gpiochip_add()
299 if (mm_gc->save_regs) in of_mm_gpiochip_add()
300 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add()
302 mm_gc->gc.of_node = np; in of_mm_gpiochip_add()
310 iounmap(mm_gc->regs); in of_mm_gpiochip_add()
324 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument
326 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_remove()
[all …]
Dgpio-mm-lantiq.c64 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ltq_mm_set() local
66 container_of(mm_gc, struct ltq_mm, mmchip); in ltq_mm_set()
94 static void ltq_mm_save_regs(struct of_mm_gpio_chip *mm_gc) in ltq_mm_save_regs() argument
97 container_of(mm_gc, struct ltq_mm, mmchip); in ltq_mm_save_regs()