Lines Matching refs:cpm1_gc
539 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_save_regs() local
542 cpm1_gc->cpdata = in_be16(&iop->dat); in cpm1_gpio16_save_regs()
559 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in __cpm1_gpio16_set() local
563 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio16_set()
565 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio16_set()
567 out_be16(&iop->dat, cpm1_gc->cpdata); in __cpm1_gpio16_set()
573 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_set() local
577 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_set()
581 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_set()
587 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_out() local
592 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_out()
597 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_out()
605 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_in() local
610 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_in()
614 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_in()
621 struct cpm1_gpio16_chip *cpm1_gc; in cpm1_gpiochip_add16() local
625 cpm1_gc = kzalloc(sizeof(*cpm1_gc), GFP_KERNEL); in cpm1_gpiochip_add16()
626 if (!cpm1_gc) in cpm1_gpiochip_add16()
629 spin_lock_init(&cpm1_gc->lock); in cpm1_gpiochip_add16()
631 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add16()
660 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_save_regs() local
663 cpm1_gc->cpdata = in_be32(&iop->dat); in cpm1_gpio32_save_regs()
680 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in __cpm1_gpio32_set() local
684 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio32_set()
686 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio32_set()
688 out_be32(&iop->dat, cpm1_gc->cpdata); in __cpm1_gpio32_set()
694 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_set() local
698 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_set()
702 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_set()
708 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_out() local
713 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_out()
718 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_out()
726 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_in() local
731 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_in()
735 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_in()
742 struct cpm1_gpio32_chip *cpm1_gc; in cpm1_gpiochip_add32() local
746 cpm1_gc = kzalloc(sizeof(*cpm1_gc), GFP_KERNEL); in cpm1_gpiochip_add32()
747 if (!cpm1_gc) in cpm1_gpiochip_add32()
750 spin_lock_init(&cpm1_gc->lock); in cpm1_gpiochip_add32()
752 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add32()