Searched refs:mm_gc (Results 1 – 5 of 5) sorted by relevance
/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 | cpm_common.c | 230 struct of_mm_gpio_chip mm_gc; member 238 to_cpm2_gpio32_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm2_gpio32_chip() argument 240 return container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); in to_cpm2_gpio32_chip() 243 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm2_gpio32_save_regs() argument 245 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_save_regs() 246 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_save_regs() 253 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_get() local 254 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_get() 262 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument 265 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 …]
|
D | cpm1.c | 524 struct of_mm_gpio_chip mm_gc; member 532 to_cpm1_gpio16_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm1_gpio16_chip() argument 534 return container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); in to_cpm1_gpio16_chip() 537 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio16_save_regs() argument 539 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_save_regs() 540 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_save_regs() 547 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_get() local 548 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_get() 556 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument 559 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in __cpm1_gpio16_set() [all …]
|
/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 …]
|