Home
last modified time | relevance | path

Searched defs:gpio (Results 76 – 100 of 750) sorted by relevance

12345678910>>...30

/openbmc/linux/arch/powerpc/platforms/4xx/
H A Dgpio.c22 #define GPIO_MASK(gpio) (0x80000000 >> (gpio)) argument
23 #define GPIO_MASK2(gpio) (0xc0000000 >> ((gpio) * 2)) argument
58 static int ppc4xx_gpio_get(struct gpio_chip *gc, unsigned int gpio) in ppc4xx_gpio_get()
67 __ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __ppc4xx_gpio_set()
79 ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in ppc4xx_gpio_set()
93 static int ppc4xx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in ppc4xx_gpio_dir_in()
123 ppc4xx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in ppc4xx_gpio_dir_out()
/openbmc/u-boot/drivers/gpio/
H A Dmpc8xxx_gpio.c45 inline u32 gpio_mask(uint gpio) in gpio_mask()
100 static int mpc8xxx_gpio_direction_input(struct udevice *dev, uint gpio) in mpc8xxx_gpio_direction_input()
108 static int mpc8xxx_gpio_set_value(struct udevice *dev, uint gpio, int value) in mpc8xxx_gpio_set_value()
122 static int mpc8xxx_gpio_direction_output(struct udevice *dev, uint gpio, in mpc8xxx_gpio_direction_output()
134 static int mpc8xxx_gpio_get_value(struct udevice *dev, uint gpio) in mpc8xxx_gpio_get_value()
147 static int mpc8xxx_gpio_get_open_drain(struct udevice *dev, uint gpio) in mpc8xxx_gpio_get_open_drain()
154 static int mpc8xxx_gpio_set_open_drain(struct udevice *dev, uint gpio, in mpc8xxx_gpio_set_open_drain()
167 static int mpc8xxx_gpio_get_function(struct udevice *dev, uint gpio) in mpc8xxx_gpio_get_function()
H A Dmvebu_gpio.c27 static int mvebu_gpio_direction_input(struct udevice *dev, unsigned int gpio) in mvebu_gpio_direction_input()
37 static int mvebu_gpio_direction_output(struct udevice *dev, unsigned gpio, in mvebu_gpio_direction_output()
52 static int mvebu_gpio_get_function(struct udevice *dev, unsigned gpio) in mvebu_gpio_get_function()
65 static int mvebu_gpio_set_value(struct udevice *dev, unsigned gpio, in mvebu_gpio_set_value()
79 static int mvebu_gpio_get_value(struct udevice *dev, unsigned gpio) in mvebu_gpio_get_value()
H A Dmxc_gpio.c66 static int mxc_gpio_direction(unsigned int gpio, in mxc_gpio_direction()
94 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
117 int gpio_get_value(unsigned gpio) in gpio_get_value()
135 int gpio_request(unsigned gpio, const char *label) in gpio_request()
143 int gpio_free(unsigned gpio) in gpio_free()
148 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
153 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
/openbmc/linux/drivers/gpio/
H A Dgpio-tqmx86.c67 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_get() local
75 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_set() local
115 static void tqmx86_gpio_irq_config(struct tqmx86_gpio_data *gpio, int offset) in tqmx86_gpio_irq_config()
138 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_mask() local
153 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_unmask() local
167 struct tqmx86_gpio_data *gpio = gpiochip_get_data( in tqmx86_gpio_irq_set_type() local
200 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); in tqmx86_gpio_irq_handler() local
293 struct tqmx86_gpio_data *gpio; in tqmx86_gpio_probe() local
H 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
H A Dgpio-aspeed-sgpio.c104 static void __iomem *bank_reg(struct aspeed_sgpio *gpio, in bank_reg()
171 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); in aspeed_sgpio_get() local
189 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); in sgpio_set_value() local
216 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); in aspeed_sgpio_set() local
233 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); in aspeed_sgpio_dir_out() local
253 struct aspeed_sgpio **gpio, in irqd_to_aspeed_sgpio_data()
271 struct aspeed_sgpio *gpio; in aspeed_sgpio_irq_ack() local
291 struct aspeed_sgpio *gpio; in aspeed_sgpio_irq_set_mask() local
341 struct aspeed_sgpio *gpio; in aspeed_sgpio_set_type() local
418 struct aspeed_sgpio *gpio; in aspeed_sgpio_irq_print_chip() local
[all …]
H 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()
H A Dgpio-timberdale.c37 struct gpio_chip gpio; member
42 static int timbgpio_update_bit(struct gpio_chip *gpio, unsigned index, in timbgpio_update_bit()
63 static int timbgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in timbgpio_gpio_direction_input()
68 static int timbgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) in timbgpio_gpio_get()
77 static int timbgpio_gpio_direction_output(struct gpio_chip *gpio, in timbgpio_gpio_direction_output()
83 static void timbgpio_gpio_set(struct gpio_chip *gpio, in timbgpio_gpio_set()
89 static int timbgpio_to_irq(struct gpio_chip *gpio, unsigned offset) in timbgpio_to_irq()
H 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()
H 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
H 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()
H A 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
H 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
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H 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()
H 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()
H 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()
/openbmc/linux/drivers/misc/mchp_pci1xxxx/
H A Dmchp_pci1xxxx_gpio.c40 struct gpio_chip gpio; member
45 static int pci1xxxx_gpio_get_direction(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_get_direction()
76 static int pci1xxxx_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_direction_input()
89 static int pci1xxxx_gpio_get(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_get()
96 static int pci1xxxx_gpio_direction_output(struct gpio_chip *gpio, in pci1xxxx_gpio_direction_output()
117 static void pci1xxxx_gpio_set(struct gpio_chip *gpio, in pci1xxxx_gpio_set()
128 static int pci1xxxx_gpio_set_config(struct gpio_chip *gpio, unsigned int offset, in pci1xxxx_gpio_set_config()
163 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_irq_ack() local
175 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_irq_set_mask() local
201 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_set_type() local
/openbmc/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7100.c223 unsigned int gpio) in starfive_gpio_to_pin()
457 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); in starfive_pin_dbg_show() local
560 unsigned int gpio = starfive_pinmux_to_gpio(pinmux[i]); in starfive_dt_node_to_map() local
659 unsigned int gpio = starfive_pinmux_to_gpio(v); in starfive_set_mux() local
941 unsigned int gpio) in starfive_gpio_direction_input()
959 unsigned int gpio, int value) in starfive_gpio_direction_output()
1061 irq_hw_number_t gpio = irqd_to_hwirq(d); in starfive_irq_ack() local
1074 irq_hw_number_t gpio = irqd_to_hwirq(d); in starfive_irq_mask() local
1091 irq_hw_number_t gpio = irqd_to_hwirq(d); in starfive_irq_mask_ack() local
1108 irq_hw_number_t gpio = irqd_to_hwirq(d); in starfive_irq_unmask() local
[all …]
/openbmc/linux/drivers/video/fbdev/via/
H A 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
/openbmc/linux/arch/arm/mach-pxa/
H A 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
/openbmc/u-boot/arch/mips/mach-jz47xx/jz4780/
H A Dgpio.c8 int jz47xx_gpio_get_value(unsigned int gpio) in jz47xx_gpio_get_value()
17 void jz47xx_gpio_direction_input(unsigned int gpio) in jz47xx_gpio_direction_input()
28 void jz47xx_gpio_direction_output(unsigned int gpio, int value) in jz47xx_gpio_direction_output()
/openbmc/u-boot/arch/m68k/cpu/mcf547x_8x/
H A Dcpu_init.c31 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
103 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
128 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-paris.c605 #define mtk_pctrl_get_pinmux(hw, gpio) \ argument
608 #define mtk_pctrl_get_direction(hw, gpio) \ argument
611 #define mtk_pctrl_get_out(hw, gpio) \ argument
614 #define mtk_pctrl_get_in(hw, gpio) \ argument
617 #define mtk_pctrl_get_smt(hw, gpio) \ argument
620 #define mtk_pctrl_get_ies(hw, gpio) \ argument
623 #define mtk_pctrl_get_driving(hw, gpio) \ argument
627 unsigned int gpio, char *buf, unsigned int buf_len) in mtk_pctrl_show_one_pin()
703 unsigned int gpio) in mtk_pctrl_dbg_show()
841 static int mtk_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) in mtk_gpio_get_direction()
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf523x/
H A Dcpu_init.c38 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local
126 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local
161 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local

12345678910>>...30