Lines Matching defs:gpio
14 #include <linux/gpio/driver.h>
39 unsigned gpio, int val)
46 BUG_ON(gpio >= chip->ngpio);
48 if (gpio < 32) {
50 mask = 1 << gpio;
54 mask = 1 << (gpio - 32);
67 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio)
72 BUG_ON(gpio >= chip->ngpio);
74 if (gpio < 32) {
76 mask = 1 << gpio;
79 mask = 1 << (gpio - 32);
86 unsigned gpio, int dir)
93 BUG_ON(gpio >= chip->ngpio);
95 if (gpio < 32) {
97 mask = 1 << gpio;
100 mask = 1 << (gpio - 32);
115 static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
117 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN);
121 unsigned gpio, int value)
123 bcm63xx_gpio_set(chip, gpio, value);
124 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_OUT);
129 .label = "bcm63xx-gpio",