Lines Matching refs:cpm1_gc
540 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_save_regs() local
543 cpm1_gc->cpdata = in_be16(&iop->dat); in cpm1_gpio16_save_regs()
560 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in __cpm1_gpio16_set() local
564 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio16_set()
566 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio16_set()
568 out_be16(&iop->dat, cpm1_gc->cpdata); in __cpm1_gpio16_set()
574 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_set() local
578 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_set()
582 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_set()
588 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_out() local
593 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_out()
598 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_out()
606 struct cpm1_gpio16_chip *cpm1_gc = to_cpm1_gpio16_chip(mm_gc); in cpm1_gpio16_dir_in() local
611 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_in()
615 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio16_dir_in()
622 struct cpm1_gpio16_chip *cpm1_gc; in cpm1_gpiochip_add16() local
626 cpm1_gc = kzalloc(sizeof(*cpm1_gc), GFP_KERNEL); in cpm1_gpiochip_add16()
627 if (!cpm1_gc) in cpm1_gpiochip_add16()
630 spin_lock_init(&cpm1_gc->lock); in cpm1_gpiochip_add16()
632 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add16()
661 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_save_regs() local
664 cpm1_gc->cpdata = in_be32(&iop->dat); in cpm1_gpio32_save_regs()
681 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in __cpm1_gpio32_set() local
685 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio32_set()
687 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio32_set()
689 out_be32(&iop->dat, cpm1_gc->cpdata); in __cpm1_gpio32_set()
695 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_set() local
699 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_set()
703 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_set()
709 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_out() local
714 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_out()
719 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_out()
727 struct cpm1_gpio32_chip *cpm1_gc = to_cpm1_gpio32_chip(mm_gc); in cpm1_gpio32_dir_in() local
732 spin_lock_irqsave(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_in()
736 spin_unlock_irqrestore(&cpm1_gc->lock, flags); in cpm1_gpio32_dir_in()
743 struct cpm1_gpio32_chip *cpm1_gc; in cpm1_gpiochip_add32() local
747 cpm1_gc = kzalloc(sizeof(*cpm1_gc), GFP_KERNEL); in cpm1_gpiochip_add32()
748 if (!cpm1_gc) in cpm1_gpiochip_add32()
751 spin_lock_init(&cpm1_gc->lock); in cpm1_gpiochip_add32()
753 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add32()