Searched refs:gpio (Results 51 - 75 of 2002) sorted by relevance

1234567891011>>

/linux-master/drivers/gpio/
H A Dgpio-zynq.c10 #include <linux/gpio/driver.h>
20 #define DRIVER_NAME "zynq-gpio"
117 * struct zynq_gpio - gpio device private data structure
137 * struct zynq_platform_data - zynq gpio platform data structure
138 * @label: string to store in gpio->label
140 * @ngpio: max number of gpio pins
141 * @max_bank: maximum number of gpio banks
159 * @gpio: Pointer to driver data struct
163 static int zynq_gpio_is_zynq(struct zynq_gpio *gpio) argument
165 return !!(gpio
174 gpio_data_ro_bug(struct zynq_gpio *gpio) argument
191 zynq_gpio_get_bank_pin(unsigned int pin_num, unsigned int *bank_num, unsigned int *bank_pin_num, struct zynq_gpio *gpio) argument
229 struct zynq_gpio *gpio = gpiochip_get_data(chip); local
272 struct zynq_gpio *gpio = gpiochip_get_data(chip); local
310 struct zynq_gpio *gpio = gpiochip_get_data(chip); local
350 struct zynq_gpio *gpio = gpiochip_get_data(chip); local
384 struct zynq_gpio *gpio = gpiochip_get_data(chip); local
409 struct zynq_gpio *gpio = local
433 struct zynq_gpio *gpio = local
454 struct zynq_gpio *gpio = local
505 struct zynq_gpio *gpio = local
570 struct zynq_gpio *gpio = local
626 zynq_gpio_handle_bank_irq(struct zynq_gpio *gpio, unsigned int bank_num, unsigned long pending) argument
655 struct zynq_gpio *gpio = local
674 zynq_gpio_save_context(struct zynq_gpio *gpio) argument
703 zynq_gpio_restore_context(struct zynq_gpio *gpio) argument
738 struct zynq_gpio *gpio = dev_get_drvdata(dev); local
759 struct zynq_gpio *gpio = dev_get_drvdata(dev); local
782 struct zynq_gpio *gpio = dev_get_drvdata(dev); local
791 struct zynq_gpio *gpio = dev_get_drvdata(dev); local
902 struct zynq_gpio *gpio; local
1015 struct zynq_gpio *gpio = platform_get_drvdata(pdev); local
[all...]
H A Dgpio-da9055.c11 #include <linux/gpio/driver.h>
35 struct da9055_gpio *gpio = gpiochip_get_data(gc); local
40 ret = da9055_reg_read(gpio->da9055, (offset >> 1) + DA9055_REG_GPIO0_1);
48 ret = da9055_reg_read(gpio->da9055, DA9055_REG_STATUS_B);
53 ret = da9055_reg_read(gpio->da9055, DA9055_REG_GPIO_MODE0_2);
64 struct da9055_gpio *gpio = gpiochip_get_data(gc); local
66 da9055_reg_update(gpio->da9055,
74 struct da9055_gpio *gpio = gpiochip_get_data(gc); local
80 return da9055_reg_update(gpio->da9055, (offset >> 1) +
90 struct da9055_gpio *gpio local
112 struct da9055_gpio *gpio = gpiochip_get_data(gc); local
134 struct da9055_gpio *gpio; local
[all...]
H A Dgpio-lp873x.c9 #include <linux/gpio/driver.h>
41 struct lp873x_gpio *gpio = gpiochip_get_data(chip); local
44 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL,
51 struct lp873x_gpio *gpio = gpiochip_get_data(chip); local
54 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val);
64 struct lp873x_gpio *gpio = gpiochip_get_data(chip); local
66 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL,
73 struct lp873x_gpio *gpio = gpiochip_get_data(gc); local
82 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG,
98 struct lp873x_gpio *gpio local
136 struct lp873x_gpio *gpio; local
[all...]
H A Dgpio-tps65219.c9 #include <linux/gpio/driver.h>
28 struct tps65219_gpio *gpio = gpiochip_get_data(gc); local
34 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_1_CONFIG, &val);
43 struct tps65219_gpio *gpio = gpiochip_get_data(gc); local
44 struct device *dev = gpio->tps->dev;
52 ret = regmap_read(gpio->tps->regmap, TPS65219_REG_MFP_CTRL, &val);
72 struct tps65219_gpio *gpio = gpiochip_get_data(gc); local
73 struct device *dev = gpio->tps->dev;
81 if (regmap_update_bits(gpio->tps->regmap, TPS65219_REG_GENERAL_CONFIG, mask, v))
88 struct tps65219_gpio *gpio local
119 struct tps65219_gpio *gpio = gpiochip_get_data(gc); local
161 struct tps65219_gpio *gpio; local
[all...]
H A Dgpio-aspeed-sgpio.c10 #include <linux/gpio/driver.h>
104 static void __iomem *bank_reg(struct aspeed_sgpio *gpio, argument
110 return gpio->base + bank->val_regs + GPIO_VAL_VALUE;
112 return gpio->base + bank->rdata_reg;
114 return gpio->base + bank->irq_regs + GPIO_IRQ_ENABLE;
116 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE0;
118 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE1;
120 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE2;
122 return gpio->base + bank->irq_regs + GPIO_IRQ_STATUS;
124 return gpio
171 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); local
189 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); local
216 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); local
233 struct aspeed_sgpio *gpio = gpiochip_get_data(gc); local
252 irqd_to_aspeed_sgpio_data(struct irq_data *d, struct aspeed_sgpio **gpio, const struct aspeed_sgpio_bank **bank, u32 *bit, int *offset) argument
271 struct aspeed_sgpio *gpio; local
291 struct aspeed_sgpio *gpio; local
341 struct aspeed_sgpio *gpio; local
418 struct aspeed_sgpio *gpio; local
436 aspeed_sgpio_setup_irqs(struct aspeed_sgpio *gpio, struct platform_device *pdev) argument
489 struct aspeed_sgpio *gpio = gpiochip_get_data(chip); local
541 struct aspeed_sgpio *gpio; local
[all...]
H A Dgpio-tqmx86.c11 #include <linux/gpio/driver.h>
57 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); local
59 return !!(tqmx86_gpio_read(gpio, TQMX86_GPIOD) & BIT(offset));
65 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); local
69 raw_spin_lock_irqsave(&gpio->spinlock, flags);
70 val = tqmx86_gpio_read(gpio, TQMX86_GPIOD);
75 tqmx86_gpio_write(gpio, val, TQMX86_GPIOD);
76 raw_spin_unlock_irqrestore(&gpio->spinlock, flags);
113 struct tqmx86_gpio_data *gpio = gpiochip_get_data( local
120 raw_spin_lock_irqsave(&gpio
131 struct tqmx86_gpio_data *gpio = gpiochip_get_data( local
149 struct tqmx86_gpio_data *gpio = gpiochip_get_data( local
185 struct tqmx86_gpio_data *gpio = gpiochip_get_data(chip); local
250 struct tqmx86_gpio_data *gpio; local
[all...]
H A Dgpio-bd71828.c4 #include <linux/gpio/driver.h>
16 struct gpio_chip gpio; member in struct:bd71828_gpio
36 dev_err(bdgpio->dev, "Could not set gpio to %d\n", value);
86 * we trust that if the pin is not excluded by "gpio-reserved-ranges"
108 bdgpio->gpio.parent = dev->parent;
109 bdgpio->gpio.label = "bd71828-gpio";
110 bdgpio->gpio.owner = THIS_MODULE;
111 bdgpio->gpio.get_direction = bd71828_get_direction;
112 bdgpio->gpio
[all...]
H A Dgpio-mb86s7x.c3 * linux/drivers/gpio/gpio-mb86s7x.c
18 #include <linux/gpio/driver.h>
42 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) argument
50 val = readl(gchip->base + PFR(gpio));
51 val &= ~OFFSET(gpio);
52 writel(val, gchip->base + PFR(gpio));
59 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) argument
67 val = readl(gchip->base + PFR(gpio));
68 val |= OFFSET(gpio);
74 mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) argument
91 mb86s70_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, int value) argument
116 mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) argument
123 mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) argument
[all...]
/linux-master/arch/arm/mach-s3c/
H A Dsetup-keypad-s3c64xx.c8 #include <linux/gpio.h>
9 #include "gpio-cfg.h"
11 #include "gpio-samsung.h"
H A Dsetup-spi-s3c64xx.c6 #include <linux/gpio.h>
8 #include "gpio-cfg.h"
9 #include "gpio-samsung.h"
/linux-master/drivers/bcma/
H A Ddriver_gpio.c11 #include <linux/gpio/driver.h>
22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) argument
26 return !!bcma_chipco_gpio_in(cc, 1 << gpio);
29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, argument
34 bcma_chipco_gpio_out(cc, 1 << gpio, value ? 1 << gpio : 0);
37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
41 bcma_chipco_gpio_outen(cc, 1 << gpio, 0);
45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, argument
50 bcma_chipco_gpio_outen(cc, 1 << gpio,
55 bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) argument
68 bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) argument
82 int gpio = irqd_to_hwirq(d); local
94 int gpio = irqd_to_hwirq(d); local
116 int gpio; local
[all...]
/linux-master/arch/arm/mach-pxa/
H A Dmfp-pxa2xx.c12 #include <linux/gpio.h>
13 #include <linux/gpio-pxa.h>
46 unsigned int mux_mask; /* bit mask of muxed gpio bits, 0 if no mux */
54 static int __mfp_config_gpio(unsigned gpio, unsigned long c) argument
56 unsigned long gafr, mask = GPIO_bit(gpio);
57 int bank = gpio_to_bank(gpio);
58 int uorl = !!(gpio & 0x10); /* GAFRx_U or GAFRx_L ? */
59 int shft = (gpio & 0xf) << 1;
75 if (is_out ^ gpio_desc[gpio].dir_inverted)
76 GPDR(gpio) |
123 int gpio = mfp_to_gpio(mfp); local
137 int i, gpio; local
157 int gpio; local
172 gpio_set_wake(unsigned int gpio, unsigned int on) argument
257 unsigned int i, gpio, mask = 0; local
298 int i, gpio; local
[all...]
/linux-master/tools/gpio/
H A DMakefile6 # This will work when gpio is built in tools env. where srctree
21 ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon gpio-watch
32 $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h
34 ln -sf $(CURDIR)/../../include/uapi/linux/gpio.h $@
36 prepare: $(OUTPUT)include/linux/gpio.h
38 GPIO_UTILS_IN := $(OUTPUT)gpio-utils-in.o
40 $(Q)$(MAKE) $(build)=gpio
[all...]
/linux-master/drivers/net/wireless/ath/ath5k/
H A Drfkill.c41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n",
42 ah->rf_kill.gpio, ah->rf_kill.polarity);
43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio);
44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity);
50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n",
51 ah->rf_kill.gpio, ah->rf_kill.polarity);
52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio);
53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity);
60 ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio);
61 curval = ath5k_hw_get_gpio(ah, ah->rf_kill.gpio);
[all...]
/linux-master/drivers/mfd/
H A Dwm8350-gpio.c15 #include <linux/mfd/wm8350/gpio.h>
18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) argument
26 1 << gpio);
30 1 << gpio);
35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) argument
39 1 << gpio);
42 WM8350_GPIO_DEBOUNCE, 1 << gpio);
45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) argument
50 switch (gpio) {
138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, in argument
150 gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) argument
162 gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) argument
174 gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) argument
183 wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, int pol, int pull, int invert, int debounce) argument
[all...]
/linux-master/drivers/siox/
H A DMakefile3 obj-$(CONFIG_SIOX_BUS_GPIO) += siox-bus-gpio.o
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/
H A Dhw_generic.h48 struct hw_gpio_pin *dal_hw_generic_get_pin(struct gpio *gpio);
H A Dhw_ddc.h47 struct hw_gpio_pin *dal_hw_ddc_get_pin(struct gpio *gpio);
H A Dhw_hpd.h47 struct hw_gpio_pin *dal_hw_hpd_get_pin(struct gpio *gpio);
/linux-master/arch/powerpc/platforms/4xx/
H A Dgpio.c3 * PPC4xx gpio driver
17 #include <linux/gpio/legacy-of-mm-gpiochip.h>
18 #include <linux/gpio/driver.h>
22 #define GPIO_MASK(gpio) (0x80000000 >> (gpio))
23 #define GPIO_MASK2(gpio) (0xc0000000 >> ((gpio) * 2))
55 * There are a maximum of 32 gpios in each gpio controller.
58 static int ppc4xx_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
63 return !!(in_be32(&regs->ir) & GPIO_MASK(gpio));
67 __ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
79 ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
93 ppc4xx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
123 ppc4xx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
[all...]
/linux-master/include/linux/
H A Dof_gpio.h14 #include <linux/gpio/driver.h>
15 #include <linux/gpio.h> /* FIXME: Shouldn't be here */
/linux-master/include/linux/mfd/pcf50633/
H A Dgpio.h3 * gpio.h -- GPIO driver for NXP PCF50633
38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val);
39 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio);
41 int pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert);
42 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio);
45 int gpio, int regulator, int on);
/linux-master/drivers/gpu/drm/gma500/
H A Dintel_gmbus.c103 static u32 get_reserved(struct intel_gpio *gpio) argument
105 struct drm_psb_private *dev_priv = gpio->dev_priv;
109 reserved = GMBUS_REG_READ(gpio->reg) &
118 struct intel_gpio *gpio = data; local
119 struct drm_psb_private *dev_priv = gpio->dev_priv;
120 u32 reserved = get_reserved(gpio);
121 GMBUS_REG_WRITE(gpio->reg, reserved | GPIO_CLOCK_DIR_MASK);
122 GMBUS_REG_WRITE(gpio->reg, reserved);
123 return (GMBUS_REG_READ(gpio->reg) & GPIO_CLOCK_VAL_IN) != 0;
128 struct intel_gpio *gpio local
138 struct intel_gpio *gpio = data; local
155 struct intel_gpio *gpio = data; local
183 struct intel_gpio *gpio; local
224 struct intel_gpio *gpio = container_of(adapter, local
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dnv31.c27 #include <subdev/gpio.h>
36 u32 gpio = nvkm_rd32(device, 0x001104) & nvkm_rd32(device, 0x001144); local
38 if (gpio) {
39 struct nvkm_gpio *gpio = device->gpio; local
40 if (gpio)
41 nvkm_subdev_intr(&gpio->subdev);
/linux-master/drivers/video/fbdev/via/
H A Dvia-gpio.c9 #include <linux/gpio/driver.h>
10 #include <linux/gpio/machine.h>
14 #include "via-gpio.h"
89 struct viafb_gpio *gpio; local
93 gpio = cfg->active_gpios[nr];
94 reg = via_read_reg(VIASR, gpio->vg_port_index);
95 reg |= 0x40 << gpio->vg_mask_shift; /* output enable */
97 reg |= 0x10 << gpio->vg_mask_shift;
99 reg &= ~(0x10 << gpio->vg_mask_shift);
100 via_write_reg(VIASR, gpio
118 struct viafb_gpio *gpio; local
133 struct viafb_gpio *gpio; local
161 viafb_gpio_enable(struct viafb_gpio *gpio) argument
166 viafb_gpio_disable(struct viafb_gpio *gpio) argument
210 struct viafb_gpio *gpio; local
[all...]

Completed in 266 milliseconds

1234567891011>>