Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpio-altera.c49 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_unmask() local
54 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask()
57 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
60 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
67 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local
72 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask()
75 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
78 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
126 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local
128 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get()
[all …]
Dgpio-xilinx.c94 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get() local
98 val = xgpio_readreg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_get()
116 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set() local
129 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_set()
148 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set_multiple() local
160 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_set_multiple()
176 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_set_multiple()
194 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in() local
203 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET + in xgpio_dir_in()
226 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out() local
[all …]
Dgpio-mpc5200.c58 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() local
59 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_get()
72 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() local
74 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in __mpc52xx_wkup_gpio_set()
100 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() local
102 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_in()
123 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() local
124 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_out()
222 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get() local
223 struct mpc52xx_gpio __iomem *regs = mm_gc->regs; in mpc52xx_simple_gpio_get()
[all …]
Dgpiolib-of.c365 struct of_mm_gpio_chip *mm_gc, in of_mm_gpiochip_add_data() argument
369 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add_data()
375 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add_data()
376 if (!mm_gc->regs) in of_mm_gpiochip_add_data()
381 if (mm_gc->save_regs) in of_mm_gpiochip_add_data()
382 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add_data()
384 mm_gc->gc.of_node = np; in of_mm_gpiochip_add_data()
392 iounmap(mm_gc->regs); in of_mm_gpiochip_add_data()
406 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument
408 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_remove()
[all …]
Dgpio-mm-lantiq.c92 static void ltq_mm_save_regs(struct of_mm_gpio_chip *mm_gc) in ltq_mm_save_regs() argument
95 container_of(mm_gc, struct ltq_mm, mmchip); in ltq_mm_save_regs()
/drivers/soc/fsl/qe/
Dgpio.c29 struct of_mm_gpio_chip mm_gc; member
42 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in qe_gpio_save_regs() argument
45 container_of(mm_gc, struct qe_gpio_chip, mm_gc); in qe_gpio_save_regs()
46 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_save_regs()
59 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_get() local
60 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_get()
68 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set() local
70 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_set()
88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_dir_in() local
94 __par_io_config_pin(mm_gc->regs, gpio, QE_PIO_DIR_IN, 0, 0, 0); in qe_gpio_dir_in()
[all …]