/linux-master/include/linux/gpio/ |
H A D | legacy-of-mm-gpiochip.h | 22 void (*save_regs)(struct of_mm_gpio_chip *mm_gc); 32 struct of_mm_gpio_chip *mm_gc, 34 extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc);
|
/linux-master/drivers/gpio/ |
H A D | gpio-altera.c | 38 struct of_mm_gpio_chip *mm_gc; local 43 mm_gc = &altera_gc->mmchip; 44 gpiochip_enable_irq(&mm_gc->gc, irqd_to_hwirq(d)); 47 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 50 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 57 struct of_mm_gpio_chip *mm_gc; local 62 mm_gc = &altera_gc->mmchip; 65 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 68 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 70 gpiochip_disable_irq(&mm_gc 108 struct of_mm_gpio_chip *mm_gc; local 117 struct of_mm_gpio_chip *mm_gc; local 137 struct of_mm_gpio_chip *mm_gc; local 158 struct of_mm_gpio_chip *mm_gc; local 188 struct of_mm_gpio_chip *mm_gc; local 215 struct of_mm_gpio_chip *mm_gc; local [all...] |
H A D | gpio-mpc5200.c | 46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 47 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; 60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 62 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; 88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 90 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; 111 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 112 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; 208 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 209 struct mpc52xx_gpio __iomem *regs = mm_gc 220 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 247 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 270 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local [all...] |
H A D | gpiolib-of.c | 963 * @mm_gc: pointer to the of_mm_gpio_chip allocated structure 966 * To use this function you should allocate and fill mm_gc with: 981 struct of_mm_gpio_chip *mm_gc, 985 struct gpio_chip *gc = &mm_gc->gc; 991 mm_gc->regs = of_iomap(np, 0); 992 if (!mm_gc->regs) 997 if (mm_gc->save_regs) 998 mm_gc->save_regs(mm_gc); 1000 fwnode_handle_put(mm_gc 980 of_mm_gpiochip_add_data(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data) argument 1023 of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) argument [all...] |
H A D | gpio-mm-lantiq.c | 88 * @mm_gc: pointer to memory mapped GPIO chip structure 90 static void ltq_mm_save_regs(struct of_mm_gpio_chip *mm_gc) argument 93 container_of(mm_gc, struct ltq_mm, mmchip);
|
/linux-master/arch/powerpc/sysdev/ |
H A D | cpm_common.c | 100 struct of_mm_gpio_chip mm_gc; member in struct:cpm2_gpio32_chip 107 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) argument 110 container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); 111 struct cpm2_ioports __iomem *iop = mm_gc->regs; 118 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 119 struct cpm2_ioports __iomem *iop = mm_gc->regs; 127 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, argument 130 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(&mm_gc->gc); 131 struct cpm2_ioports __iomem *iop = mm_gc 143 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 157 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 175 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 194 struct of_mm_gpio_chip *mm_gc; local [all...] |
/linux-master/arch/powerpc/platforms/8xx/ |
H A D | cpm1.c | 379 struct of_mm_gpio_chip mm_gc; member in struct:cpm1_gpio16_chip 389 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) argument 392 container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); 393 struct cpm_ioport16 __iomem *iop = mm_gc->regs; 400 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 401 struct cpm_ioport16 __iomem *iop = mm_gc->regs; 409 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, argument 412 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); 413 struct cpm_ioport16 __iomem *iop = mm_gc 425 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 439 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 447 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 465 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 484 struct of_mm_gpio_chip *mm_gc; local 519 struct of_mm_gpio_chip mm_gc; member in struct:cpm1_gpio32_chip 526 cpm1_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) argument 537 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 546 __cpm1_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, int value) argument 562 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 576 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 594 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 613 struct of_mm_gpio_chip *mm_gc; local [all...] |
/linux-master/drivers/soc/fsl/qe/ |
H A D | gpio.c | 26 struct of_mm_gpio_chip mm_gc; member in struct:qe_gpio_chip 36 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) argument 39 container_of(mm_gc, struct qe_gpio_chip, mm_gc); 40 struct qe_pio_regs __iomem *regs = mm_gc->regs; 53 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 54 struct qe_pio_regs __iomem *regs = mm_gc->regs; 62 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 64 struct qe_pio_regs __iomem *regs = mm_gc->regs; 83 struct of_mm_gpio_chip *mm_gc local 109 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 124 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 301 struct of_mm_gpio_chip *mm_gc; local [all...] |
/linux-master/arch/powerpc/platforms/4xx/ |
H A D | gpio.c | 48 struct of_mm_gpio_chip mm_gc; member in struct:ppc4xx_gpio_chip 60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 61 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; 69 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 70 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; 95 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 97 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; 125 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); local 127 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; 164 struct of_mm_gpio_chip *mm_gc; local [all...] |