/include/asm-generic/ |
D | gpio.h | 52 struct gpio; 59 static inline struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip() argument 61 return gpiod_to_chip(gpio_to_desc(gpio)); in gpio_to_chip() 67 extern int gpio_request(unsigned gpio, const char *label); 68 extern void gpio_free(unsigned gpio); 70 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() argument 72 return gpiod_direction_input(gpio_to_desc(gpio)); in gpio_direction_input() 74 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() argument 76 return gpiod_direction_output_raw(gpio_to_desc(gpio), value); in gpio_direction_output() 79 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() argument [all …]
|
/include/linux/ |
D | gpio.h | 50 struct gpio { struct 51 unsigned gpio; argument 64 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() argument 66 return __gpio_get_value(gpio); in gpio_get_value() 69 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() argument 71 __gpio_set_value(gpio, value); in gpio_set_value() 74 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() argument 76 return __gpio_cansleep(gpio); in gpio_cansleep() 79 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq() argument 81 return __gpio_to_irq(gpio); in gpio_to_irq() [all …]
|
D | ucb1400.h | 122 static inline u16 ucb1400_gpio_get_value(struct snd_ac97 *ac97, u16 gpio) in ucb1400_gpio_get_value() argument 124 return ucb1400_reg_read(ac97, UCB_IO_DATA) & (1 << gpio); in ucb1400_gpio_get_value() 127 static inline void ucb1400_gpio_set_value(struct snd_ac97 *ac97, u16 gpio, in ucb1400_gpio_set_value() argument 131 ucb1400_reg_read(ac97, UCB_IO_DATA) | (1 << gpio) : in ucb1400_gpio_set_value() 132 ucb1400_reg_read(ac97, UCB_IO_DATA) & ~(1 << gpio)); in ucb1400_gpio_set_value() 135 static inline u16 ucb1400_gpio_get_direction(struct snd_ac97 *ac97, u16 gpio) in ucb1400_gpio_get_direction() argument 137 return ucb1400_reg_read(ac97, UCB_IO_DIR) & (1 << gpio); in ucb1400_gpio_get_direction() 140 static inline void ucb1400_gpio_set_direction(struct snd_ac97 *ac97, u16 gpio, in ucb1400_gpio_set_direction() argument 144 ucb1400_reg_read(ac97, UCB_IO_DIR) | (1 << gpio) : in ucb1400_gpio_set_direction() 145 ucb1400_reg_read(ac97, UCB_IO_DIR) & ~(1 << gpio)); in ucb1400_gpio_set_direction()
|
D | gpio-pxa.h | 7 #define gpio_to_bank(gpio) ((gpio) >> 5) argument 19 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
|
D | wm97xx.h | 269 u16 dig[3], id, gpio[6], misc; /* Cached codec registers */ member 316 enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio); 317 void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio, 319 void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio,
|
D | gpio_keys.h | 27 int gpio; member
|
/include/trace/events/ |
D | gpio.h | 3 #define TRACE_SYSTEM gpio 12 TP_PROTO(unsigned gpio, int in, int err), 14 TP_ARGS(gpio, in, err), 17 __field(unsigned, gpio) 23 __entry->gpio = gpio; 28 TP_printk("%u %3s (%d)", __entry->gpio, 34 TP_PROTO(unsigned gpio, int get, int value), 36 TP_ARGS(gpio, get, value), 39 __field(unsigned, gpio) 45 __entry->gpio = gpio; [all …]
|
/include/linux/mfd/ |
D | asic3.h | 48 #define ASIC3_TO_GPIO(gpio) (NR_BUILTIN_GPIO + (gpio)) argument 55 #define ASIC3_GPIO(bank, gpio) \ argument 56 ((ASIC3_GPIOS_PER_BANK * ASIC3_GPIO_BANK_##bank) + (gpio)) 57 #define ASIC3_GPIO_bit(gpio) (1 << (gpio & 0xf)) argument 70 #define ASIC3_GPIO_TO_BANK(gpio) ((gpio) >> 4) argument 71 #define ASIC3_GPIO_TO_BIT(gpio) ((gpio) - \ argument 72 (ASIC3_GPIOS_PER_BANK * ((gpio) >> 4))) 73 #define ASIC3_GPIO_TO_MASK(gpio) (1 << ASIC3_GPIO_TO_BIT(gpio)) argument 74 #define ASIC3_GPIO_TO_BASE(gpio) (ASIC3_GPIO_A_BASE + (((gpio) >> 4) * 0x0100)) argument 108 #define ASIC3_CONFIG_GPIO(gpio, alt, dir, init) (((gpio) & 0x7f) \ argument [all …]
|
/include/linux/mfd/pcf50633/ |
D | gpio.h | 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val); 39 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio); 41 int pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert); 42 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio); 45 int gpio, int regulator, int on);
|
/include/linux/pinctrl/ |
D | consumer.h | 27 extern bool pinctrl_gpio_can_use_line(unsigned gpio); 28 extern int pinctrl_gpio_request(unsigned gpio); 29 extern void pinctrl_gpio_free(unsigned gpio); 30 extern int pinctrl_gpio_direction_input(unsigned gpio); 31 extern int pinctrl_gpio_direction_output(unsigned gpio); 32 extern int pinctrl_gpio_set_config(unsigned gpio, unsigned long config); 65 static inline bool pinctrl_gpio_can_use_line(unsigned gpio) in pinctrl_gpio_can_use_line() argument 70 static inline int pinctrl_gpio_request(unsigned gpio) in pinctrl_gpio_request() argument 75 static inline void pinctrl_gpio_free(unsigned gpio) in pinctrl_gpio_free() argument 79 static inline int pinctrl_gpio_direction_input(unsigned gpio) in pinctrl_gpio_direction_input() argument [all …]
|
/include/linux/platform_data/ |
D | gpio-davinci.h | 27 #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) argument
|
D | max732x.h | 17 unsigned gpio, unsigned ngpio, 20 unsigned gpio, unsigned ngpio,
|
D | pcf857x.h | 37 int gpio, unsigned ngpio, 40 int gpio, unsigned ngpio,
|
D | pca953x.h | 23 unsigned gpio, unsigned ngpio, 26 unsigned gpio, unsigned ngpio,
|
D | leds-s3c24xx.h | 17 unsigned int gpio; member
|
D | gpio_backlight.h | 12 int gpio; member
|
D | leds-omap.h | 11 s16 gpio; member
|
D | adp5588.h | 163 unsigned gpio, unsigned ngpio, 166 unsigned gpio, unsigned ngpio,
|
/include/linux/input/ |
D | navpoint.h | 8 int gpio; /* GPIO for power on/off */ member
|
D | adp5589.h | 179 int gpio, unsigned ngpio, 182 int gpio, unsigned ngpio,
|
/include/soc/sa1100/ |
D | pwer.h | 9 int sa11x0_gpio_set_wake(unsigned int gpio, unsigned int on);
|
/include/media/i2c/ |
D | s5k4ecgx.h | 18 int gpio; member
|
D | s5c73m3.h | 29 int gpio; member
|
D | s5k6aa.h | 19 int gpio; member
|
/include/linux/power/ |
D | gpio-charger.h | 25 int gpio; member
|