Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v6.6/drivers/gpio/
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
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()
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
Dgpio-pxa.c159 static inline void __iomem *gpio_bank_base(struct gpio_chip *c, int gpio) in gpio_bank_base()
168 unsigned gpio) in gpio_to_pxabank()
181 static inline int __gpio_is_inverted(int gpio) in __gpio_is_inverted()
194 static inline int __gpio_is_occupied(struct pxa_gpio_chip *pchip, unsigned gpio) in __gpio_is_occupied()
343 int i, gpio, nbanks = DIV_ROUND_UP(ngpio, 32); in pxa_init_gpio_chip() local
393 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_irq_type() local
437 int loop, gpio, n, handled = 0; in pxa_gpio_demux_handler() local
480 unsigned int gpio = irqd_to_hwirq(d); in pxa_ack_muxed_gpio() local
489 unsigned int gpio = irqd_to_hwirq(d); in pxa_mask_muxed_gpio() local
505 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_set_wake() local
[all …]
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()
Dgpio-tps65086.c37 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_direction_output() local
48 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_get() local
61 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_set() local
82 struct tps65086_gpio *gpio; in tps65086_gpio_probe() local
Dgpio-xilinx.c82 static inline int xgpio_to_bit(struct xgpio_instance *chip, int gpio) in xgpio_to_bit()
157 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get()
177 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set()
234 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in()
263 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out()
313 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_suspend() local
337 struct xgpio_instance *gpio = platform_get_drvdata(pdev); in xgpio_remove() local
359 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_resume() local
375 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_suspend() local
384 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_resume() local
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
131 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_unmask() local
149 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_set_type() local
185 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_irq_handler() local
250 struct tqmx86_gpio_data *gpio; in tqmx86_gpio_probe() local
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()
186 int gpio, regoff; in xlp_gpio_generic_handler() local
205 static int xlp_gpio_dir_output(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_dir_output()
215 static int xlp_gpio_dir_input(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_dir_input()
225 static int xlp_gpio_get(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_get()
233 static void xlp_gpio_set(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_set()
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 …]
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()
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
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
Dgpio-tegra.c120 unsigned int gpio, u32 value) in tegra_gpio_mask_write()
130 static void tegra_gpio_enable(struct tegra_gpio_info *tgi, unsigned int gpio) in tegra_gpio_enable()
135 static void tegra_gpio_disable(struct tegra_gpio_info *tgi, unsigned int gpio) in tegra_gpio_disable()
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
306 unsigned int gpio = d->hwirq, port = GPIO_PORT(gpio), lvl_type; in tegra_gpio_irq_set_type() 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
[all …]
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()
56 int gpio_request(unsigned gpio, const char *label) in gpio_request()
Dgpio-bt8xx.c52 struct gpio_chip gpio; member
69 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in bt8xxgpio_gpio_direction_input()
90 static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) in bt8xxgpio_gpio_get()
103 static int bt8xxgpio_gpio_direction_output(struct gpio_chip *gpio, in bt8xxgpio_gpio_direction_output()
128 static void bt8xxgpio_gpio_set(struct gpio_chip *gpio, in bt8xxgpio_gpio_set()
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
127 struct pisosr_gpio *gpio; in pisosr_gpio_probe() local
/Linux-v6.6/arch/arm/mach-pxa/
Dmfp-pxa2xx.c54 static int __mfp_config_gpio(unsigned gpio, unsigned long c) in __mfp_config_gpio()
123 int gpio = mfp_to_gpio(mfp); in __mfp_validate() local
137 int i, gpio; in pxa2xx_mfp_config() local
157 int gpio; in pxa2xx_mfp_set_lpm() local
172 int gpio_set_wake(unsigned int gpio, unsigned int on) in gpio_set_wake()
257 unsigned int i, gpio, mask = 0; in keypad_set_wake() local
289 #define INIT_GPIO_DESC_MUXED(mux, gpio) \ argument
298 int i, gpio; in pxa27x_mfp_init() local
/Linux-v6.6/drivers/video/fbdev/via/
Dvia-gpio.c89 struct viafb_gpio *gpio; in via_gpio_set() local
118 struct viafb_gpio *gpio; in via_gpio_dir_input() local
133 struct viafb_gpio *gpio; in via_gpio_get() local
161 static void viafb_gpio_enable(struct viafb_gpio *gpio) in viafb_gpio_enable()
166 static void viafb_gpio_disable(struct viafb_gpio *gpio) in viafb_gpio_disable()
210 struct viafb_gpio *gpio; in viafb_gpio_probe() local
/Linux-v6.6/drivers/pinctrl/mediatek/
Dpinctrl-paris.c602 static int mtk_hw_get_value_wrap(struct mtk_pinctrl *hw, unsigned int gpio, int field) in mtk_hw_get_value_wrap()
619 #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()
[all …]
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
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()
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-v6.6/drivers/gpu/drm/gma500/
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-v6.6/drivers/pinctrl/starfive/
Dpinctrl-starfive-jh7110.c548 static int jh7110_gpio_request(struct gpio_chip *gc, unsigned int gpio) in jh7110_gpio_request()
553 static void jh7110_gpio_free(struct gpio_chip *gc, unsigned int gpio) in jh7110_gpio_free()
559 unsigned int gpio) in jh7110_gpio_get_direction()
575 unsigned int gpio) in jh7110_gpio_direction_input()
594 unsigned int gpio, int value) in jh7110_gpio_direction_output()
612 static int jh7110_gpio_get(struct gpio_chip *gc, unsigned int gpio) in jh7110_gpio_get()
624 unsigned int gpio, int value) in jh7110_gpio_set()
643 unsigned int gpio, unsigned long config) in jh7110_gpio_set_config()
704 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_ack() local
722 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_mask() local
[all …]
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgpio.c38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_get() local
57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_set() local
75 struct nvkm_gpio *gpio = subdev->device->gpio; in nvkm_voltgpio_init() local

12345678910>>...21