Home
last modified time | relevance | path

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

1234567891011

/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/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 int ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value()
59 unsigned int gpio) in ssb_gpio_chipco_direction_input()
68 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output()
77 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_request()
90 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_free()
102 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_mask() local
110 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_unmask() local
131 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.c252 static void __iomem *aspeed_gpio_g4_bank_reg(struct aspeed_gpio *gpio, in aspeed_gpio_g4_bank_reg()
338 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
351 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio()
361 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input()
371 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output()
378 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_gpio_change_cmd_source()
384 static bool aspeed_gpio_copro_request(struct aspeed_gpio *gpio, in aspeed_gpio_copro_request()
393 static void aspeed_gpio_copro_release(struct aspeed_gpio *gpio, in aspeed_gpio_copro_release()
400 static bool aspeed_gpio_support_copro(struct aspeed_gpio *gpio) in aspeed_gpio_support_copro()
408 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local
[all …]
H A Dgpio-wcove.c103 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg()
113 static inline int to_ireg(int gpio, enum ctrl_register type, unsigned int *mask) in to_ireg()
128 static void wcove_update_irq_mask(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_mask()
138 static void wcove_update_irq_ctrl(struct wcove_gpio *wg, irq_hw_number_t gpio) in wcove_update_irq_ctrl()
145 static int wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_dir_in()
156 static int wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_dir_out()
168 static int wcove_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get_direction()
187 static int wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get()
203 static int wcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) in wcove_gpio_set()
214 static int wcove_gpio_set_config(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_set_config()
[all …]
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
219 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_get_direction() local
229 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-mpc5200.c45 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get()
59 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set()
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set()
88 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in()
110 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out()
209 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get()
221 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set()
234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set()
249 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in()
271 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
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-graniterapids.c70 unsigned int gpio) in gnr_gpio_get_padcfg_addr()
75 static int gnr_gpio_configure_line(struct gpio_chip *gc, unsigned int gpio, in gnr_gpio_configure_line()
95 static int gnr_gpio_request(struct gpio_chip *gc, unsigned int gpio) in gnr_gpio_request()
109 static int gnr_gpio_get(struct gpio_chip *gc, unsigned int gpio) in gnr_gpio_get()
119 static int gnr_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) in gnr_gpio_set()
132 static int gnr_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in gnr_gpio_get_direction()
145 static int gnr_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) in gnr_gpio_direction_input()
150 static int gnr_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) in gnr_gpio_direction_output()
170 unsigned int gpio) in gnr_gpio_get_reg_addr()
179 irq_hw_number_t gpio = irqd_to_hwirq(d); in gnr_gpio_irq_ack() local
[all …]
H A Dgpio-octeon.c44 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_in() local
53 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_set() local
64 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_out() local
78 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_get() local
86 struct octeon_gpio *gpio; in octeon_gpio_probe() local
H A Dgpio-vx855.c35 struct gpio_chip gpio; member
80 static int vx855gpio_direction_input(struct gpio_chip *gpio, in vx855gpio_direction_input()
105 static int vx855gpio_get(struct gpio_chip *gpio, unsigned int nr) in vx855gpio_get()
130 static int vx855gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) in vx855gpio_set()
159 static int vx855gpio_direction_output(struct gpio_chip *gpio, in vx855gpio_direction_output()
174 static int vx855gpio_set_config(struct gpio_chip *gpio, unsigned int nr, in vx855gpio_set_config()
H A Dgpio-da9052.c55 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_get() local
94 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_set() local
110 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_direction_input() local
136 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_direction_output() local
161 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_to_irq() local
186 struct da9052_gpio *gpio; in da9052_gpio_probe() local
H A Dgpio-mb86s7x.c41 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request()
58 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free()
73 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input()
91 unsigned gpio, int value) in mb86s70_gpio_direction_output()
115 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get()
122 static int mb86s70_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) in mb86s70_gpio_set()
H A Dgpio-crystalcove.c83 static inline int to_reg(int gpio, enum ctrl_register reg_type) in to_reg()
115 static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_mask()
126 static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_ctrl()
133 static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in crystalcove_gpio_dir_in()
144 static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, int value) in crystalcove_gpio_dir_out()
155 static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in crystalcove_gpio_get()
171 static int crystalcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) in crystalcove_gpio_set()
282 int gpio; in crystalcove_gpio_irq_handler() local
305 int gpio, offset; in crystalcove_gpio_dbg_show() 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 …]
H A Dga102.c27 ga102_gpio_reset(struct nvkm_gpio *gpio, u8 match) in ga102_gpio_reset()
56 ga102_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) in ga102_gpio_drive()
66 ga102_gpio_sense(struct nvkm_gpio *gpio, int line) in ga102_gpio_sense()
73 ga102_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) in ga102_gpio_intr_stat()
87 ga102_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) in ga102_gpio_intr_mask()
/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()
/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 int bcma_gpio_set_value(struct gpio_chip *chip, unsigned int gpio, in bcma_gpio_set_value()
39 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input()
47 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output()
57 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request()
70 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free()
84 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_unmask() local
96 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_mask() local
118 int gpio; in bcma_gpio_irq_handler() local
/linux/drivers/pinctrl/bcm/
H A Dpinctrl-nsp-gpio.c93 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit()
117 unsigned int reg, unsigned gpio) in nsp_get_bit()
157 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local
176 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local
214 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local
272 static int nsp_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_direction_input()
285 static int nsp_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, in nsp_gpio_direction_output()
300 static int nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get_direction()
313 static int nsp_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in nsp_gpio_set()
327 static int nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get()
[all …]
/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
/linux/arch/mips/bcm63xx/
H A Dgpio.c38 static int bcm63xx_gpio_set(struct gpio_chip *chip, unsigned int gpio, int val) in bcm63xx_gpio_set()
68 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_get()
87 unsigned gpio, int dir) in bcm63xx_gpio_set_direction()
116 static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_direction_input()
122 unsigned gpio, int value) in bcm63xx_gpio_direction_output()
/linux/drivers/misc/mchp_pci1xxxx/
H A Dmchp_pci1xxxx_gpio.c43 struct gpio_chip gpio; member
66 static int pci1xxxx_gpio_get_direction(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_get_direction()
97 static int pci1xxxx_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_direction_input()
110 static int pci1xxxx_gpio_get(struct gpio_chip *gpio, unsigned int nr) in pci1xxxx_gpio_get()
117 static int pci1xxxx_gpio_direction_output(struct gpio_chip *gpio, in pci1xxxx_gpio_direction_output()
138 static int pci1xxxx_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) in pci1xxxx_gpio_set()
150 static int pci1xxxx_gpio_set_config(struct gpio_chip *gpio, unsigned int offset, in pci1xxxx_gpio_set_config()
188 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_irq_ack() local
200 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_irq_set_mask() local
226 unsigned int gpio = irqd_to_hwirq(data); in pci1xxxx_gpio_set_type() local
[all …]
/linux/arch/powerpc/platforms/44x/
H A Dgpio.c22 #define GPIO_MASK(gpio) (0x80000000 >> (gpio)) argument
23 #define GPIO_MASK2(gpio) (0xc0000000 >> ((gpio) * 2)) argument
59 static int ppc4xx_gpio_get(struct gpio_chip *gc, unsigned int gpio) in ppc4xx_gpio_get()
68 __ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __ppc4xx_gpio_set()
79 static int ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in ppc4xx_gpio_set()
95 static int ppc4xx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in ppc4xx_gpio_dir_in()
124 ppc4xx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in ppc4xx_gpio_dir_out()

1234567891011