Lines Matching refs:mm_gc

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()
266 struct cpm2_ioports __iomem *iop = mm_gc->regs; in __cpm2_gpio32_set()
278 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_set() local
279 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_set()
285 __cpm2_gpio32_set(mm_gc, pin_mask, value); in cpm2_gpio32_set()
292 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_dir_out() local
293 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_dir_out()
294 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_dir_out()
301 __cpm2_gpio32_set(mm_gc, pin_mask, val); in cpm2_gpio32_dir_out()
310 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_dir_in() local
311 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_dir_in()
312 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_dir_in()
328 struct of_mm_gpio_chip *mm_gc; in cpm2_gpiochip_add32() local
337 mm_gc = &cpm2_gc->mm_gc; in cpm2_gpiochip_add32()
338 gc = &mm_gc->gc; in cpm2_gpiochip_add32()
340 mm_gc->save_regs = cpm2_gpio32_save_regs; in cpm2_gpiochip_add32()
347 return of_mm_gpiochip_add(np, mm_gc); in cpm2_gpiochip_add32()