Lines Matching refs:cpm2_gc
109 struct cpm2_gpio32_chip *cpm2_gc = in cpm2_gpio32_save_regs() local
113 cpm2_gc->cpdata = in_be32(&iop->dat); in cpm2_gpio32_save_regs()
130 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(&mm_gc->gc); in __cpm2_gpio32_set() local
134 cpm2_gc->cpdata |= pin_mask; in __cpm2_gpio32_set()
136 cpm2_gc->cpdata &= ~pin_mask; in __cpm2_gpio32_set()
138 out_be32(&iop->dat, cpm2_gc->cpdata); in __cpm2_gpio32_set()
144 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(gc); in cpm2_gpio32_set() local
148 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_set()
152 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_set()
158 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(gc); in cpm2_gpio32_dir_out() local
163 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_out()
168 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_out()
176 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(gc); in cpm2_gpio32_dir_in() local
181 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_in()
185 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_in()
193 struct cpm2_gpio32_chip *cpm2_gc; in cpm2_gpiochip_add32() local
197 cpm2_gc = kzalloc(sizeof(*cpm2_gc), GFP_KERNEL); in cpm2_gpiochip_add32()
198 if (!cpm2_gc) in cpm2_gpiochip_add32()
201 spin_lock_init(&cpm2_gc->lock); in cpm2_gpiochip_add32()
203 mm_gc = &cpm2_gc->mm_gc; in cpm2_gpiochip_add32()
215 return of_mm_gpiochip_add_data(np, mm_gc, cpm2_gc); in cpm2_gpiochip_add32()