Lines Matching refs:mm_gc
517 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()
553 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in __cpm1_gpio16_set()
565 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_set() local
566 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_set()
572 __cpm1_gpio16_set(mm_gc, pin_mask, value); in cpm1_gpio16_set()
579 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_dir_out() local
580 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_out()
581 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_dir_out()
588 __cpm1_gpio16_set(mm_gc, pin_mask, val); in cpm1_gpio16_dir_out()
597 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_dir_in() local
598 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_in()
599 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_dir_in()
615 struct of_mm_gpio_chip *mm_gc; in cpm1_gpiochip_add16() local
625 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add16()
626 of_gc = &mm_gc->of_gc; in cpm1_gpiochip_add16()
629 mm_gc->save_regs = cpm1_gpio16_save_regs; in cpm1_gpiochip_add16()
637 return of_mm_gpiochip_add(np, mm_gc); in cpm1_gpiochip_add16()
641 struct of_mm_gpio_chip mm_gc; member
649 to_cpm1_gpio32_chip(struct of_mm_gpio_chip *mm_gc) in to_cpm1_gpio32_chip() argument
651 return container_of(mm_gc, struct cpm1_gpio32_chip, mm_gc); in to_cpm1_gpio32_chip()
654 static void cpm1_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio32_save_regs() argument
656 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_save_regs()
657 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_save_regs()
664 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_get() local
665 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_get()
673 static void __cpm1_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm1_gpio32_set() argument
676 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in __cpm1_gpio32_set()
677 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in __cpm1_gpio32_set()
689 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_set() local
690 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_set()
696 __cpm1_gpio32_set(mm_gc, pin_mask, value); in cpm1_gpio32_set()
703 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_dir_out() local
704 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_out()
705 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_dir_out()
712 __cpm1_gpio32_set(mm_gc, pin_mask, val); in cpm1_gpio32_dir_out()
721 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_dir_in() local
722 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_in()
723 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_dir_in()
739 struct of_mm_gpio_chip *mm_gc; in cpm1_gpiochip_add32() local
749 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add32()
750 of_gc = &mm_gc->of_gc; in cpm1_gpiochip_add32()
753 mm_gc->save_regs = cpm1_gpio32_save_regs; in cpm1_gpiochip_add32()
761 return of_mm_gpiochip_add(np, mm_gc); in cpm1_gpiochip_add32()