Lines Matching refs:gpch
89 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local
91 gpch = gpiochip_get_data(chip); in rb532_gpio_get()
92 return !!rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
101 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local
103 gpch = gpiochip_get_data(chip); in rb532_gpio_set()
104 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
112 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local
114 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_input()
117 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input()
119 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input()
129 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_output() local
131 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_output()
134 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_output()
137 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_direction_output()
139 rb532_set_bit(1, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_output()