Lines Matching refs:gpch
88 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local
90 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_get()
91 return rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
100 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local
102 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_set()
103 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
111 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local
113 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_direction_input()
116 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input()
118 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input()
128 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_output() local
130 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_direction_output()
133 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_output()
136 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_direction_output()
138 rb532_set_bit(1, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_output()