Searched refs:gpch (Results 1 – 3 of 3) sorted by relevance
32 struct rdc321x_gpio *gpch; in rdc_gpio_get_value() local37 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, ®); in rdc_gpio_config()[all …]
25 void __iomem *gpio_in = gpch->regs + AR7_GPIO_INPUT; in ar7_gpio_get_value()300 struct ar7_gpio_chip *gpch; in ar7_gpio_init() local304 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 …]
99 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local101 gpch = gpiochip_get_data(chip); in rb532_gpio_get()111 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local113 gpch = gpiochip_get_data(chip); in rb532_gpio_set()122 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local124 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() local141 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_output()[all …]
Completed in 10 milliseconds