Lines Matching +full:bank +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0+
15 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() local
18 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
20 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
28 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() local
30 writeb(!!value << gpio, bank->base + (BIT(gpio + 2))); in hi6220_gpio_set_value()
37 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() local
40 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
42 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
51 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() local
53 return !!readb(bank->base + (BIT(gpio + 2))); in hi6220_gpio_get_value()
67 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe() local
69 struct gpio_dev_priv *uc_priv = dev->uclass_priv; in hi6220_gpio_probe()
70 char name[18], *str; in hi6220_gpio_probe() local
72 sprintf(name, "GPIO%d_", plat->bank_index); in hi6220_gpio_probe()
74 str = strdup(name); in hi6220_gpio_probe()
76 return -ENOMEM; in hi6220_gpio_probe()
78 uc_priv->bank_name = str; in hi6220_gpio_probe()
79 uc_priv->gpio_count = HI6220_GPIO_PER_BANK; in hi6220_gpio_probe()
81 bank->base = (u8 *)plat->base; in hi6220_gpio_probe()
87 .name = "gpio_hi6220",