/linux-4.1.27/drivers/gpio/ |
D | gpio-altera.c | 48 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_unmask() local 53 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask() 56 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask() 59 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask() 66 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local 71 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask() 74 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask() 77 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask() 127 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local 129 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get() [all …]
|
D | gpio-mpc5200.c | 59 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 …]
|
D | gpio-xilinx.c | 94 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 …]
|
D | gpio-mpc8xxx.c | 34 struct of_mm_gpio_chip mm_gc; member 55 return container_of(mm, struct mpc8xxx_gpio_chip, mm_gc); in to_mpc8xxx_gpio_chip() 192 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_gpio_irq_cascade() 206 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_unmask() 219 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_mask() 232 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_ack() 240 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_irq_set_type() 268 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc512x_irq_set_type() 351 struct of_mm_gpio_chip *mm_gc; in mpc8xxx_probe() local 364 mm_gc = &mpc8xxx_gc->mm_gc; in mpc8xxx_probe() [all …]
|
D | gpiolib-of.c | 287 struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_add() argument 290 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add() 296 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add() 297 if (!mm_gc->regs) in of_mm_gpiochip_add() 302 if (mm_gc->save_regs) in of_mm_gpiochip_add() 303 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add() 305 mm_gc->gc.of_node = np; in of_mm_gpiochip_add() 313 iounmap(mm_gc->regs); in of_mm_gpiochip_add() 327 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument 329 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_remove() [all …]
|
D | gpio-mm-lantiq.c | 64 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()
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | simple_gpio.c | 28 struct of_mm_gpio_chip mm_gc; member 35 static struct u8_gpio_chip *to_u8_gpio_chip(struct of_mm_gpio_chip *mm_gc) in to_u8_gpio_chip() argument 37 return container_of(mm_gc, struct u8_gpio_chip, mm_gc); in to_u8_gpio_chip() 47 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in u8_gpio_get() local 49 return in_8(mm_gc->regs) & u8_pin2mask(gpio); in u8_gpio_get() 54 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in u8_gpio_set() local 55 struct u8_gpio_chip *u8_gc = to_u8_gpio_chip(mm_gc); in u8_gpio_set() 65 out_8(mm_gc->regs, u8_gc->data); in u8_gpio_set() 81 static void u8_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in u8_gpio_save_regs() argument 83 struct u8_gpio_chip *u8_gc = to_u8_gpio_chip(mm_gc); in u8_gpio_save_regs() [all …]
|
D | cpm1.c | 525 struct of_mm_gpio_chip mm_gc; member 533 to_cpm1_gpio16_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm1_gpio16_chip() argument 535 return container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); in to_cpm1_gpio16_chip() 538 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio16_save_regs() argument 540 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_save_regs() 541 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_save_regs() 548 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_get() local 549 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_get() 557 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument 560 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in __cpm1_gpio16_set() [all …]
|
D | cpm_common.c | 231 struct of_mm_gpio_chip mm_gc; member 239 to_cpm2_gpio32_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm2_gpio32_chip() argument 241 return container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); in to_cpm2_gpio32_chip() 244 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm2_gpio32_save_regs() argument 246 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_save_regs() 247 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_save_regs() 254 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_get() local 255 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_get() 263 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument 266 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in __cpm2_gpio32_set() [all …]
|
D | ppc4xx_gpio.c | 60 struct of_mm_gpio_chip mm_gc; member 71 to_ppc4xx_gpiochip(struct of_mm_gpio_chip *mm_gc) in to_ppc4xx_gpiochip() argument 73 return container_of(mm_gc, struct ppc4xx_gpio_chip, mm_gc); in to_ppc4xx_gpiochip() 78 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_get() local 79 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in ppc4xx_gpio_get() 87 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __ppc4xx_gpio_set() local 88 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in __ppc4xx_gpio_set() 99 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_set() local 100 struct ppc4xx_gpio_chip *chip = to_ppc4xx_gpiochip(mm_gc); in ppc4xx_gpio_set() 114 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_dir_in() local [all …]
|
/linux-4.1.27/arch/powerpc/sysdev/qe_lib/ |
D | gpio.c | 27 struct of_mm_gpio_chip mm_gc; member 41 to_qe_gpio_chip(struct of_mm_gpio_chip *mm_gc) in to_qe_gpio_chip() argument 43 return container_of(mm_gc, struct qe_gpio_chip, mm_gc); in to_qe_gpio_chip() 46 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in qe_gpio_save_regs() argument 48 struct qe_gpio_chip *qe_gc = to_qe_gpio_chip(mm_gc); in qe_gpio_save_regs() 49 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_save_regs() 62 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_get() local 63 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_get() 71 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set() local 72 struct qe_gpio_chip *qe_gc = to_qe_gpio_chip(mm_gc); in qe_gpio_set() [all …]
|
/linux-4.1.27/include/linux/ |
D | of_gpio.h | 41 void (*save_regs)(struct of_mm_gpio_chip *mm_gc); 54 struct of_mm_gpio_chip *mm_gc); 55 extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc);
|