Lines Matching +full:bank +full:- +full:name
5 * SPDX-License-Identifier: GPL-2.0+
16 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() local
19 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
21 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
29 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() local
31 writeb(!!value << gpio, bank->base + (BIT(gpio + 2))); in hi6220_gpio_set_value()
38 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() local
41 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
43 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
52 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() local
54 return !!readb(bank->base + (BIT(gpio + 2))); in hi6220_gpio_get_value()
68 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe() local
70 struct gpio_dev_priv *uc_priv = dev->uclass_priv; in hi6220_gpio_probe()
71 char name[18], *str; in hi6220_gpio_probe() local
73 sprintf(name, "GPIO%d_", plat->bank_index); in hi6220_gpio_probe()
75 str = strdup(name); in hi6220_gpio_probe()
77 return -ENOMEM; in hi6220_gpio_probe()
79 uc_priv->bank_name = str; in hi6220_gpio_probe()
80 uc_priv->gpio_count = HI6220_GPIO_PER_BANK; in hi6220_gpio_probe()
82 bank->base = (u8 *)plat->base; in hi6220_gpio_probe()
88 .name = "gpio_hi6220",