/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-crystalcove.c | 82 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 D | gpio-mb86s7x.c | 43 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 D | gpio-pca9570.c | 44 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 D | gpio-pisosr.c | 36 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 D | gpio-rdc321x.c | 30 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 D | gpio-max77620.c | 28 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 D | gpio-pxa.c | 169 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 D | gpio-loongson.c | 40 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 D | gpio-xilinx.c | 83 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 D | gpio-tqmx86.c | 57 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 D | gpio-xlp.c | 68 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 D | gpio-virtio.c | 58 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 D | gpio-en7523.c | 34 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 D | gpio-xgene-sb.c | 59 #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 D | gpio-viperboard.c | 85 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 D | gpio-tegra.c | 120 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 D | gpiolib-legacy.c | 9 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 D | ga102.c | 25 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 D | nv10.c | 29 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 D | nv50.c | 27 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 D | mfp-pxa2xx.c | 53 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 D | pinctrl-paris.c | 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() 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 D | via-gpio.c | 88 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 D | intel_gmbus.c | 103 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 D | pinctrl-starfive-jh7110.c | 560 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 …]
|