Home
last modified time | relevance | path

Searched defs:gpio (Results 51 – 75 of 506) sorted by relevance

12345678910>>...21

/linux-6.3-rc2/drivers/gpio/
A Dgpio-crystalcove.c82 static inline int to_reg(int gpio, enum ctrl_register reg_type) in to_reg()
114 static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_mask()
125 static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_ctrl()
132 static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in crystalcove_gpio_dir_in()
143 static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, int value) in crystalcove_gpio_dir_out()
154 static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in crystalcove_gpio_get()
170 static void crystalcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) in crystalcove_gpio_set()
281 int gpio; in crystalcove_gpio_irq_handler() local
304 int gpio, offset; in crystalcove_gpio_dbg_show() local
A Dgpio-mb86s7x.c43 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request()
60 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free()
75 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input()
93 unsigned gpio, int value) in mb86s70_gpio_direction_output()
117 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get()
124 static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) in mb86s70_gpio_set()
A Dgpio-pca9570.c44 static int pca9570_read(struct pca9570 *gpio, u8 *value) in pca9570_read()
61 static int pca9570_write(struct pca9570 *gpio, u8 value) in pca9570_write()
80 struct pca9570 *gpio = gpiochip_get_data(chip); in pca9570_get() local
93 struct pca9570 *gpio = gpiochip_get_data(chip); in pca9570_set() local
117 struct pca9570 *gpio; in pca9570_probe() local
A Dgpio-pisosr.c36 static int pisosr_gpio_refresh(struct pisosr_gpio *gpio) in pisosr_gpio_refresh()
79 struct pisosr_gpio *gpio = gpiochip_get_data(chip); in pisosr_gpio_get() local
90 struct pisosr_gpio *gpio = gpiochip_get_data(chip); in pisosr_gpio_get_multiple() local
122 struct pisosr_gpio *gpio; in pisosr_gpio_probe() local
160 struct pisosr_gpio *gpio = spi_get_drvdata(spi); in pisosr_gpio_remove() local
A Dgpio-rdc321x.c30 static int rdc_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in rdc_gpio_get_value()
49 unsigned gpio, int value) in rdc_gpio_set_value_impl()
68 unsigned gpio, int value) in rdc_gpio_set_value()
79 unsigned gpio, int value) in rdc_gpio_config()
109 static int rdc_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in rdc_gpio_direction_input()
A Dgpio-max77620.c28 struct max77620_gpio *gpio = data; in max77620_gpio_irqhandler() local
54 struct max77620_gpio *gpio = gpiochip_get_data(chip); in max77620_gpio_irq_mask() local
63 struct max77620_gpio *gpio = gpiochip_get_data(chip); in max77620_gpio_irq_unmask() local
72 struct max77620_gpio *gpio = gpiochip_get_data(chip); in max77620_gpio_set_irq_type() local
101 struct max77620_gpio *gpio = gpiochip_get_data(chip); in max77620_gpio_bus_lock() local
109 struct max77620_gpio *gpio = gpiochip_get_data(chip); in max77620_gpio_bus_sync_unlock() local
268 struct max77620_gpio *gpio = gpiochip_get_data(gc); in max77620_gpio_irq_init_hw() local
A Dgpio-pxa.c169 unsigned gpio) in gpio_to_pxabank()
187 static inline int __gpio_is_inverted(int gpio) in __gpio_is_inverted()
398 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_irq_type() local
442 int loop, gpio, n, handled = 0; in pxa_gpio_demux_handler() local
485 unsigned int gpio = irqd_to_hwirq(d); in pxa_ack_muxed_gpio() local
494 unsigned int gpio = irqd_to_hwirq(d); in pxa_mask_muxed_gpio() local
510 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_set_wake() local
521 unsigned int gpio = irqd_to_hwirq(d); in pxa_unmask_muxed_gpio() local
620 int gpio, ret; in pxa_gpio_probe() local
758 int gpio; in pxa_gpio_suspend() local
[all …]
A Dgpio-loongson.c40 static int loongson_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in loongson_gpio_get_value()
52 unsigned gpio, int value) in loongson_gpio_set_value()
66 static int loongson_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in loongson_gpio_direction_input()
80 unsigned gpio, int level) in loongson_gpio_direction_output()
A Dgpio-xilinx.c83 static inline int xgpio_to_bit(struct xgpio_instance *chip, int gpio) in xgpio_to_bit()
158 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get()
178 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set()
235 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in()
264 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out()
314 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_suspend() local
338 struct xgpio_instance *gpio = platform_get_drvdata(pdev); in xgpio_remove() local
360 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_resume() local
376 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_suspend() local
385 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_resume() local
A Dgpio-tqmx86.c57 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_get() local
65 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_set() local
113 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_mask() local
130 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_unmask() local
147 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_set_type() local
183 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_irq_handler() local
232 struct tqmx86_gpio_data *gpio; in tqmx86_gpio_probe() local
A Dgpio-xlp.c68 static int xlp_gpio_get_reg(void __iomem *addr, unsigned gpio) in xlp_gpio_get_reg()
77 static void xlp_gpio_set_reg(void __iomem *addr, unsigned gpio, int state) in xlp_gpio_set_reg()
176 int gpio, regoff; in xlp_gpio_generic_handler() local
195 static int xlp_gpio_dir_output(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_dir_output()
205 static int xlp_gpio_dir_input(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_dir_input()
215 static int xlp_gpio_get(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_get()
223 static void xlp_gpio_set(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_set()
A Dgpio-virtio.c58 static int _virtio_gpio_req(struct virtio_gpio *vgpio, u16 type, u16 gpio, in _virtio_gpio_req()
126 static int virtio_gpio_req(struct virtio_gpio *vgpio, u16 type, u16 gpio, in virtio_gpio_req()
136 static void virtio_gpio_free(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_free()
144 static int virtio_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_get_direction()
165 static int virtio_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_direction_input()
173 static int virtio_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, in virtio_gpio_direction_output()
187 static int virtio_gpio_get(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_get()
197 static void virtio_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) in virtio_gpio_set()
205 static void virtio_gpio_irq_prepare(struct virtio_gpio *vgpio, u16 gpio) in virtio_gpio_irq_prepare()
366 static bool ignore_irq(struct virtio_gpio *vgpio, int gpio, in ignore_irq()
[all …]
A Dgpio-en7523.c34 static int airoha_dir_set(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_set()
60 static int airoha_dir_out(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_out()
66 static int airoha_dir_in(struct gpio_chip *gc, unsigned int gpio) in airoha_dir_in()
71 static int airoha_get_dir(struct gpio_chip *gc, unsigned int gpio) in airoha_get_dir()
A Dgpio-xgene-sb.c59 #define GPIO_TO_HWIRQ(priv, gpio) ((gpio) - (priv)->irq_start) argument
62 void __iomem *reg, u32 gpio, int val) in xgene_gpio_set_bit()
77 int gpio = HWIRQ_TO_GPIO(priv, d->hwirq); in xgene_gpio_sb_irq_set_type() local
113 static int xgene_gpio_sb_to_irq(struct gpio_chip *gc, u32 gpio) in xgene_gpio_sb_to_irq()
134 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); in xgene_gpio_sb_domain_activate() local
154 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); in xgene_gpio_sb_domain_deactivate() local
A Dgpio-viperboard.c85 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_get() local
135 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_set() local
176 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_direction_input() local
213 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_direction_output() local
280 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_get() local
311 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_set() local
344 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_direction_input() local
365 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_direction_output() local
A Dgpio-tegra.c120 unsigned int gpio, u32 value) in tegra_gpio_mask_write()
279 unsigned int gpio = d->hwirq; in tegra_gpio_irq_ack() local
288 unsigned int gpio = d->hwirq; in tegra_gpio_irq_mask() local
298 unsigned int gpio = d->hwirq; in tegra_gpio_irq_unmask() local
376 unsigned int gpio = d->hwirq; in tegra_gpio_irq_shutdown() local
389 unsigned int port, pin, gpio, i; in tegra_gpio_irq_handler() local
474 unsigned int gpio = (b << 5) | (p << 3); in tegra_gpio_resume() local
509 unsigned int gpio = (b << 5) | (p << 3); in tegra_gpio_suspend() local
543 unsigned int gpio = d->hwirq; in tegra_gpio_irq_set_wake() local
652 unsigned int gpio = tegra_gpio_compose(i, j, 0); in tegra_dbg_gpio_show() local
[all …]
A Dgpiolib-legacy.c9 void gpio_free(unsigned gpio) in gpio_free()
21 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()
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
A Dga102.c25 ga102_gpio_reset(struct nvkm_gpio *gpio, u8 match) in ga102_gpio_reset()
54 ga102_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in ga102_gpio_drive()
64 ga102_gpio_sense(struct nvkm_gpio *gpio, int line) in ga102_gpio_sense()
71 ga102_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) in ga102_gpio_intr_stat()
85 ga102_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) in ga102_gpio_intr_mask()
A Dnv10.c29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense()
52 nv10_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv10_gpio_drive()
83 nv10_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) in nv10_gpio_intr_stat()
94 nv10_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) in nv10_gpio_intr_mask()
A Dnv50.c27 nv50_gpio_reset(struct nvkm_gpio *gpio, u8 match) in nv50_gpio_reset()
71 nv50_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in nv50_gpio_drive()
84 nv50_gpio_sense(struct nvkm_gpio *gpio, int line) in nv50_gpio_sense()
96 nv50_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) in nv50_gpio_intr_stat()
107 nv50_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) in nv50_gpio_intr_mask()
/linux-6.3-rc2/arch/arm/mach-pxa/
A Dmfp-pxa2xx.c53 static int __mfp_config_gpio(unsigned gpio, unsigned long c) in __mfp_config_gpio()
122 int gpio = mfp_to_gpio(mfp); in __mfp_validate() local
136 int i, gpio; in pxa2xx_mfp_config() local
156 int gpio; in pxa2xx_mfp_set_lpm() local
171 int gpio_set_wake(unsigned int gpio, unsigned int on) in gpio_set_wake()
256 unsigned int i, gpio, mask = 0; in keypad_set_wake() local
288 #define INIT_GPIO_DESC_MUXED(mux, gpio) \ argument
297 int i, gpio; in pxa27x_mfp_init() local
/linux-6.3-rc2/drivers/pinctrl/mediatek/
A Dpinctrl-paris.c619 #define mtk_pctrl_get_pinmux(hw, gpio) \ argument
622 #define mtk_pctrl_get_direction(hw, gpio) \ argument
625 #define mtk_pctrl_get_out(hw, gpio) \ argument
628 #define mtk_pctrl_get_in(hw, gpio) \ argument
631 #define mtk_pctrl_get_smt(hw, gpio) \ argument
634 #define mtk_pctrl_get_ies(hw, gpio) \ argument
637 #define mtk_pctrl_get_driving(hw, gpio) \ argument
641 unsigned int gpio, char *buf, unsigned int buf_len) in mtk_pctrl_show_one_pin()
717 unsigned int gpio) in mtk_pctrl_dbg_show()
855 static int mtk_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) in mtk_gpio_get_direction()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/via/
A Dvia-gpio.c88 struct viafb_gpio *gpio; in via_gpio_set() local
117 struct viafb_gpio *gpio; in via_gpio_dir_input() local
132 struct viafb_gpio *gpio; in via_gpio_get() local
160 static void viafb_gpio_enable(struct viafb_gpio *gpio) in viafb_gpio_enable()
165 static void viafb_gpio_disable(struct viafb_gpio *gpio) in viafb_gpio_disable()
214 struct viafb_gpio *gpio; in viafb_gpio_probe() local
/linux-6.3-rc2/drivers/gpu/drm/gma500/
A Dintel_gmbus.c103 static u32 get_reserved(struct intel_gpio *gpio) in get_reserved()
118 struct intel_gpio *gpio = data; in get_clock() local
128 struct intel_gpio *gpio = data; in get_data() local
138 struct intel_gpio *gpio = data; in set_clock() local
155 struct intel_gpio *gpio = data; in set_data() local
183 struct intel_gpio *gpio; in intel_gpio_create() local
224 struct intel_gpio *gpio = container_of(adapter, in intel_i2c_quirk_xfer() local
/linux-6.3-rc2/drivers/pinctrl/starfive/
A Dpinctrl-starfive-jh7110.c560 unsigned int gpio) in jh7110_gpio_get_direction()
576 unsigned int gpio) in jh7110_gpio_direction_input()
595 unsigned int gpio, int value) in jh7110_gpio_direction_output()
613 static int jh7110_gpio_get(struct gpio_chip *gc, unsigned int gpio) in jh7110_gpio_get()
625 unsigned int gpio, int value) in jh7110_gpio_set()
644 unsigned int gpio, unsigned long config) in jh7110_gpio_set_config()
705 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_ack() local
723 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_mask() local
742 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_mask_ack() local
765 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_unmask() local
[all …]

Completed in 48 milliseconds

12345678910>>...21