Lines Matching refs:gpch
99 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local
101 gpch = gpiochip_get_data(chip); in rb532_gpio_get()
102 return !!rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
111 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local
113 gpch = gpiochip_get_data(chip); in rb532_gpio_set()
114 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
122 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local
124 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_input()
127 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input()
129 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input()
139 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_output() local
141 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_output()
144 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_output()
147 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_direction_output()
149 rb532_set_bit(1, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_output()