Lines Matching refs:mm_gc
102 struct of_mm_gpio_chip mm_gc; member
109 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm2_gpio32_save_regs() argument
112 container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); in cpm2_gpio32_save_regs()
113 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_save_regs()
120 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_get() local
121 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_get()
129 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument
132 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(&mm_gc->gc); in __cpm2_gpio32_set()
133 struct cpm2_ioports __iomem *iop = mm_gc->regs; in __cpm2_gpio32_set()
145 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_set() local
152 __cpm2_gpio32_set(mm_gc, pin_mask, value); in cpm2_gpio32_set()
159 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_dir_out() local
161 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_dir_out()
168 __cpm2_gpio32_set(mm_gc, pin_mask, val); in cpm2_gpio32_dir_out()
177 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_dir_in() local
179 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_dir_in()
196 struct of_mm_gpio_chip *mm_gc; in cpm2_gpiochip_add32() local
205 mm_gc = &cpm2_gc->mm_gc; in cpm2_gpiochip_add32()
206 gc = &mm_gc->gc; in cpm2_gpiochip_add32()
208 mm_gc->save_regs = cpm2_gpio32_save_regs; in cpm2_gpiochip_add32()
217 return of_mm_gpiochip_add_data(np, mm_gc, cpm2_gc); in cpm2_gpiochip_add32()