Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 25 of 2928) sorted by relevance

12345678910>>...118

/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/gpio/
A Dgpio_base.c53 struct gpio *gpio, in dal_gpio_open() argument
60 struct gpio *gpio, in dal_gpio_open_ex() argument
79 const struct gpio *gpio, in dal_gpio_get_value() argument
91 const struct gpio *gpio, in dal_gpio_set_value() argument
103 const struct gpio *gpio) in dal_gpio_get_mode() argument
109 struct gpio *gpio) in dal_gpio_lock_pin() argument
115 struct gpio *gpio) in dal_gpio_unlock_pin() argument
121 struct gpio *gpio, in dal_gpio_change_mode() argument
145 struct gpio *gpio, in dal_gpio_set_config() argument
252 struct gpio *gpio) in dal_gpio_close() argument
[all …]
/linux-6.3-rc2/drivers/gpio/
A DMakefile16 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o
20 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o
27 obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o
34 obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o
57 obj-$(CONFIG_GPIO_EM) += gpio-em.o
64 obj-$(CONFIG_GPIO_GPIO_MM) += gpio-gpio-mm.o
71 obj-$(CONFIG_GPIO_ICH) += gpio-ich.o
111 obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o
112 obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o
119 obj-$(CONFIG_GPIO_PCH) += gpio-pch.o
[all …]
A Dgpio-pcf857x.c125 status = gpio->write(gpio->client, gpio->out); in pcf857x_input()
136 value = gpio->read(gpio->client); in pcf857x_get()
144 int value = gpio->read(gpio->client); in pcf857x_get_multiple()
166 status = gpio->write(gpio->client, gpio->out); in pcf857x_output()
185 gpio->write(gpio->client, gpio->out); in pcf857x_set_multiple()
196 status = gpio->read(gpio->client); in pcf857x_irq()
203 change = (gpio->status ^ status) & gpio->irq_enabled; in pcf857x_irq()
283 gpio = devm_kzalloc(&client->dev, sizeof(*gpio), GFP_KERNEL); in pcf857x_probe()
284 if (!gpio) in pcf857x_probe()
370 gpio->status = gpio->read(gpio->client); in pcf857x_probe()
[all …]
A Dgpio-regmap.c67 ret = gpio->reg_mask_xlate(gpio, base, offset, &reg, &mask); in gpio_regmap_get()
85 gpio->reg_mask_xlate(gpio, base, offset, &reg, &mask); in gpio_regmap_set()
103 gpio->reg_mask_xlate(gpio, base, offset, &reg, &mask); in gpio_regmap_set_with_clear()
114 if (gpio->reg_dat_base && !gpio->reg_set_base) in gpio_regmap_get_direction()
116 if (gpio->reg_set_base && !gpio->reg_dat_base) in gpio_regmap_get_direction()
223 gpio = kzalloc(sizeof(*gpio), GFP_KERNEL); in gpio_regmap_register()
224 if (!gpio) in gpio_regmap_register()
260 if (gpio->reg_set_base && gpio->reg_clr_base) in gpio_regmap_register()
266 if (gpio->reg_dir_in_base || gpio->reg_dir_out_base) { in gpio_regmap_register()
281 return gpio; in gpio_regmap_register()
[all …]
A Dgpio-aspeed.c520 *gpio = internal; in irqd_to_aspeed_gpio_data()
802 if (WARN(gpio->timer_users[gpio->offset_timer[offset]] == 0, in unregister_allocated_timer()
807 gpio->timer_users[gpio->offset_timer[offset]]--; in unregister_allocated_timer()
850 if (!gpio->clk) in enable_debounce()
1144 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in aspeed_gpio_probe()
1145 if (!gpio) in aspeed_gpio_probe()
1162 gpio->clk = NULL; in aspeed_gpio_probe()
1171 gpio->chip.ngpio = gpio->config->nr_gpios; in aspeed_gpio_probe()
1187 if (!gpio->dcache) in aspeed_gpio_probe()
1209 gpio->irq = rc; in aspeed_gpio_probe()
[all …]
A Dgpio-dwapb.c229 dwapb_do_irq(gpio); in dwapb_irq_handler()
393 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_set_debounce() local
505 port->gpio = gpio; in dwapb_gpio_add_port()
635 gpio->rst = devm_reset_control_get_optional_shared(gpio->dev, NULL); in dwapb_get_reset()
637 return dev_err_probe(gpio->dev, PTR_ERR(gpio->rst), in dwapb_get_reset()
646 return devm_add_action_or_reset(gpio->dev, dwapb_assert_reset, gpio); in dwapb_get_reset()
664 gpio->clks); in dwapb_get_clks()
705 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in dwapb_gpio_probe()
706 if (!gpio) in dwapb_gpio_probe()
716 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe()
[all …]
A Dgpio-zynq.c407 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local
428 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local
679 gpio->context.dirm[bank_num] = readl_relaxed(gpio->base_addr + in zynq_gpio_save_context()
681 gpio->context.int_en[bank_num] = readl_relaxed(gpio->base_addr + in zynq_gpio_save_context()
763 enable_irq(gpio->irq); in zynq_gpio_resume()
901 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in zynq_gpio_probe()
902 if (!gpio) in zynq_gpio_probe()
918 if (gpio->irq < 0) in zynq_gpio_probe()
919 return gpio->irq; in zynq_gpio_probe()
922 chip = &gpio->chip; in zynq_gpio_probe()
[all …]
A Dgpio-tegra186.c735 gpio->num_irqs_per_bank = gpio->num_irq / gpio->num_banks; in tegra186_gpio_irqs_per_bank()
744 gpio->num_irq, gpio->num_banks); in tegra186_gpio_irqs_per_bank()
762 gpio->gpio.label = gpio->soc->name; in tegra186_gpio_probe()
763 gpio->gpio.parent = &pdev->dev; in tegra186_gpio_probe()
815 gpio->gpio.get = tegra186_gpio_get; in tegra186_gpio_probe()
824 gpio->gpio.base = -1; in tegra186_gpio_probe()
827 gpio->gpio.ngpio += gpio->soc->ports[i].pins; in tegra186_gpio_probe()
829 names = devm_kcalloc(gpio->gpio.parent, gpio->gpio.ngpio, in tegra186_gpio_probe()
853 gpio->gpio.of_gpio_n_cells = 2; in tegra186_gpio_probe()
857 irq = &gpio->gpio.irq; in tegra186_gpio_probe()
[all …]
A Dgpio-pisosr.c40 mutex_lock(&gpio->lock); in pisosr_gpio_refresh()
42 if (gpio->load_gpio) { in pisosr_gpio_refresh()
49 ret = spi_read(gpio->spi, gpio->buffer, gpio->buffer_size); in pisosr_gpio_refresh()
51 mutex_unlock(&gpio->lock); in pisosr_gpio_refresh()
125 gpio = devm_kzalloc(dev, sizeof(*gpio), GFP_KERNEL); in pisosr_gpio_probe()
126 if (!gpio) in pisosr_gpio_probe()
135 gpio->spi = spi; in pisosr_gpio_probe()
137 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe()
138 gpio->buffer = devm_kzalloc(dev, gpio->buffer_size, GFP_KERNEL); in pisosr_gpio_probe()
139 if (!gpio->buffer) in pisosr_gpio_probe()
[all …]
/linux-6.3-rc2/arch/mips/include/asm/mach-au1x00/
A Dgpio-au1000.h43 struct gpio;
65 gpio -= ALCHEMY_GPIO1_BASE; in au1500_gpio1_to_irq()
67 switch (gpio) { in au1500_gpio1_to_irq()
78 gpio -= ALCHEMY_GPIO2_BASE; in au1500_gpio2_to_irq()
80 switch (gpio) { in au1500_gpio2_to_irq()
118 if ((gpio >= 8) && (gpio <= 15)) in au1100_gpio2_to_irq()
140 switch (gpio) { in au1550_gpio1_to_irq()
153 switch (gpio) { in au1550_gpio2_to_irq()
189 switch (gpio) { in au1200_gpio2_to_irq()
249 return ((gpio >= ALCHEMY_GPIO1_BASE) && (gpio <= ALCHEMY_GPIO1_MAX)); in alchemy_gpio1_is_valid()
[all …]
/linux-6.3-rc2/arch/m68k/include/asm/
A Dmcfgpio.h129 #define mcfgpio_bit(gpio) (1 << ((gpio) % MCFGPIO_PORTSIZE)) argument
130 #define mcfgpio_port(gpio) ((gpio) / MCFGPIO_PORTSIZE) argument
178 if (gpio < 16) in __mcfgpio_ppdr()
185 if (gpio < 32) in __mcfgpio_ppdr()
194 if (gpio < 8) in __mcfgpio_ppdr()
221 if (gpio < 16) in __mcfgpio_podr()
228 if (gpio < 32) in __mcfgpio_podr()
237 if (gpio < 8) in __mcfgpio_podr()
264 if (gpio < 16) in __mcfgpio_pddr()
271 if (gpio < 32) in __mcfgpio_pddr()
[all …]
A Dgpio.h24 if (__builtin_constant_p(gpio) && gpio < MCFGPIO_PIN_MAX) in gpio_get_value()
25 return mcfgpio_read(__mcfgpio_ppdr(gpio)) & mcfgpio_bit(gpio); in gpio_get_value()
27 return __gpio_get_value(gpio); in gpio_get_value()
32 if (__builtin_constant_p(gpio) && gpio < MCFGPIO_PIN_MAX) { in gpio_set_value()
40 data |= mcfgpio_bit(gpio); in gpio_set_value()
42 data &= ~mcfgpio_bit(gpio); in gpio_set_value()
60 if ((gpio >= MCFGPIO_IRQ_MIN) && (gpio < MCFGPIO_IRQ_MAX)) in gpio_to_irq()
62 if (gpio < MCFGPIO_IRQ_MAX) in gpio_to_irq()
66 return __gpio_to_irq(gpio); in gpio_to_irq()
71 return gpio < MCFGPIO_PIN_MAX ? 0 : __gpio_cansleep(gpio); in gpio_cansleep()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/include/
A Dgpio_interface.h36 struct gpio *gpio,
40 struct gpio *gpio,
45 const struct gpio *gpio,
50 const struct gpio *gpio,
55 const struct gpio *gpio);
59 struct gpio *gpio,
64 struct gpio *gpio);
68 struct gpio *gpio);
80 struct gpio *gpio,
85 const struct gpio *gpio,
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/pinctrl/
A Dqcom,pmic-gpio.yaml20 - qcom,pm2250-gpio
21 - qcom,pm660-gpio
81 gpio-controller: true
83 gpio-ranges:
86 gpio-line-names:
90 gpio-reserved-ranges:
96 '#gpio-cells':
107 - gpio-controller
108 - '#gpio-cells'
109 - gpio-ranges
[all …]
A Dmarvell,armada-375-pinctrl.txt32 mpp16 16 gpio, uart0(txd)
33 mpp17 17 gpio, uart0(rxd)
34 mpp18 18 gpio, tdm(int)
35 mpp19 19 gpio, tdm(rst)
36 mpp20 20 gpio, tdm(pclk)
37 mpp21 21 gpio, tdm(fsync)
38 mpp22 22 gpio, tdm(drx)
39 mpp23 23 gpio, tdm(dtx)
56 mpp40 40 gpio, uart1(txd)
74 mpp58 58 gpio, led(c0)
[all …]
A Dmarvell,armada-xp-pinctrl.txt59 mpp38 38 gpio, spi0(sck)
60 mpp39 39 gpio, spi0(cs0)
82 mpp49 49 gpio, dev(we3)
83 mpp50 50 gpio, dev(we2)
84 mpp51 51 gpio, dev(ad16)
85 mpp52 52 gpio, dev(ad17)
86 mpp53 53 gpio, dev(ad18)
87 mpp54 54 gpio, dev(ad19)
88 mpp55 55 gpio, dev(ad20)
89 mpp56 56 gpio, dev(ad21)
[all …]
A Dmarvell,kirkwood-pinctrl.txt306 mpp34 34 gpio
307 mpp35 35 gpio
308 mpp36 36 gpio
309 mpp37 37 gpio
310 mpp38 38 gpio
311 mpp39 39 gpio
312 mpp40 40 gpio
313 mpp41 41 gpio
314 mpp42 42 gpio
315 mpp43 43 gpio
[all …]
/linux-6.3-rc2/arch/arm/boot/dts/
A Dexynos5410-pinctrl.dtsi13 gpio-controller;
14 #gpio-cells = <2>;
21 gpio-controller;
22 #gpio-cells = <2>;
29 gpio-controller;
30 #gpio-cells = <2>;
37 gpio-controller;
45 gpio-controller;
53 gpio-controller;
61 gpio-controller;
[all …]
/linux-6.3-rc2/include/asm-generic/
A Dgpio.h28 struct gpio;
38 extern void gpio_free(unsigned gpio);
70 return gpiod_get_raw_value(gpio_to_desc(gpio)); in __gpio_get_value()
79 return gpiod_cansleep(gpio_to_desc(gpio)); in __gpio_cansleep()
82 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq() argument
84 return gpiod_to_irq(gpio_to_desc(gpio)); in __gpio_to_irq()
100 static inline void gpio_unexport(unsigned gpio) in gpio_unexport() argument
102 gpiod_unexport(gpio_to_desc(gpio)); in gpio_unexport()
113 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() argument
121 return __gpio_get_value(gpio); in gpio_get_value_cansleep()
[all …]
/linux-6.3-rc2/arch/arc/boot/dts/
A Dabilis_tb100.dtsi160 gpio-controller;
173 gpio-controller;
186 gpio-controller;
199 gpio-controller;
212 gpio-controller;
225 gpio-controller;
238 gpio-controller;
251 gpio-controller;
264 gpio-controller;
277 gpio-controller;
[all …]
A Dabilis_tb101.dtsi169 gpio-controller;
182 gpio-controller;
195 gpio-controller;
208 gpio-controller;
221 gpio-controller;
234 gpio-controller;
247 gpio-controller;
260 gpio-controller;
273 gpio-controller;
286 gpio-controller;
[all …]
/linux-6.3-rc2/drivers/ssb/
A Ddriver_gpio.c129 int gpio; in ssb_gpio_irq_chipco_handler() local
134 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_chipco_handler()
157 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init()
177 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init()
191 int gpio; in ssb_gpio_irq_chipco_domain_exit() local
198 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_exit()
328 int gpio; in ssb_gpio_irq_extif_handler() local
333 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler()
356 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init()
375 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
A Dbase.c31 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive()
37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense()
44 gpio->func->reset(gpio, func); in nvkm_gpio_reset()
114 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_fini() local
115 gpio->func->intr_mask(gpio, type, 1 << index, 0); in nvkm_gpio_intr_fini()
122 gpio->func->intr_mask(gpio, type, 1 << index, 1 << index); in nvkm_gpio_intr_init()
137 gpio->func->intr_stat(gpio, &hi, &lo); in nvkm_gpio_intr()
152 gpio->func->intr_mask(gpio, NVKM_GPIO_TOGGLED, mask, 0); in nvkm_gpio_fini()
153 gpio->func->intr_stat(gpio, &mask, &mask); in nvkm_gpio_fini()
213 return gpio; in nvkm_gpio_dtor()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/gpio/
A Drenesas,rcar-gpio.yaml4 $id: http://devicetree.org/schemas/gpio/renesas,rcar-gpio.yaml#
73 gpio-controller: true
75 '#gpio-cells':
83 gpio-ranges:
86 gpio-reserved-ranges:
96 gpio-hog: true
104 - gpio-hog
113 - gpio-controller
114 - '#gpio-cells'
115 - gpio-ranges
[all …]
A Dfsl-imx-gpio.yaml4 $id: http://devicetree.org/schemas/gpio/fsl-imx-gpio.yaml#
16 - fsl,imx1-gpio
17 - fsl,imx21-gpio
18 - fsl,imx31-gpio
19 - fsl,imx35-gpio
63 "#gpio-cells":
68 gpio-ranges: true
77 gpio-hog: true
85 - gpio-hog
96 - "#gpio-cells"
[all …]

Completed in 86 milliseconds

12345678910>>...118