Lines Matching defs:gpio

6 /* see Documentation/gpio/gpio-legacy.txt */
34 * struct gpio - a structure describing a GPIO with configuration
35 * @gpio: the GPIO number
39 struct gpio {
40 unsigned gpio;
48 #include <asm/gpio.h>
51 #include <asm-generic/gpio.h>
53 static inline int gpio_get_value(unsigned int gpio)
55 return __gpio_get_value(gpio);
58 static inline void gpio_set_value(unsigned int gpio, int value)
60 __gpio_set_value(gpio, value);
63 static inline int gpio_cansleep(unsigned int gpio)
65 return __gpio_cansleep(gpio);
68 static inline int gpio_to_irq(unsigned int gpio)
70 return __gpio_to_irq(gpio);
84 int devm_gpio_request(struct device *dev, unsigned gpio, const char *label);
85 int devm_gpio_request_one(struct device *dev, unsigned gpio,
87 void devm_gpio_free(struct device *dev, unsigned int gpio);
104 static inline int gpio_request(unsigned gpio, const char *label)
109 static inline int gpio_request_one(unsigned gpio,
115 static inline int gpio_request_array(const struct gpio *array, size_t num)
120 static inline void gpio_free(unsigned gpio)
128 static inline void gpio_free_array(const struct gpio *array, size_t num)
136 static inline int gpio_direction_input(unsigned gpio)
141 static inline int gpio_direction_output(unsigned gpio, int value)
146 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
151 static inline int gpio_get_value(unsigned gpio)
158 static inline void gpio_set_value(unsigned gpio, int value)
164 static inline int gpio_cansleep(unsigned gpio)
171 static inline int gpio_get_value_cansleep(unsigned gpio)
178 static inline void gpio_set_value_cansleep(unsigned gpio, int value)
184 static inline int gpio_export(unsigned gpio, bool direction_may_change)
192 unsigned gpio)
199 static inline int gpio_sysfs_set_active_low(unsigned gpio, int value)
206 static inline void gpio_unexport(unsigned gpio)
212 static inline int gpio_to_irq(unsigned gpio)
262 static inline int devm_gpio_request(struct device *dev, unsigned gpio,
269 static inline int devm_gpio_request_one(struct device *dev, unsigned gpio,
276 static inline void devm_gpio_free(struct device *dev, unsigned int gpio)