Searched refs:cpm2_gc (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/arch/powerpc/sysdev/
H A Dcpm_common.c246 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); cpm2_gpio32_save_regs() local
249 cpm2_gc->cpdata = in_be32(&iop->dat); cpm2_gpio32_save_regs()
266 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); __cpm2_gpio32_set() local
270 cpm2_gc->cpdata |= pin_mask; __cpm2_gpio32_set()
272 cpm2_gc->cpdata &= ~pin_mask; __cpm2_gpio32_set()
274 out_be32(&iop->dat, cpm2_gc->cpdata); __cpm2_gpio32_set()
280 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); cpm2_gpio32_set() local
284 spin_lock_irqsave(&cpm2_gc->lock, flags); cpm2_gpio32_set()
288 spin_unlock_irqrestore(&cpm2_gc->lock, flags); cpm2_gpio32_set()
294 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); cpm2_gpio32_dir_out() local
299 spin_lock_irqsave(&cpm2_gc->lock, flags); cpm2_gpio32_dir_out()
304 spin_unlock_irqrestore(&cpm2_gc->lock, flags); cpm2_gpio32_dir_out()
312 struct cpm2_gpio32_chip *cpm2_gc = to_cpm2_gpio32_chip(mm_gc); cpm2_gpio32_dir_in() local
317 spin_lock_irqsave(&cpm2_gc->lock, flags); cpm2_gpio32_dir_in()
321 spin_unlock_irqrestore(&cpm2_gc->lock, flags); cpm2_gpio32_dir_in()
328 struct cpm2_gpio32_chip *cpm2_gc; cpm2_gpiochip_add32() local
332 cpm2_gc = kzalloc(sizeof(*cpm2_gc), GFP_KERNEL); cpm2_gpiochip_add32()
333 if (!cpm2_gc) cpm2_gpiochip_add32()
336 spin_lock_init(&cpm2_gc->lock); cpm2_gpiochip_add32()
338 mm_gc = &cpm2_gc->mm_gc; cpm2_gpiochip_add32()

Completed in 33 milliseconds