Lines Matching refs:mm_gc
94 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get() local
96 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_get()
99 val = xgpio_readreg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_get()
117 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set() local
119 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_set()
131 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_set()
149 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in() local
151 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_dir_in()
159 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET + in xgpio_dir_in()
182 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out() local
184 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_dir_out()
195 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + in xgpio_dir_out()
200 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET + in xgpio_dir_out()
212 static void xgpio_save_regs(struct of_mm_gpio_chip *mm_gc) in xgpio_save_regs() argument
215 container_of(mm_gc, struct xgpio_instance, mmchip); in xgpio_save_regs()
217 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET, chip->gpio_state[0]); in xgpio_save_regs()
218 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET, chip->gpio_dir[0]); in xgpio_save_regs()
223 xgpio_writereg(mm_gc->regs + XGPIO_DATA_OFFSET + XGPIO_CHANNEL_OFFSET, in xgpio_save_regs()
225 xgpio_writereg(mm_gc->regs + XGPIO_TRI_OFFSET + XGPIO_CHANNEL_OFFSET, in xgpio_save_regs()