Home
last modified time | relevance | path

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

12345678910>>...18

/linux/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()
133 const struct gpio *gpio) in dal_gpio_get_id()
139 const struct gpio *gpio) in dal_gpio_get_enum()
[all …]
/linux/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/drivers/ssb/
H A Ddriver_gpio.c26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq()
41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value()
48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value()
57 unsigned int gpio) in ssb_gpio_chipco_direction_input()
66 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output()
75 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_request()
88 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_free()
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
[all …]
/linux/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/drivers/gpio/
H A Dgpio-aspeed.c255 static void __iomem *aspeed_gpio_g4_bank_reg(struct aspeed_gpio *gpio, in aspeed_gpio_g4_bank_reg()
341 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
354 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio()
364 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input()
374 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output()
381 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_gpio_change_cmd_source()
387 static bool aspeed_gpio_copro_request(struct aspeed_gpio *gpio, in aspeed_gpio_copro_request()
396 static void aspeed_gpio_copro_release(struct aspeed_gpio *gpio, in aspeed_gpio_copro_release()
403 static bool aspeed_gpio_support_copro(struct aspeed_gpio *gpio) in aspeed_gpio_support_copro()
411 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local
[all …]
H A Dgpio-wcove.c102 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg()
112 static inline int to_ireg(int gpio, enum ctrl_register type, unsigned int *mask) in to_ireg()
127 static void wcove_update_irq_mask(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_mask()
137 static void wcove_update_irq_ctrl(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_ctrl()
144 static int wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_dir_in()
155 static int wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_dir_out()
167 static int wcove_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get_direction()
186 static int wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get()
202 static void wcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) in wcove_gpio_set()
216 static int wcove_gpio_set_config(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_set_config()
[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-bcm-kona.c24 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
25 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument
28 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument
100 unsigned gpio) in bcm_kona_gpio_lock_gpio()
126 unsigned gpio) in bcm_kona_gpio_unlock_gpio()
147 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir()
157 static void bcm_kona_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) in bcm_kona_gpio_set()
184 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get()
211 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request()
219 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free()
[all …]
H A Dgpio-zynq.c163 static int zynq_gpio_is_zynq(struct zynq_gpio *gpio) in zynq_gpio_is_zynq()
174 static int gpio_data_ro_bug(struct zynq_gpio *gpio) in gpio_data_ro_bug()
194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin()
229 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_value() local
272 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_set_value() local
310 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_in() local
350 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_out() local
384 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_direction() local
409 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local
433 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() 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-npcm-sgpio.c137 static void __iomem *bank_reg(struct npcm_sgpio *gpio, in bank_reg()
165 struct npcm_sgpio **gpio, in npcm_sgpio_irqd_to_data()
180 static int npcm_sgpio_init_port(struct npcm_sgpio *gpio) in npcm_sgpio_init_port()
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
268 static void npcm_sgpio_setup_enable(struct npcm_sgpio *gpio, bool enable) in npcm_sgpio_setup_enable()
283 static int npcm_sgpio_setup_clk(struct npcm_sgpio *gpio, in npcm_sgpio_setup_clk()
310 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_irq_init_valid_mask() local
[all …]
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-cgbc.c38 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_get() local
57 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in __cgbc_gpio_set() local
77 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_set() local
86 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_direction_set() local
109 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_direction_input() local
118 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_direction_output() local
128 struct cgbc_gpio_data *gpio = gpiochip_get_data(chip); in cgbc_gpio_get_direction() local
149 struct cgbc_gpio_data *gpio; in cgbc_gpio_probe() 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
H A Dgpio-tps65912.c26 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local
42 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local
51 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local
63 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local
79 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local
101 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
H A Dgpio-mmio.c131 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set()
166 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get()
213 static void bgpio_set_none(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_none()
217 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set()
234 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear()
245 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set()
326 static int bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_simple_dir_in()
331 static int bgpio_dir_out_err(struct gpio_chip *gc, unsigned int gpio, in bgpio_dir_out_err()
337 static int bgpio_simple_dir_out(struct gpio_chip *gc, unsigned int gpio, in bgpio_simple_dir_out()
345 static int bgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_dir_in()
[all …]
H A Dgpio-lp873x.c41 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_direction_output() local
51 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_get() local
64 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_set() local
73 struct lp873x_gpio *gpio = gpiochip_get_data(gc); in lp873x_gpio_request() local
98 struct lp873x_gpio *gpio = gpiochip_get_data(gc); in lp873x_gpio_set_config() local
136 struct lp873x_gpio *gpio; in lp873x_gpio_probe() local
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dbase.c29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive()
35 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()
80 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set()
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
[all …]
/linux/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()
H A Dpcf50633-gpio.c33 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) in pcf50633_gpio_set()
43 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_get()
54 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) in pcf50633_gpio_invert_set()
65 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_invert_get()
77 int gpio, int regulator, int on) in pcf50633_gpio_power_supply_set()
/linux/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/drivers/net/wireless/ath/ath5k/
H A Dgpio.c106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input()
124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output()
142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio()
159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) in ath5k_hw_set_gpio()
189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, in ath5k_hw_set_gpio_intr()
/linux/arch/m68k/coldfire/
H A Dgpio.c19 int __mcfgpio_get_value(unsigned gpio) in __mcfgpio_get_value()
25 void __mcfgpio_set_value(unsigned gpio, int value) in __mcfgpio_set_value()
50 int __mcfgpio_direction_input(unsigned gpio) in __mcfgpio_direction_input()
65 int __mcfgpio_direction_output(unsigned gpio, int value) in __mcfgpio_direction_output()
96 int __mcfgpio_request(unsigned gpio) in __mcfgpio_request()
102 void __mcfgpio_free(unsigned gpio) in __mcfgpio_free()
/linux/arch/arm/boot/dts/intel/pxa/
H A Dpxa3xx.dtsi5 #define MFP_PIN_PXA300(gpio) \ argument
11 #define MFP_PIN_PXA300_2(gpio) \ argument
16 #define MFP_PIN_PXA310(gpio) \ argument
25 #define MFP_PIN_PXA310_2(gpio) \ argument
31 #define MFP_PIN_PXA320(gpio) \ argument
42 #define MFP_PIN_PXA320_2(gpio) \ argument
170 gpio: gpio@40e00000 { label

12345678910>>...18