Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 46) sorted by relevance

12

/include/asm-generic/
Dgpio.h52 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/
Dgpio.h50 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 …]
Ducb1400.h122 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()
Dgpio-pxa.h7 #define gpio_to_bank(gpio) ((gpio) >> 5) argument
19 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
Dwm97xx.h269 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,
Dgpio_keys.h27 int gpio; member
/include/trace/events/
Dgpio.h3 #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/
Dasic3.h48 #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/
Dgpio.h38 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/
Dconsumer.h27 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/
Dgpio-davinci.h27 #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) argument
Dmax732x.h17 unsigned gpio, unsigned ngpio,
20 unsigned gpio, unsigned ngpio,
Dpcf857x.h37 int gpio, unsigned ngpio,
40 int gpio, unsigned ngpio,
Dpca953x.h23 unsigned gpio, unsigned ngpio,
26 unsigned gpio, unsigned ngpio,
Dleds-s3c24xx.h17 unsigned int gpio; member
Dgpio_backlight.h12 int gpio; member
Dleds-omap.h11 s16 gpio; member
Dadp5588.h163 unsigned gpio, unsigned ngpio,
166 unsigned gpio, unsigned ngpio,
/include/linux/input/
Dnavpoint.h8 int gpio; /* GPIO for power on/off */ member
Dadp5589.h179 int gpio, unsigned ngpio,
182 int gpio, unsigned ngpio,
/include/soc/sa1100/
Dpwer.h9 int sa11x0_gpio_set_wake(unsigned int gpio, unsigned int on);
/include/media/i2c/
Ds5k4ecgx.h18 int gpio; member
Ds5c73m3.h29 int gpio; member
Ds5k6aa.h19 int gpio; member
/include/linux/power/
Dgpio-charger.h25 int gpio; member

12