Lines Matching refs:mm_gc
382 struct of_mm_gpio_chip mm_gc; member
392 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio16_save_regs() argument
395 container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); in cpm1_gpio16_save_regs()
396 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_save_regs()
403 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_get() local
404 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_get()
412 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument
415 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in __cpm1_gpio16_set()
416 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in __cpm1_gpio16_set()
428 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_set() local
429 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio16_set()
435 __cpm1_gpio16_set(mm_gc, pin_mask, value); in cpm1_gpio16_set()
442 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_to_irq() local
443 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio16_to_irq()
450 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_dir_out() local
451 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio16_dir_out()
452 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_dir_out()
459 __cpm1_gpio16_set(mm_gc, pin_mask, val); in cpm1_gpio16_dir_out()
468 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_dir_in() local
469 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio16_dir_in()
470 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_dir_in()
487 struct of_mm_gpio_chip *mm_gc; in cpm1_gpiochip_add16() local
505 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add16()
506 gc = &mm_gc->gc; in cpm1_gpiochip_add16()
508 mm_gc->save_regs = cpm1_gpio16_save_regs; in cpm1_gpiochip_add16()
518 return of_mm_gpiochip_add_data(np, mm_gc, cpm1_gc); in cpm1_gpiochip_add16()
522 struct of_mm_gpio_chip mm_gc; member
529 static void cpm1_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio32_save_regs() argument
532 container_of(mm_gc, struct cpm1_gpio32_chip, mm_gc); in cpm1_gpio32_save_regs()
533 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_save_regs()
540 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_get() local
541 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_get()
549 static void __cpm1_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm1_gpio32_set() argument
552 struct cpm1_gpio32_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in __cpm1_gpio32_set()
553 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in __cpm1_gpio32_set()
565 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_set() local
566 struct cpm1_gpio32_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio32_set()
572 __cpm1_gpio32_set(mm_gc, pin_mask, value); in cpm1_gpio32_set()
579 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_dir_out() local
580 struct cpm1_gpio32_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio32_dir_out()
581 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_dir_out()
588 __cpm1_gpio32_set(mm_gc, pin_mask, val); in cpm1_gpio32_dir_out()
597 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio32_dir_in() local
598 struct cpm1_gpio32_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in cpm1_gpio32_dir_in()
599 struct cpm_ioport32b __iomem *iop = mm_gc->regs; in cpm1_gpio32_dir_in()
616 struct of_mm_gpio_chip *mm_gc; in cpm1_gpiochip_add32() local
625 mm_gc = &cpm1_gc->mm_gc; in cpm1_gpiochip_add32()
626 gc = &mm_gc->gc; in cpm1_gpiochip_add32()
628 mm_gc->save_regs = cpm1_gpio32_save_regs; in cpm1_gpiochip_add32()
637 return of_mm_gpiochip_add_data(np, mm_gc, cpm1_gc); in cpm1_gpiochip_add32()