Lines Matching refs:cpm2_gc
244 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_save_regs() local
247 cpm2_gc->cpdata = in_be32(&iop->dat); in cpm2_gpio32_save_regs()
264 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in __cpm2_gpio32_set() local
268 cpm2_gc->cpdata |= pin_mask; in __cpm2_gpio32_set()
270 cpm2_gc->cpdata &= ~pin_mask; in __cpm2_gpio32_set()
272 out_be32(&iop->dat, cpm2_gc->cpdata); in __cpm2_gpio32_set()
278 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_set() local
282 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_set()
286 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_set()
292 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_dir_out() local
297 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_out()
302 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_out()
310 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); in cpm2_gpio32_dir_in() local
315 spin_lock_irqsave(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_in()
319 spin_unlock_irqrestore(&cpm2_gc->lock, flags); in cpm2_gpio32_dir_in()
326 struct cpm2_gpio32_chip *cpm2_gc; in cpm2_gpiochip_add32() local
330 cpm2_gc = kzalloc(sizeof(*cpm2_gc), GFP_KERNEL); in cpm2_gpiochip_add32()
331 if (!cpm2_gc) in cpm2_gpiochip_add32()
334 spin_lock_init(&cpm2_gc->lock); in cpm2_gpiochip_add32()
336 mm_gc = &cpm2_gc->mm_gc; in cpm2_gpiochip_add32()