Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/gpio/
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.3-rc2/arch/mips/ar7/
A Dgpio.c25 void __iomem *gpio_in = gpch->regs + AR7_GPIO_INPUT; in ar7_gpio_get_value()
300 struct ar7_gpio_chip *gpch; in ar7_gpio_init() local
304 gpch = &ar7_gpio_chip; in ar7_gpio_init()
307 gpch = &titan_gpio_chip; in ar7_gpio_init()
311 gpch->regs = ioremap(AR7_REGS_GPIO, size); in ar7_gpio_init()
312 if (!gpch->regs) { in ar7_gpio_init()
314 gpch->chip.label); in ar7_gpio_init()
318 ret = gpiochip_add_data(&gpch->chip, gpch); in ar7_gpio_init()
321 gpch->chip.label); in ar7_gpio_init()
322 iounmap(gpch->regs); in ar7_gpio_init()
[all …]
/linux-6.3-rc2/arch/mips/rb532/
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 …]

Completed in 10 milliseconds