Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
H A Dhw_gpio.c43 struct hw_gpio *gpio) in store_registers()
52 struct hw_gpio *gpio) in restore_registers()
77 const struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr); in dal_hw_gpio_get_value() local
99 struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr); in dal_hw_gpio_set_value() local
142 struct hw_gpio *gpio, in dal_hw_gpio_config_mode()
/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/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/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()
/linux/drivers/gpio/
H A Dgpio-bcm-kona.c25 #define GPIO_BANK(gpio) ((gpio) >> 5) argument
26 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument
29 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument
101 unsigned gpio) in bcm_kona_gpio_lock_gpio()
124 unsigned gpio) in bcm_kona_gpio_unlock_gpio()
142 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir()
152 static int bcm_kona_gpio_set(struct gpio_chip *chip, unsigned int gpio, in bcm_kona_gpio_set()
179 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get()
204 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request()
212 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free()
[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
85 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local
114 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local
151 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
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-tegra186.c99 struct gpio_chip gpio; member
112 tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) in tegra186_gpio_get_port()
130 static void __iomem *tegra186_gpio_get_base(struct tegra_gpio *gpio, in tegra186_gpio_get_base()
145 static void __iomem *tegra186_gpio_get_secure_base(struct tegra_gpio *gpio, in tegra186_gpio_get_secure_base()
160 static inline bool tegra186_gpio_is_accessible(struct tegra_gpio *gpio, unsigned int pin) in tegra186_gpio_is_accessible()
195 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_init_valid_mask() local
208 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local
226 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local
249 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_output() local
278 struct tegra_gpio *gpio; in tegra186_gpio_en_hw_ts() local
[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
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-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-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
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-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 void vx855gpio_set(struct gpio_chip *gpio, unsigned int nr, in vx855gpio_set()
158 static int vx855gpio_direction_output(struct gpio_chip *gpio, in vx855gpio_direction_output()
173 static int vx855gpio_set_config(struct gpio_chip *gpio, unsigned int nr, in vx855gpio_set_config()
H A Dgpio-octeon.c44 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_in() local
52 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_set() local
61 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_out() local
75 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_get() local
83 struct octeon_gpio *gpio; in octeon_gpio_probe() 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 …]
H A Dpinctrl-iproc-gpio.c142 unsigned gpio, bool set) in iproc_set_bit()
157 unsigned gpio) in iproc_get_bit()
201 unsigned gpio = d->hwirq; in iproc_gpio_irq_ack() local
220 unsigned gpio = irqd_to_hwirq(d); in iproc_gpio_irq_set_mask() local
253 unsigned gpio = d->hwirq; in iproc_gpio_irq_set_type() local
351 static int iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in iproc_gpio_direction_input()
365 static int iproc_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, in iproc_gpio_direction_output()
381 static int iproc_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in iproc_gpio_get_direction()
393 static int iproc_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in iproc_gpio_set()
407 static int iproc_gpio_get(struct gpio_chip *gc, unsigned gpio) in iproc_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/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 …]

12345678910>>...17