Home
last modified time | relevance | path

Searched defs:gpio (Results 1 – 25 of 551) sorted by relevance

12345678910>>...23

/Linux-v4.19/arch/mips/include/asm/mach-au1x00/
Dgpio-au1300.h29 static inline int au1300_gpio_get_value(unsigned int gpio) in au1300_gpio_get_value()
40 static inline int au1300_gpio_direction_input(unsigned int gpio) in au1300_gpio_direction_input()
55 static inline int au1300_gpio_set_value(unsigned int gpio, int v) in au1300_gpio_set_value()
71 static inline int au1300_gpio_direction_output(unsigned int gpio, int v) in au1300_gpio_direction_output()
77 static inline int au1300_gpio_to_irq(unsigned int gpio) in au1300_gpio_to_irq()
87 static inline int au1300_gpio_is_valid(unsigned int gpio) in au1300_gpio_is_valid()
101 static inline int au1300_gpio_cansleep(unsigned int gpio) in au1300_gpio_cansleep()
107 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl()
155 static inline int gpio_direction_input(unsigned int gpio) in gpio_direction_input()
160 static inline int gpio_direction_output(unsigned int gpio, int v) in gpio_direction_output()
[all …]
Dgpio-au1000.h45 static inline int au1000_gpio1_to_irq(int gpio) in au1000_gpio1_to_irq()
50 static inline int au1000_gpio2_to_irq(int gpio) in au1000_gpio2_to_irq()
63 static inline int au1500_gpio1_to_irq(int gpio) in au1500_gpio1_to_irq()
76 static inline int au1500_gpio2_to_irq(int gpio) in au1500_gpio2_to_irq()
109 static inline int au1100_gpio1_to_irq(int gpio) in au1100_gpio1_to_irq()
114 static inline int au1100_gpio2_to_irq(int gpio) in au1100_gpio2_to_irq()
136 static inline int au1550_gpio1_to_irq(int gpio) in au1550_gpio1_to_irq()
149 static inline int au1550_gpio2_to_irq(int gpio) in au1550_gpio2_to_irq()
180 static inline int au1200_gpio1_to_irq(int gpio) in au1200_gpio1_to_irq()
185 static inline int au1200_gpio2_to_irq(int gpio) in au1200_gpio2_to_irq()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/gpio/
Dgpio_base.c53 struct gpio *gpio, in dal_gpio_open()
60 struct gpio *gpio, in dal_gpio_open_ex()
75 const struct gpio *gpio, in dal_gpio_get_value()
87 const struct gpio *gpio, in dal_gpio_set_value()
99 const struct gpio *gpio) in dal_gpio_get_mode()
105 struct gpio *gpio, in dal_gpio_change_mode()
117 const struct gpio *gpio) in dal_gpio_get_id()
123 const struct gpio *gpio) in dal_gpio_get_enum()
129 struct gpio *gpio, in dal_gpio_set_config()
141 const struct gpio *gpio, in dal_gpio_get_pin_info()
[all …]
/Linux-v4.19/include/asm-generic/
Dgpio.h59 static inline struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip()
70 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
74 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
79 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce()
84 static inline int gpio_get_value_cansleep(unsigned gpio) in gpio_get_value_cansleep()
88 static inline void gpio_set_value_cansleep(unsigned gpio, int value) in gpio_set_value_cansleep()
98 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value()
102 static inline void __gpio_set_value(unsigned gpio, int value) in __gpio_set_value()
107 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep()
112 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq()
[all …]
/Linux-v4.19/include/linux/
Dgpio.h50 struct gpio { struct
51 unsigned gpio; argument
59 #include <asm/gpio.h> argument
64 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value()
69 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value()
74 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep()
79 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
115 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request()
120 static inline int gpio_request_one(unsigned gpio, in gpio_request_one()
131 static inline void gpio_free(unsigned gpio) in gpio_free()
[all …]
/Linux-v4.19/arch/m68k/include/asm/
Dmcfgpio.h31 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value()
39 static inline void __gpio_set_value(unsigned gpio, int value) in __gpio_set_value()
45 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep()
53 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq()
58 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
66 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
74 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request()
82 static inline void gpio_free(unsigned gpio) in gpio_free()
137 #define mcfgpio_bit(gpio) (1 << ((gpio) % MCFGPIO_PORTSIZE)) argument
138 #define mcfgpio_port(gpio) ((gpio) / MCFGPIO_PORTSIZE) argument
[all …]
Dgpio.h30 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
38 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value()
65 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq()
84 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep()
90 static inline int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) in gpio_request_one()
/Linux-v4.19/arch/mips/include/asm/mach-pmcs-msp71xx/
Dmsp_gpio_macros.h130 #define OFFSET_GPIO_NUMBER(gpio) (gpio - MSP_GPIO_OFFSET[gpio]) argument
143 #define BASIC_DATA_MASK(gpio) \ argument
145 #define BASIC_MODE_MASK(gpio) \ argument
147 #define BASIC_MODE(mode, gpio) \ argument
149 #define BASIC_MODE_SHIFT(gpio) \ argument
151 #define BASIC_MODE_FROM_REG(data, gpio) \ argument
175 #define EXTENDED_OFFSET_GPIO(gpio) (gpio < 24 ? gpio - 16 : gpio - 24) argument
184 #define EXTENDED_DISABLE(gpio) \ argument
186 #define EXTENDED_ENABLE(gpio) \ argument
188 #define EXTENDED_SET(gpio) \ argument
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/
Dgpio.h31 struct gpio { struct
32 struct gpio_service *service; argument
33 struct hw_gpio_pin *pin; argument
34 enum gpio_id id; argument
36 enum gpio_mode mode; argument
38 enum gpio_pin_output_state output_state; argument
/Linux-v4.19/drivers/ssb/
Ddriver_gpio.c26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq()
41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value()
48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value()
57 unsigned int gpio) in ssb_gpio_chipco_direction_input()
66 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output()
75 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_request()
88 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_free()
100 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_mask() local
108 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_unmask() local
129 int gpio; in ssb_gpio_irq_chipco_handler() local
[all …]
/Linux-v4.19/arch/mips/ar7/
Dgpio.c35 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_get_value()
43 static int titan_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in titan_gpio_get_value()
53 unsigned gpio, int value) in ar7_gpio_set_value()
66 unsigned gpio, int value) in titan_gpio_set_value()
79 static int ar7_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_direction_input()
89 static int titan_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in titan_gpio_direction_input()
104 unsigned gpio, int value) in ar7_gpio_direction_output()
116 unsigned gpio, int value) in titan_gpio_direction_output()
156 static inline int ar7_gpio_enable_ar7(unsigned gpio) in ar7_gpio_enable_ar7()
165 static inline int ar7_gpio_enable_titan(unsigned gpio) in ar7_gpio_enable_titan()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
Dbase.c29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive()
35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense()
41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset()
48 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find()
80 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set()
96 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) in nvkm_gpio_get()
114 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_fini() local
121 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_init() local
149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local
166 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local
[all …]
/Linux-v4.19/drivers/mfd/
Dwm8350-gpio.c23 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir()
40 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce()
50 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func()
143 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up()
155 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down()
167 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity()
179 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert()
188 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, in wm8350_gpio_config()
/Linux-v4.19/drivers/gpio/
Dgpio-lp87565.c31 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local
44 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local
53 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local
66 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local
76 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local
87 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local
116 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local
153 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
Dgpio-dwapb.c87 struct dwapb_gpio *gpio; member
123 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert()
131 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read()
139 static inline void dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, in dwapb_write()
151 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_to_irq() local
156 static struct dwapb_gpio_port *dwapb_offs_to_port(struct dwapb_gpio *gpio, unsigned int offs) in dwapb_offs_to_port()
170 static void dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs) in dwapb_toggle_trigger()
192 static u32 dwapb_do_irq(struct dwapb_gpio *gpio) in dwapb_do_irq()
214 struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc); in dwapb_irq_handler() local
226 struct dwapb_gpio *gpio = igc->private; in dwapb_irq_enable() local
[all …]
Dgpio-aspeed.c211 static inline void __iomem *bank_reg(struct aspeed_gpio *gpio, in bank_reg()
268 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
281 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio()
291 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input()
301 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output()
308 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, in aspeed_gpio_change_cmd_source()
340 static bool aspeed_gpio_copro_request(struct aspeed_gpio *gpio, in aspeed_gpio_copro_request()
364 static void aspeed_gpio_copro_release(struct aspeed_gpio *gpio, in aspeed_gpio_copro_release()
386 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local
395 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local
[all …]
Dgpio-pcf857x.c138 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local
151 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local
160 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local
184 struct pcf857x *gpio = data; in pcf857x_irq() local
211 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_set_wake() local
229 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_enable() local
236 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local
243 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_lock() local
250 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_sync_unlock() local
274 struct pcf857x *gpio; in pcf857x_probe() local
[all …]
Dgpio-zynq.c160 static int zynq_gpio_is_zynq(struct zynq_gpio *gpio) in zynq_gpio_is_zynq()
171 static int gpio_data_ro_bug(struct zynq_gpio *gpio) in gpio_data_ro_bug()
191 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin()
224 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_value() local
267 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_set_value() local
304 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_in() local
341 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_out() local
371 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local
392 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local
412 struct zynq_gpio *gpio = in zynq_gpio_irq_ack() local
[all …]
Dgpio-bcm-kona.c31 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
32 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument
35 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument
92 unsigned gpio) in bcm_kona_gpio_lock_gpio()
108 unsigned gpio) in bcm_kona_gpio_unlock_gpio()
123 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir()
133 static void bcm_kona_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) in bcm_kona_gpio_set()
160 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get()
187 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request()
195 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free()
[all …]
Dgpio-bd9571mwv.c34 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get_direction() local
47 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_input() local
58 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_output() local
71 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get() local
84 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_set() local
105 struct bd9571mwv_gpio *gpio; in bd9571mwv_gpio_probe() local
Dgpio-tps65912.c34 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local
50 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local
59 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local
71 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local
87 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local
109 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
Dgpio-mpc5200.c56 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get()
70 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set()
85 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set()
98 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in()
121 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out()
220 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get()
232 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set()
246 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set()
259 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in()
282 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
Dgpio-raspberrypi-exp.c33 u32 gpio; member
42 u32 gpio; member
50 u32 gpio; member
56 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_polarity() local
76 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_in() local
105 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_out() local
134 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_direction() local
155 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get() local
177 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_set() local
/Linux-v4.19/drivers/bcma/
Ddriver_gpio.c20 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value()
27 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value()
35 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input()
43 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output()
53 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request()
66 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free()
80 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_unmask() local
91 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_mask() local
110 int gpio; in bcma_gpio_irq_handler() local
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Dgpio.c106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input()
124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output()
142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio()
159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) in ath5k_hw_set_gpio()
189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, in ath5k_hw_set_gpio_intr()

12345678910>>...23