/linux-master/drivers/gpio/ |
H A D | gpio-idt3243x.c | 5 #include <linux/gpio/driver.h> 23 void __iomem *gpio; member in struct:idt_gpio_ctrl 62 ilevel = readl(ctrl->gpio + IDT_GPIO_ILEVEL); 68 writel(ilevel, ctrl->gpio + IDT_GPIO_ILEVEL); 80 writel(~BIT(d->hwirq), ctrl->gpio + IDT_GPIO_ISTAT); 149 ctrl->gpio = devm_platform_ioremap_resource_byname(pdev, "gpio"); 150 if (IS_ERR(ctrl->gpio)) 151 return PTR_ERR(ctrl->gpio); 155 ret = bgpio_init(&ctrl->gc, &pdev->dev, 4, ctrl->gpio [all...] |
H A D | gpio-tb10x.c | 13 #include <linux/gpio/driver.h> 48 static inline u32 tb10x_reg_read(struct tb10x_gpio *gpio, unsigned int offs) argument 50 return ioread32(gpio->base + offs); 53 static inline void tb10x_reg_write(struct tb10x_gpio *gpio, unsigned int offs, argument 56 iowrite32(val, gpio->base + offs); 59 static inline void tb10x_set_bits(struct tb10x_gpio *gpio, unsigned int offs, argument 65 raw_spin_lock_irqsave(&gpio->gc.bgpio_lock, flags); 67 r = tb10x_reg_read(gpio, offs); 70 tb10x_reg_write(gpio, offs, r); 72 raw_spin_unlock_irqrestore(&gpio [all...] |
H A D | gpio-stp-xway.c | 14 #include <linux/gpio/driver.h> 97 * @gpio: GPIO signal number. 101 static int xway_stp_get(struct gpio_chip *gc, unsigned int gpio) argument 105 return (xway_stp_r32(chip->virt, XWAY_STP_CPU0) & BIT(gpio)); 111 * @gpio: GPIO signal number. 116 static void xway_stp_set(struct gpio_chip *gc, unsigned gpio, int val) argument 121 chip->shadow |= BIT(gpio); 123 chip->shadow &= ~BIT(gpio); 130 * xway_stp_dir_out() - gpio_chip->dir_out - set gpio direction. 132 * @gpio 137 xway_stp_dir_out(struct gpio_chip *gc, unsigned gpio, int val) argument 151 xway_stp_request(struct gpio_chip *gc, unsigned gpio) argument [all...] |
H A D | gpio-74xx-mmio.c | 10 #include <linux/gpio/driver.h> 88 static int mmio_74xx_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 98 static int mmio_74xx_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 103 gc->set(gc, gpio, val); 143 .name = "74xx-mmio-gpio",
|
/linux-master/sound/pci/ice1712/ |
H A D | revo.c | 104 ice->gpio.direction &= ~mask; 105 ice->gpio.direction |= val; 106 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); 364 static void write_data(struct snd_ice1712 *ice, unsigned int gpio, argument 369 gpio &= ~VT1724_REVO_CCLK; 370 snd_ice1712_gpio_write(ice, gpio); 374 gpio |= VT1724_REVO_CDOUT; 376 gpio &= ~VT1724_REVO_CDOUT; 377 snd_ice1712_gpio_write(ice, gpio); 380 gpio | 386 read_data(struct snd_ice1712 *ice, unsigned int gpio, int idx) argument [all...] |
/linux-master/arch/mips/alchemy/ |
H A D | board-gpr.c | 17 #include <linux/gpio.h> 19 #include <linux/platform_data/i2c-gpio.h> 20 #include <linux/gpio/machine.h> 26 #include <asm/mach-au1x00/gpio-au1000.h> 167 .gpio = 4, 172 .gpio = 5, 183 .name = "leds-gpio", 194 .dev_id = "i2c-gpio", 220 .name = "i2c-gpio",
|
H A D | board-mtx1.c | 13 #include <linux/gpio.h> 14 #include <linux/gpio/machine.h> 24 #include <asm/mach-au1x00/gpio-au1000.h> 85 .gpio = 207, 97 .name = "gpio-keys", 121 .gpio = 211, 124 .gpio = 212, 134 .name = "leds-gpio", 273 rc = gpio_request(mtx1_gpio_button[0].gpio, 277 mtx1_gpio_button[0].gpio); [all...] |
/linux-master/arch/arm/mach-pxa/ |
H A D | pxa25x.c | 18 #include <linux/gpio.h> 19 #include <linux/gpio-pxa.h> 122 int gpio = pxa_irq_to_gpio(d->irq); local 125 if (gpio >= 0 && gpio < 85) 126 return gpio_set_wake(gpio, on);
|
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx-cards.c | 64 .gpio = NULL, 69 .gpio = NULL, 76 .gpio = NULL, 104 .gpio = NULL, 109 .gpio = NULL, 116 .gpio = NULL, 144 .gpio = NULL, 149 .gpio = NULL, 156 .gpio = NULL, 184 .gpio [all...] |
/linux-master/drivers/soc/fsl/qe/ |
H A D | gpio.c | 16 #include <linux/gpio/legacy-of-mm-gpiochip.h> 17 #include <linux/gpio/consumer.h> 18 #include <linux/gpio/driver.h> 51 static int qe_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument 55 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); 60 static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 66 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); 107 static int qe_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 115 __par_io_config_pin(mm_gc->regs, gpio, QE_PIO_DIR_IN, 0, 0, 0); 122 static int qe_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, in argument [all...] |
/linux-master/arch/mips/include/asm/mach-bcm63xx/ |
H A D | board_bcm963xx.h | 6 #include <linux/gpio.h> 50 /* External PHY reset GPIO flags from gpio.h */
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_led.c | 34 #include <nvkm/subdev/gpio.h> 81 struct nvkm_gpio *gpio = nvxx_gpio(&drm->client.device); local 85 if (!gpio) 89 if (nvkm_gpio_find(gpio, 0, DCB_GPIO_LOGO_LED_PWM, 0xff, &logo_led))
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | fan.c | 28 #include <subdev/gpio.h> 128 struct nvkm_gpio *gpio = device->gpio; local 143 prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, 149 cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, 227 struct nvkm_gpio *gpio = device->gpio; local 233 ret = nvkm_gpio_find(gpio, 0, DCB_GPIO_FAN, 0xff, &func); 259 ret = nvkm_gpio_find(gpio, 0, DCB_GPIO_FAN_SENSE, 0xff,
|
H A D | fanpwm.c | 30 #include <subdev/gpio.h> 42 struct nvkm_gpio *gpio = device->gpio; local 55 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100;
|
/linux-master/drivers/media/usb/gspca/ |
H A D | stk1135.h | 37 __le16 gpio; member in struct:stk1135_pkt_header
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | s5h1409.h | 27 u8 gpio; member in struct:s5h1409_config
|
/linux-master/drivers/usb/phy/ |
H A D | phy-generic.h | 6 #include <linux/gpio/consumer.h>
|
/linux-master/sound/soc/mediatek/mt8192/ |
H A D | Makefile | 7 mt8192-afe-gpio.o \
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk104.c | 27 #include <subdev/gpio.h> 102 struct dcb_gpio_func gpio; local 111 if (!nvkm_gpio_find(device->gpio, 0, DCB_GPIO_VID_PWM, 0xff, &gpio) &&
|
/linux-master/drivers/pinctrl/bcm/ |
H A D | Makefile | 14 obj-$(CONFIG_PINCTRL_IPROC_GPIO) += pinctrl-iproc-gpio.o 17 obj-$(CONFIG_PINCTRL_NSP_GPIO) += pinctrl-nsp-gpio.o
|
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | main.h | 14 #include <linux/gpio/consumer.h>
|
/linux-master/arch/arm/mach-orion5x/ |
H A D | net2big-setup.c | 20 #include <linux/gpio.h> 24 #include <plat/orion-gpio.h> 189 * single GPIO line and are compatible with the leds-gpio driver. 217 .gpio = NET2BIG_GPIO_PWR_RED_LED, 221 .gpio = NET2BIG_GPIO_PWR_BLUE_LED, 225 .gpio = NET2BIG_GPIO_SATA0_RED_LED, 229 .gpio = NET2BIG_GPIO_SATA1_RED_LED, 239 .name = "leds-gpio", 303 .gpio = NET2BIG_GPIO_POWER_SWITCH_OFF, 310 .gpio [all...] |
/linux-master/drivers/counter/ |
H A D | interrupt-cnt.c | 7 #include <linux/gpio/consumer.h> 19 struct gpio_desc *gpio; member in struct:interrupt_cnt_priv 130 if (!priv->gpio) 133 ret = gpiod_get_value(priv->gpio); 179 priv->gpio = devm_gpiod_get_optional(dev, NULL, GPIOD_IN); 180 if (IS_ERR(priv->gpio)) 181 return dev_err_probe(dev, PTR_ERR(priv->gpio), "failed to get GPIO\n"); 183 if (!priv->irq && !priv->gpio) { 189 int irq = gpiod_to_irq(priv->gpio);
|
/linux-master/arch/powerpc/sysdev/ |
H A D | cpm_common.c | 32 #include <linux/gpio/legacy-of-mm-gpiochip.h> 116 static int cpm2_gpio32_get(struct gpio_chip *gc, unsigned int gpio) argument 122 pin_mask = 1 << (31 - gpio); 141 static void cpm2_gpio32_set(struct gpio_chip *gc, unsigned int gpio, int value) argument 146 u32 pin_mask = 1 << (31 - gpio); 155 static int cpm2_gpio32_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 161 u32 pin_mask = 1 << (31 - gpio); 173 static int cpm2_gpio32_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 179 u32 pin_mask = 1 << (31 - gpio);
|
/linux-master/sound/soc/codecs/ |
H A D | cs35l41.h | 13 #include <linux/gpio/consumer.h>
|