Lines Matching refs:gpio
42 #include <linux/gpio/driver.h>
96 bool gpio_used; /* true if the user requested a gpio */
97 u8 gpio_altfunc; /* which pins are in gpio mode */
1830 static int ftdi_gpio_get(struct gpio_chip *gc, unsigned int gpio)
1839 return !!(result & BIT(gpio));
1842 static void ftdi_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value)
1850 priv->gpio_value |= BIT(gpio);
1852 priv->gpio_value &= ~BIT(gpio);
1889 static int ftdi_gpio_direction_get(struct gpio_chip *gc, unsigned int gpio)
1894 return !(priv->gpio_output & BIT(gpio));
1897 static int ftdi_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio)
1905 priv->gpio_output &= ~BIT(gpio);
1913 static int ftdi_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio,
1922 priv->gpio_output |= BIT(gpio);
1924 priv->gpio_value |= BIT(gpio);
1926 priv->gpio_value &= ~BIT(gpio);