Home
last modified time | relevance | path

Searched refs:gpch (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/drivers/gpio/
H A Dgpio-rdc321x.c32 struct rdc321x_gpio *gpch; in rdc_gpio_get_value() local
37 reg = gpio < 32 ? gpch->reg1_data_base : gpch->reg2_data_base; in rdc_gpio_get_value()
39 spin_lock(&gpch->lock); in rdc_gpio_get_value()
43 spin_unlock(&gpch->lock); in rdc_gpio_get_value()
62 reg ? gpch->reg2_data_base : gpch->reg1_data_base, in rdc_gpio_set_value_impl()
63 gpch->data_reg[reg]); in rdc_gpio_set_value_impl()
73 spin_lock(&gpch->lock); in rdc_gpio_set_value()
75 spin_unlock(&gpch->lock); in rdc_gpio_set_value()
87 spin_lock(&gpch->lock); in rdc_gpio_config()
89 gpch->reg1_ctrl_base : gpch->reg2_ctrl_base, &reg); in rdc_gpio_config()
[all …]
/linux-6.15/arch/mips/rb532/
H A Dgpio.c99 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local
101 gpch = gpiochip_get_data(chip); 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()
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()
[all …]