Lines Matching refs:mm_gc
46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get() local
48 return (in_be32(mm_gc->regs + XGPIO_DATA_OFFSET) >> gpio) & 1; in xgpio_get()
63 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set() local
65 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_set()
74 out_be32(mm_gc->regs + XGPIO_DATA_OFFSET, chip->gpio_state); in xgpio_set()
91 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in() local
93 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_dir_in()
99 out_be32(mm_gc->regs + XGPIO_TRI_OFFSET, chip->gpio_dir); in xgpio_dir_in()
119 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out() local
121 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_dir_out()
130 out_be32(mm_gc->regs + XGPIO_DATA_OFFSET, chip->gpio_state); in xgpio_dir_out()
134 out_be32(mm_gc->regs + XGPIO_TRI_OFFSET, chip->gpio_dir); in xgpio_dir_out()
145 static void xgpio_save_regs(struct of_mm_gpio_chip *mm_gc) in xgpio_save_regs() argument
148 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_save_regs()
150 out_be32(mm_gc->regs + XGPIO_DATA_OFFSET, chip->gpio_state); in xgpio_save_regs()
151 out_be32(mm_gc->regs + XGPIO_TRI_OFFSET, chip->gpio_dir); in xgpio_save_regs()