Lines Matching refs:mm_gc
284 struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_add() argument
287 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add()
293 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add()
294 if (!mm_gc->regs) in of_mm_gpiochip_add()
299 if (mm_gc->save_regs) in of_mm_gpiochip_add()
300 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add()
302 mm_gc->gc.of_node = np; in of_mm_gpiochip_add()
310 iounmap(mm_gc->regs); in of_mm_gpiochip_add()
324 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument
326 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_remove()
328 if (!mm_gc) in of_mm_gpiochip_remove()
332 iounmap(mm_gc->regs); in of_mm_gpiochip_remove()