Home
last modified time | relevance | path

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

12345678910>>...21

/linux-6.15/include/linux/
H A Dgpio.h30 struct gpio { struct
31 unsigned gpio; member
38 #include <linux/gpio/consumer.h> argument
79 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
97 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
106 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq()
134 static inline int gpio_request_one(unsigned gpio, in gpio_request_one()
140 static inline void gpio_free(unsigned gpio) in gpio_free()
148 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
158 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/gpio/
H A Dgpio_base.c53 struct gpio *gpio, in dal_gpio_open()
60 struct gpio *gpio, in dal_gpio_open_ex()
79 const struct gpio *gpio, in dal_gpio_get_value()
91 const struct gpio *gpio, in dal_gpio_set_value()
103 const struct gpio *gpio) in dal_gpio_get_mode()
109 struct gpio *gpio) in dal_gpio_lock_pin()
115 struct gpio *gpio) in dal_gpio_unlock_pin()
121 struct gpio *gpio, in dal_gpio_change_mode()
145 struct gpio *gpio, in dal_gpio_set_config()
252 struct gpio *gpio) in dal_gpio_close()
[all …]
/linux-6.15/arch/mips/include/asm/mach-au1x00/
H A 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 …]
H A 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()
102 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl()
/linux-6.15/arch/m68k/include/asm/
H A Dmcfgpio.h23 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value()
37 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq()
42 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
66 static inline void gpio_free(unsigned gpio) in gpio_free()
146 #define MCFGPIO_SETR_PORT(gpio) (MCFGPIO_SETR + \ argument
149 #define MCFGPIO_CLRR_PORT(gpio) (MCFGPIO_CLRR + \ argument
155 #define MCFGPIO_SETR_PORT(gpio) 0 argument
156 #define MCFGPIO_CLRR_PORT(gpio) 0 argument
164 static inline u32 __mcfgpio_ppdr(unsigned gpio) in __mcfgpio_ppdr()
207 static inline u32 __mcfgpio_podr(unsigned gpio) in __mcfgpio_podr()
[all …]
/linux-6.15/drivers/ssb/
H A Ddriver_gpio.c57 unsigned int gpio) in ssb_gpio_chipco_direction_input()
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
146 int gpio, hwirq, err; in ssb_gpio_irq_chipco_domain_init() local
191 int gpio; in ssb_gpio_irq_chipco_domain_exit() local
277 unsigned int gpio) in ssb_gpio_extif_direction_input()
299 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_extif_mask() local
328 int gpio; in ssb_gpio_irq_extif_handler() local
345 int gpio, hwirq, err; in ssb_gpio_irq_extif_domain_init() local
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dgpio.h38 struct gpio { struct
39 struct gpio_service *service; argument
40 struct hw_gpio_pin *pin; argument
41 enum gpio_id id; argument
44 union gpio_hw_container hw_container; argument
45 enum gpio_mode mode; argument
48 enum gpio_pin_output_state output_state; argument
/linux-6.15/drivers/gpio/
H A Dgpio-aspeed.c342 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
412 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local
420 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local
429 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_set() local
446 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_in() local
502 struct aspeed_gpio **gpio, in irqd_to_aspeed_gpio_data()
522 struct aspeed_gpio *gpio; in aspeed_gpio_irq_ack() local
542 struct aspeed_gpio *gpio; in aspeed_gpio_irq_set_mask() local
584 struct aspeed_gpio *gpio; in aspeed_gpio_set_type() local
1021 struct aspeed_gpio *gpio; in aspeed_gpio_irq_print_chip() local
[all …]
H A Dgpio-pcf857x.c122 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local
135 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local
145 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get_multiple() local
159 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local
182 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_set_multiple() local
195 struct pcf857x *gpio = data; in pcf857x_irq() local
222 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
238 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local
278 struct pcf857x *gpio; in pcf857x_probe() local
[all …]
H A Dgpio-bcm-kona.c25 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
26 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument
101 unsigned gpio) in bcm_kona_gpio_lock_gpio()
124 unsigned gpio) in bcm_kona_gpio_unlock_gpio()
239 unsigned gpio, int value) in bcm_kona_gpio_direction_output()
352 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_ack() local
371 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_mask() local
391 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_unmask() local
411 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_set_type() local
489 unsigned int gpio = d->hwirq; in bcm_kona_gpio_irq_reqres() local
[all …]
H A Dgpio-wcove.c103 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg()
145 static int wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_dir_in()
156 static int wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_dir_out()
187 static int wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get()
217 static int wcove_gpio_set_config(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_set_config()
244 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_type() local
283 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_bus_sync_unlock() local
298 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_unmask() local
313 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_mask() local
338 unsigned int virq, gpio; in wcove_gpio_irq_handler() local
[all …]
H A Dgpio-lp87565.c23 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local
36 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local
45 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local
61 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local
71 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local
82 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local
111 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local
148 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
H A Dgpio-dwapb.c104 struct dwapb_gpio *gpio; member
240 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_ack() local
252 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_mask() local
268 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_unmask() local
284 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_enable() local
300 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_disable() local
316 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_set_type() local
396 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_set_debounce() local
632 struct dwapb_gpio *gpio = data; in dwapb_assert_reset() local
657 struct dwapb_gpio *gpio = data; in dwapb_disable_clks() local
[all …]
H A Dgpio-tqmx86.c69 static void tqmx86_gpio_clrsetbits(struct tqmx86_gpio_data *gpio, in tqmx86_gpio_clrsetbits()
83 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_get() local
99 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_set() local
109 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_direction_input() local
122 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_direction_output() local
135 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_get_direction() local
169 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_mask() local
182 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_unmask() local
195 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_set_type() local
226 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_irq_handler() local
[all …]
H A Dgpiolib-legacy.c18 void gpio_free(unsigned gpio) in gpio_free()
35 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) in gpio_request_one()
68 int gpio_request(unsigned gpio, const char *label) in gpio_request()
83 unsigned *gpio = res; in devm_gpio_release() local
104 int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) in devm_gpio_request()
138 int devm_gpio_request_one(struct device *dev, unsigned gpio, in devm_gpio_request_one()
H A Dgpio-zynq.c194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin()
409 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local
433 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local
454 struct zynq_gpio *gpio = in zynq_gpio_irq_ack() local
505 struct zynq_gpio *gpio = in zynq_gpio_set_irq_type() local
570 struct zynq_gpio *gpio = in zynq_gpio_set_wake() local
655 struct zynq_gpio *gpio = in zynq_gpio_irqhandler() local
738 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_suspend() local
759 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_resume() local
782 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_runtime_suspend() local
[all …]
H A Dgpio-tegra186.c99 struct gpio_chip gpio; member
195 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_init_valid_mask() local
208 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local
226 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local
278 struct tegra_gpio *gpio; in tegra186_gpio_en_hw_ts() local
313 struct tegra_gpio *gpio; in tegra186_gpio_dis_hw_ts() local
497 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_ack() local
510 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_mask() local
528 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_unmask() local
546 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_set_type() local
[all …]
H A Dgpio-npcm-sgpio.c165 struct npcm_sgpio **gpio, in npcm_sgpio_irqd_to_data()
206 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_dir_in() local
221 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_get_direction() local
231 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_set() local
249 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_get() local
310 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_irq_init_valid_mask() local
320 struct npcm_sgpio *gpio; in npcm_sgpio_irq_set_mask() local
357 struct npcm_sgpio *gpio; in npcm_sgpio_irq_ack() local
384 struct npcm_sgpio *gpio; in npcm_sgpio_set_type() local
436 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_irq_handler() local
[all …]
H A Dgpio-mpc5200.c44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get()
58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set()
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set()
86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in()
109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out()
206 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get()
218 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set()
232 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set()
245 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in()
268 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
H A 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
158 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get() local
180 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_set() local
H A Dgpio-bd9571mwv.c27 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get_direction() local
42 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_input() local
52 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_output() local
65 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get() local
78 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_set() local
99 struct bd9571mwv_gpio *gpio; in bd9571mwv_gpio_probe() local
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dbase.c35 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()
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
134 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local
149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local
177 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_init() local
211 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_dtor() local
[all …]
/linux-6.15/drivers/mfd/
H A Dwm8350-gpio.c18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir()
35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce()
45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func()
138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up()
150 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down()
162 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity()
174 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert()
183 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, in wm8350_gpio_config()
/linux-6.15/drivers/bcma/
H A Ddriver_gpio.c22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value()
29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value()
37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input()
45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output()
55 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request()
68 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free()
82 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_unmask() local
94 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_mask() local
116 int gpio; in bcma_gpio_irq_handler() local
/linux-6.15/drivers/pinctrl/bcm/
H A Dpinctrl-nsp-gpio.c93 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit()
117 unsigned int reg, unsigned gpio) in nsp_get_bit()
157 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local
176 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local
214 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local
300 static int nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get_direction()
325 static int nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get()
364 static int nsp_gpio_set_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_set_pull()
379 static void nsp_gpio_get_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_get_pull()
465 unsigned int gpio; in nsp_pin_config_get() local
[all …]

12345678910>>...21