Home
last modified time | relevance | path

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

/arch/powerpc/sysdev/
Dsimple_gpio.c28 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 …]
Dcpm_common.c225 struct of_mm_gpio_chip mm_gc; member
233 to_cpm2_gpio32_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm2_gpio32_chip() argument
235 return container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); in to_cpm2_gpio32_chip()
238 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm2_gpio32_save_regs() argument
240 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_save_regs()
241 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_save_regs()
248 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_get() local
249 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_get()
257 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument
260 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in __cpm2_gpio32_set()
[all …]
Dppc4xx_gpio.c59 struct of_mm_gpio_chip mm_gc; member
70 to_ppc4xx_gpiochip(struct of_mm_gpio_chip *mm_gc) in to_ppc4xx_gpiochip() argument
72 return container_of(mm_gc, struct ppc4xx_gpio_chip, mm_gc); in to_ppc4xx_gpiochip()
77 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_get() local
78 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in ppc4xx_gpio_get()
86 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __ppc4xx_gpio_set() local
87 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in __ppc4xx_gpio_set()
98 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_set() local
99 struct ppc4xx_gpio_chip *chip = to_ppc4xx_gpiochip(mm_gc); in ppc4xx_gpio_set()
113 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_dir_in() local
[all …]
Dcpm1.c517 struct of_mm_gpio_chip mm_gc; member
525 to_cpm1_gpio16_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm1_gpio16_chip() argument
527 return container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); in to_cpm1_gpio16_chip()
530 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio16_save_regs() argument
532 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_save_regs()
533 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_save_regs()
540 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_get() local
541 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_get()
549 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument
552 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in __cpm1_gpio16_set()
[all …]
Dmpc8xxx_gpio.c29 struct of_mm_gpio_chip mm_gc; member
47 return container_of(mm, struct mpc8xxx_gpio_chip, mm_gc); in to_mpc8xxx_gpio_chip()
117 struct of_mm_gpio_chip *mm_gc; in mpc8xxx_add_controller() local
130 mm_gc = &mpc8xxx_gc->mm_gc; in mpc8xxx_add_controller()
131 of_gc = &mm_gc->of_gc; in mpc8xxx_add_controller()
134 mm_gc->save_regs = mpc8xxx_gpio_save_regs; in mpc8xxx_add_controller()
142 ret = of_mm_gpiochip_add(np, mm_gc); in mpc8xxx_add_controller()
/arch/powerpc/sysdev/qe_lib/
Dgpio.c25 struct of_mm_gpio_chip mm_gc; member
39 to_qe_gpio_chip(struct of_mm_gpio_chip *mm_gc) in to_qe_gpio_chip() argument
41 return container_of(mm_gc, struct qe_gpio_chip, mm_gc); in to_qe_gpio_chip()
44 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in qe_gpio_save_regs() argument
46 struct qe_gpio_chip *qe_gc = to_qe_gpio_chip(mm_gc); in qe_gpio_save_regs()
47 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_save_regs()
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_get() local
61 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_get()
69 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set() local
70 struct qe_gpio_chip *qe_gc = to_qe_gpio_chip(mm_gc); in qe_gpio_set()
[all …]
/arch/powerpc/platforms/52xx/
Dmpc52xx_gpio.c57 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() local
58 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_get()
71 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() local
72 struct mpc52xx_gpiochip *chip = container_of(mm_gc, in __mpc52xx_wkup_gpio_set()
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
101 struct mpc52xx_gpiochip *chip = container_of(mm_gc, in mpc52xx_wkup_gpio_dir_in()
103 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_in()
124 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() local
125 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_out()
[all …]