Searched refs:gpio (Results 151 - 175 of 2002) sorted by relevance

1234567891011>>

/linux-master/drivers/pcmcia/
H A Dmax1600.h22 struct gpio_desc *gpio[MAX1600_GPIO_MAX]; member in struct:max1600
/linux-master/arch/arm/mach-s3c/
H A Dsetup-i2c0-s3c64xx.c8 // Base S3C64XX I2C bus 0 gpio configuration
12 #include <linux/gpio.h>
17 #include "gpio-cfg.h"
18 #include "gpio-samsung.h"
H A Dsetup-i2c1-s3c64xx.c8 // Base S3C64XX I2C bus 1 gpio configuration
12 #include <linux/gpio.h>
17 #include "gpio-cfg.h"
18 #include "gpio-samsung.h"
H A DMakefile17 obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o
22 obj-$(CONFIG_SAMSUNG_PM_GPIO) += pm-gpio.o
/linux-master/include/linux/
H A Deeprom_93xx46.h6 #include <linux/gpio/consumer.h>
H A Dgpio_keys.h12 * @gpio: %-1 if this key does not support gpio
14 * depressed when gpio is low
15 * @desc: label that will be attached to button's gpio
28 int gpio; member in struct:gpio_keys_button
/linux-master/arch/arm/mach-orion5x/
H A Dboard-d2net.c16 #include <linux/gpio.h>
20 #include <plat/orion-gpio.h>
58 .gpio = D2NET_GPIO_BLUE_LED_OFF,
63 .gpio = D2NET_GPIO_RED_LED,
73 .name = "leds-gpio",
H A Dmv2120-setup.c10 #include <linux/gpio.h>
81 .gpio = MV2120_GPIO_KEY_RESET,
86 .gpio = MV2120_GPIO_KEY_POWER,
98 .name = "gpio-keys",
142 .gpio = 0,
146 .gpio = 1,
150 .gpio = 4,
155 .gpio = 5,
159 .gpio = 8,
164 .gpio
[all...]
/linux-master/arch/mips/bcm47xx/
H A Dworkarounds.c4 #include <linux/gpio.h>
14 pr_err("Failed to request USB power gpio: %d\n", err);
/linux-master/include/linux/regulator/
H A Dgpio-regulator.h3 * gpio-regulator.h
20 #include <linux/gpio/consumer.h>
29 * @gpios: bitfield of gpio target-states for the value
32 * and the necessary gpio-state to achieve it.
55 * the gpio state for specific voltages
60 * This structure contains gpio-voltage regulator configuration
62 * gpio-voltage regulator driver.
/linux-master/arch/arm/mach-sa1100/
H A Dpm.c59 unsigned long gpio, sleep_save[SLEEP_SAVE_COUNT]; local
61 gpio = GPLR;
108 GPSR = gpio;
109 GPCR = ~gpio;
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dconn.c28 #include <subdev/gpio.h>
47 struct nvkm_gpio *gpio = disp->engine.subdev.device->gpio; local
67 ret = nvkm_gpio_find(gpio, 0, info->hpd, DCB_GPIO_UNUSED, &func);
/linux-master/arch/powerpc/platforms/52xx/
H A Dlite5200.c40 { .compatible = "fsl,mpc5200-gpio", },
41 { .compatible = "mpc5200-gpio", },
90 struct mpc52xx_gpio __iomem *gpio; local
94 gpio = of_iomap(np, 0);
96 if (!gpio) {
103 port_config = in_be32(&gpio->port_config);
114 in_be32(&gpio->port_config), port_config);
115 out_be32(&gpio->port_config, port_config);
118 iounmap(gpio);
/linux-master/arch/mips/rb532/
H A Dgpio.c35 #include <linux/gpio/driver.h>
38 #include <asm/mach-rc32434/gpio.h>
153 static int rb532_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) argument
155 return 8 + 4 * 32 + gpio;
176 void rb532_gpio_set_ilevel(int bit, unsigned gpio) argument
178 rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOILEVEL);
185 void rb532_gpio_set_istat(int bit, unsigned gpio) argument
187 rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOISTAT);
194 void rb532_gpio_set_func(unsigned gpio) argument
196 rb532_set_bit(1, gpio, rb532_gpio_chi
[all...]
/linux-master/net/rfkill/
H A Drfkill-gpio.c16 #include <linux/gpio/consumer.h>
78 struct gpio_desc *gpio; local
111 gpio = devm_gpiod_get_optional(&pdev->dev, "reset", GPIOD_ASIS);
112 if (IS_ERR(gpio))
113 return PTR_ERR(gpio);
115 rfkill->reset_gpio = gpio;
117 gpio = devm_gpiod_get_optional(&pdev->dev, "shutdown", GPIOD_ASIS);
118 if (IS_ERR(gpio))
119 return PTR_ERR(gpio);
121 rfkill->shutdown_gpio = gpio;
[all...]
/linux-master/drivers/pinctrl/bcm/
H A Dpinctrl-iproc-gpio.c19 #include <linux/gpio/driver.h>
138 * @gpio: GPIO pin
142 unsigned gpio, bool set)
144 unsigned int offset = IPROC_GPIO_REG(gpio, reg);
145 unsigned int shift = IPROC_GPIO_SHIFT(gpio);
157 unsigned gpio)
159 unsigned int offset = IPROC_GPIO_REG(gpio, reg);
160 unsigned int shift = IPROC_GPIO_SHIFT(gpio);
201 unsigned gpio = d->hwirq; local
202 unsigned int offset = IPROC_GPIO_REG(gpio,
141 iproc_set_bit(struct iproc_gpio *chip, unsigned int reg, unsigned gpio, bool set) argument
156 iproc_get_bit(struct iproc_gpio *chip, unsigned int reg, unsigned gpio) argument
220 unsigned gpio = irqd_to_hwirq(d); local
253 unsigned gpio = d->hwirq; local
351 iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) argument
365 iproc_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, int val) argument
381 iproc_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
393 iproc_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) argument
405 iproc_gpio_get(struct gpio_chip *gc, unsigned gpio) argument
496 iproc_gpio_set_pull(struct iproc_gpio *chip, unsigned gpio, bool disable, bool pull_up) argument
542 iproc_gpio_get_pull(struct iproc_gpio *chip, unsigned gpio, bool *disable, bool *pull_up) argument
574 iproc_gpio_set_strength(struct iproc_gpio *chip, unsigned gpio, unsigned strength) argument
611 iproc_gpio_get_strength(struct iproc_gpio *chip, unsigned gpio, u16 *strength) argument
648 unsigned gpio = iproc_pin_to_gpio(pin); local
699 unsigned i, gpio = iproc_pin_to_gpio(pin); local
[all...]
/linux-master/drivers/gpio/
H A Dgpio-pch.c6 #include <linux/gpio/driver.h>
84 * @gpio: Data for GPIO infrastructure.
96 struct gpio_chip gpio; member in struct:pch_gpio
103 static void pch_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) argument
106 struct pch_gpio *chip = gpiochip_get_data(gpio);
120 static int pch_gpio_get(struct gpio_chip *gpio, unsigned int nr) argument
122 struct pch_gpio *chip = gpiochip_get_data(gpio);
127 static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr, argument
130 struct pch_gpio *chip = gpiochip_get_data(gpio);
154 static int pch_gpio_direction_input(struct gpio_chip *gpio, unsigne argument
204 pch_gpio_to_irq(struct gpio_chip *gpio, unsigned int offset) argument
213 struct gpio_chip *gpio = &chip->gpio; local
[all...]
H A Dgpio-xgene-sb.c15 #include <linux/gpio/driver.h>
58 #define GPIO_TO_HWIRQ(priv, gpio) ((gpio) - (priv)->irq_start)
61 void __iomem *reg, u32 gpio, int val)
67 data |= GPIO_MASK(gpio);
69 data &= ~GPIO_MASK(gpio);
76 int gpio = HWIRQ_TO_GPIO(priv, d->hwirq); local
93 gpio * 2, 1);
112 static int xgene_gpio_sb_to_irq(struct gpio_chip *gc, u32 gpio) argument
117 if ((gpio < pri
60 xgene_gpio_set_bit(struct gpio_chip *gc, void __iomem *reg, u32 gpio, int val) argument
133 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); local
153 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); local
[all...]
H A Dgpio-timberdale.c13 #include <linux/gpio/driver.h>
21 #define DRIVER_NAME "timb-gpio"
37 struct gpio_chip gpio; member in struct:timbgpio
42 static int timbgpio_update_bit(struct gpio_chip *gpio, unsigned index, argument
45 struct timbgpio *tgpio = gpiochip_get_data(gpio);
63 static int timbgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) argument
65 return timbgpio_update_bit(gpio, nr, TGPIODIR, true);
68 static int timbgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) argument
70 struct timbgpio *tgpio = gpiochip_get_data(gpio);
77 static int timbgpio_gpio_direction_output(struct gpio_chip *gpio, argument
83 timbgpio_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) argument
89 timbgpio_to_irq(struct gpio_chip *gpio, unsigned offset) argument
[all...]
H A Dgpio-dln2.c15 #include <linux/gpio/driver.h>
48 struct gpio_chip gpio; member in struct:dln2_gpio
382 dev_err(dln2->gpio.parent, "failed to set event\n");
413 dev_err(dln2->gpio.parent, "short event message\n");
418 if (pin >= dln2->gpio.ngpio) {
419 dev_err(dln2->gpio.parent, "out of bounds pin %d\n", pin);
434 ret = generic_handle_domain_irq(dln2->gpio.irq.domain, pin);
436 dev_err(dln2->gpio.parent, "pin %d not mapped to IRQ\n", pin);
465 dln2->gpio.label = "dln2";
466 dln2->gpio
[all...]
H A Dgpio-bt8xx.c37 #include <linux/gpio/driver.h>
52 struct gpio_chip gpio; member in struct:bt8xxgpio
69 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) argument
71 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
90 static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) argument
92 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
103 static int bt8xxgpio_gpio_direction_output(struct gpio_chip *gpio, argument
106 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
128 static void bt8xxgpio_gpio_set(struct gpio_chip *gpio, argument
131 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
[all...]
/linux-master/drivers/media/rc/
H A Dgpio-ir-tx.c8 #include <linux/gpio/consumer.h>
15 #define DRIVER_NAME "gpio-ir-tx"
19 struct gpio_desc *gpio; member in struct:gpio_ir
25 { .compatible = "gpio-ir-tx", },
86 gpiod_set_value(gpio_ir->gpio, !(i % 2));
92 gpiod_set_value(gpio_ir->gpio, 0);
127 gpiod_set_value(gpio_ir->gpio, 1);
133 gpiod_set_value(gpio_ir->gpio, 0);
176 gpio_ir->gpio = devm_gpiod_get(&pdev->dev, NULL, GPIOD_OUT_LOW);
177 if (IS_ERR(gpio_ir->gpio))
[all...]
/linux-master/drivers/usb/misc/
H A Dusb4604.c14 #include <linux/gpio/consumer.h>
86 struct gpio_desc *gpio; local
89 gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
90 if (IS_ERR(gpio))
91 return PTR_ERR(gpio);
92 hub->gpio_reset = gpio;
/linux-master/drivers/platform/x86/intel/int3472/
H A Dcommon.h8 #include <linux/gpio/machine.h>
86 struct gpio_desc *gpio; member in struct:int3472_discrete_device::int3472_gpio_regulator
104 struct gpio_desc *gpio; member in struct:int3472_discrete_device::int3472_pled
120 struct gpio_desc *gpio);
125 struct gpio_desc *gpio);
128 int skl_int3472_register_pled(struct int3472_discrete_device *int3472, struct gpio_desc *gpio);
/linux-master/arch/arm/common/
H A Dscoop.c11 #include <linux/gpio/driver.h>
33 struct gpio_chip gpio; member in struct:scoop_dev
212 devptr->gpio.base = -1;
215 devptr->gpio.label = dev_name(&pdev->dev);
216 devptr->gpio.base = inf->gpio_base;
217 devptr->gpio.ngpio = 12; /* PA11 = 0, PA12 = 1, etc. up to PA22 = 11 */
218 devptr->gpio.set = scoop_gpio_set;
219 devptr->gpio.get = scoop_gpio_get;
220 devptr->gpio.direction_input = scoop_gpio_direction_input;
221 devptr->gpio
[all...]

Completed in 240 milliseconds

1234567891011>>