/linux-master/drivers/leds/simple/ |
H A D | simatic-ipc-leds-gpio-f7188x.c | 11 #include <linux/gpio/machine.h> 12 #include <linux/gpio/consumer.h> 18 #include "simatic-ipc-leds-gpio.h" 26 .dev_id = "leds-gpio", 28 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW), 29 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW), 30 GPIO_LOOKUP_IDX("gpio-f7188x-2", 2, NULL, 2, GPIO_ACTIVE_LOW), 31 GPIO_LOOKUP_IDX("gpio-f7188x-2", 3, NULL, 3, GPIO_ACTIVE_LOW), 32 GPIO_LOOKUP_IDX("gpio-f7188x-2", 4, NULL, 4, GPIO_ACTIVE_LOW), 33 GPIO_LOOKUP_IDX("gpio [all...] |
H A D | simatic-ipc-leds-gpio-core.c | 11 #include <linux/gpio/machine.h> 12 #include <linux/gpio/consumer.h> 18 #include "simatic-ipc-leds-gpio.h" 67 "leds-gpio", PLATFORM_DEVID_NONE, NULL, 0, 106 MODULE_SOFTDEP("pre: platform:leds-gpio");
|
/linux-master/arch/powerpc/platforms/52xx/ |
H A D | media5200.c | 30 { .compatible = "fsl,mpc5200-gpio", }, 31 { .compatible = "mpc5200-gpio", }, 196 struct mpc52xx_gpio __iomem *gpio; local 209 gpio = of_iomap(np, 0); 211 if (!gpio) { 218 port_config = in_be32(&gpio->port_config); 223 out_be32(&gpio->port_config, port_config); 226 iounmap(gpio);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | pxa27x.c | 13 #include <linux/gpio.h> 14 #include <linux/gpio-pxa.h> 67 * to_gpio == true: configured to generic output gpio and driven high 203 int gpio = pxa_irq_to_gpio(d->irq); local 206 if (gpio >= 0 && gpio < 128) 207 return gpio_set_wake(gpio, on);
|
/linux-master/drivers/video/fbdev/omap2/omapfb/displays/ |
H A D | panel-dpi.c | 9 #include <linux/gpio/consumer.h> 146 struct gpio_desc *gpio; local 148 gpio = devm_gpiod_get_optional(&pdev->dev, "enable", GPIOD_OUT_LOW); 149 if (IS_ERR(gpio)) 150 return PTR_ERR(gpio); 152 ddata->enable_gpio = gpio;
|
H A D | encoder-opa362.c | 14 #include <linux/gpio/consumer.h> 185 struct gpio_desc *gpio; local 201 gpio = devm_gpiod_get_optional(&pdev->dev, "enable", GPIOD_OUT_LOW); 202 if (IS_ERR(gpio)) 203 return PTR_ERR(gpio); 205 ddata->enable_gpio = gpio;
|
/linux-master/arch/arm/mach-orion5x/ |
H A D | net2big-setup.c | 20 #include <linux/gpio.h> 21 #include <linux/gpio/machine.h> 25 #include <plat/orion-gpio.h> 190 * single GPIO line and are compatible with the leds-gpio driver. 231 .dev_id = "leds-gpio", 251 .name = "leds-gpio", 316 .gpio = NET2BIG_GPIO_POWER_SWITCH_OFF, 323 .gpio = NET2BIG_GPIO_POWER_SWITCH_ON, 330 .gpio = NET2BIG_GPIO_PUSH_BUTTON, 342 .name = "gpio [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-input.c | 35 /* sample from gpio pin 16 */ 71 u32 gpio, data, auxgpio; local 73 /* read gpio value */ 74 gpio = cx_read(ir->gpio_addr); 85 * gpio = 0x758, auxgpio = 0xe5 or 0xf5 87 * gpio = 0x758, auxgpio = 0xed or 0xfd 92 gpio = (gpio & 0x7fd) + (auxgpio & 0xef); 101 gpio = (gpio [all...] |
/linux-master/drivers/mfd/ |
H A D | ucb1x00-core.c | 28 #include <linux/gpio/driver.h> 543 ucb->gpio.base = -1; 565 ucb->gpio.label = dev_name(&ucb->dev); 566 ucb->gpio.parent = &ucb->dev; 567 ucb->gpio.owner = THIS_MODULE; 568 ucb->gpio.base = pdata->gpio_base; 569 ucb->gpio.ngpio = 10; 570 ucb->gpio.set = ucb1x00_gpio_set; 571 ucb->gpio.get = ucb1x00_gpio_get; 572 ucb->gpio [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | rsdumpinfo.c | 251 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(gpio.revision_id), "RevisionId", NULL}, 252 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(gpio.connection_type), 254 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(gpio.producer_consumer), 256 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(gpio.pin_config), "PinConfig", 258 {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.shareable), "Sharing", 260 {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.io_restriction), 262 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(gpio.triggering), "Triggering", 264 {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.polarity), "Polarity", 266 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(gpio.drive_strength), "DriveStrength", 268 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(gpio [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-sx150x.c | 22 #include <linux/gpio/driver.h> 100 struct gpio_chip gpio; member in struct:sx150x_pinctrl 558 handle_nested_irq(irq_find_mapping(pctl->gpio.irq.domain, n)); 708 ret = sx150x_gpio_get_direction(&pctl->gpio, pin); 715 ret = sx150x_gpio_get(&pctl->gpio, pin); 747 ret = sx150x_gpio_direction_output(&pctl->gpio, 819 ret = sx150x_gpio_direction_output(&pctl->gpio, 1172 pctl->gpio.base = -1; 1173 pctl->gpio.ngpio = pctl->data->npins; 1174 pctl->gpio [all...] |
H A D | pinctrl-microchip-sgpio.c | 3 * Microsemi/Microchip SoCs serial gpio driver 13 #include <linux/gpio/driver.h> 107 static const char * const functions[] = { "gpio" }; 112 struct gpio_chip gpio; member in struct:sgpio_bank 527 static int microchip_sgpio_direction_input(struct gpio_chip *gc, unsigned int gpio) argument 536 unsigned int gpio, int value) 546 sgpio_pin_to_addr(priv, gpio, &addr); 551 static int microchip_sgpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument 559 unsigned int gpio, int value) 561 microchip_sgpio_direction_output(gc, gpio, valu 535 microchip_sgpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) argument 558 microchip_sgpio_set_value(struct gpio_chip *gc, unsigned int gpio, int value) argument 564 microchip_sgpio_get_value(struct gpio_chip *gc, unsigned int gpio) argument 646 unsigned int gpio = irqd_to_hwirq(data); local 681 unsigned int gpio = irqd_to_hwirq(data); local 712 unsigned int gpio = irqd_to_hwirq(data); local 766 int bit, port, gpio; local [all...] |
/linux-master/drivers/usb/dwc3/ |
H A D | dwc3-octeon.c | 209 static void dwc3_octeon_config_gpio(int index, int gpio) argument 215 && gpio <= 31) { 216 gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_BIT_CFGX(gpio)); 219 cvmx_write_csr(CVMX_GPIO_BIT_CFGX(gpio), gpio_bit.u64); 220 } else if (gpio <= 15) { 221 gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_BIT_CFGX(gpio)); 224 cvmx_write_csr(CVMX_GPIO_BIT_CFGX(gpio), gpio_bit.u64); 226 gpio_bit.u64 = cvmx_read_csr(CVMX_GPIO_XBIT_CFGX(gpio)); 229 cvmx_write_csr(CVMX_GPIO_XBIT_CFGX(gpio), gpio_bit.u64); 240 static inline void dwc3_octeon_config_gpio(int index, int gpio) { } argument [all...] |
/linux-master/sound/pci/ |
H A D | fm801.c | 766 struct snd_fm801_tea575x_gpio gpio = *get_tea575x_gpio(chip); local 768 reg &= ~(FM801_GPIO_GP(gpio.data) | 769 FM801_GPIO_GP(gpio.clk) | 770 FM801_GPIO_GP(gpio.wren)); 772 reg |= (pins & TEA575X_DATA) ? FM801_GPIO_GP(gpio.data) : 0; 773 reg |= (pins & TEA575X_CLK) ? FM801_GPIO_GP(gpio.clk) : 0; 775 reg |= (pins & TEA575X_WREN) ? 0 : FM801_GPIO_GP(gpio.wren); 784 struct snd_fm801_tea575x_gpio gpio = *get_tea575x_gpio(chip); local 788 if (reg & FM801_GPIO_GP(gpio.data)) 790 if (reg & FM801_GPIO_GP(gpio 799 struct snd_fm801_tea575x_gpio gpio = *get_tea575x_gpio(chip); local [all...] |
/linux-master/drivers/media/pci/saa7134/ |
H A D | saa7134-input.c | 48 u32 gpio, data; local 61 gpio = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2); 63 if (ir->last_gpio == gpio) 65 ir->last_gpio = gpio; 68 data = ir_extract_bits(gpio, ir->mask_keycode); 69 input_dbg("build_key gpio=0x%x mask=0x%x data=%d\n", 70 gpio, ir->mask_keycode, data); 83 if ((ir->mask_keydown && (0 != (gpio & ir->mask_keydown))) || 84 (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { 92 if ((ir->mask_keydown && (0 != (gpio 108 int gpio, rc; local 165 int gpio, rc; local 216 unsigned int gpio; local 297 u32 gpio; local [all...] |
/linux-master/sound/pci/ice1712/ |
H A D | quartet.c | 269 orig_dir = ice->gpio.get_dir(ice); 270 ice->gpio.set_dir(ice, orig_dir | GPIO_SPI_ALL); 272 ice->gpio.set_mask(ice, ~GPIO_SPI_ALL); 274 tmp = ice->gpio.get_data(ice); 277 ice->gpio.set_data(ice, tmp); 285 ice->gpio.set_data(ice, tmp); 294 ice->gpio.set_data(ice, tmp); 301 ice->gpio.set_data(ice, tmp); 305 ice->gpio.set_data(ice, tmp); 310 ice->gpio [all...] |
H A D | prodigy192.c | 432 static void write_data(struct snd_ice1712 *ice, unsigned int gpio, argument 437 gpio &= ~VT1724_PRODIGY192_CCLK; 438 snd_ice1712_gpio_write(ice, gpio); 442 gpio |= VT1724_PRODIGY192_CDOUT; 444 gpio &= ~VT1724_PRODIGY192_CDOUT; 445 snd_ice1712_gpio_write(ice, gpio); 448 gpio |= VT1724_PRODIGY192_CCLK; 449 snd_ice1712_gpio_write(ice, gpio); 457 static unsigned char read_data(struct snd_ice1712 *ice, unsigned int gpio, argument 464 gpio [all...] |
/linux-master/drivers/fsi/ |
H A D | fsi-master-gpio.c | 10 #include <linux/gpio/consumer.h> 774 struct gpio_desc *gpio; local 787 gpio = devm_gpiod_get(&pdev->dev, "clock", 0); 788 if (IS_ERR(gpio)) { 789 dev_err(&pdev->dev, "failed to get clock gpio\n"); 790 rc = PTR_ERR(gpio); 793 master->gpio_clk = gpio; 795 gpio = devm_gpiod_get(&pdev->dev, "data", 0); 796 if (IS_ERR(gpio)) { 797 dev_err(&pdev->dev, "failed to get data gpio\ [all...] |
H A D | fsi-master-aspeed.c | 17 #include <linux/gpio/consumer.h> 470 struct gpio_desc *gpio; local 473 gpio = devm_gpiod_get_optional(dev, "cfam-reset", GPIOD_OUT_LOW); 474 if (IS_ERR(gpio)) 475 return PTR_ERR(gpio); 476 if (!gpio) 479 aspeed->cfam_reset_gpio = gpio; 483 devm_gpiod_put(dev, gpio); 493 int gpio; local 512 gpio [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-davinci.c | 9 #include <linux/gpio/driver.h> 21 #include <linux/platform_data/gpio-davinci.h> 68 static inline u32 __gpio_mask(unsigned gpio) argument 70 return 1 << (gpio % 32); 142 * Assuming the pin is muxed as a gpio output, set its output value. 178 ret = of_property_read_u32(dn, "ti,davinci-gpio-unbanked", &val); 208 * The gpio banks conceptually expose a segmented bitmap, 478 unsigned gpio, bank; local 502 clk = devm_clk_get(dev, "gpio"); 504 dev_err(dev, "Error %ld getting gpio cloc [all...] |
/linux-master/arch/arm/mach-s3c/ |
H A D | mach-crag6410.c | 18 #include <linux/gpio.h> 19 #include <linux/gpio/machine.h> 29 #include <linux/gpio/driver.h> 40 #include <linux/mfd/wm831x/gpio.h> 47 #include "regs-gpio.h" 48 #include "gpio-samsung.h" 53 #include "gpio-cfg.h" 64 #include "regs-gpio-memport-s3c64xx.h" 209 .gpio = S3C64XX_GPL(10), /* EINT 18 */ 216 .gpio [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 21 #include <linux/gpio.h> 22 #include <linux/gpio/consumer.h> 26 #define DRV_NAME "gpio-keys-polled" 76 "failed to get gpio state: %d\n", state); 190 fwnode_property_read_bool(child, "gpio-key,wakeup"); 223 { .compatible = "gpio-keys-polled", }, 304 "failed to get gpio\n"); 306 } else if (gpio_is_valid(button->gpio)) { 316 error = devm_gpio_request_one(dev, button->gpio, 320 "unable to claim gpio [all...] |
/linux-master/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm2835.c | 17 #include <linux/gpio/driver.h> 98 #define BCM2835_GPIO_PIN(a) PINCTRL_PIN(a, "gpio" #a) 426 unsigned gpio; local 432 gpio = (32 * bank) + offset; 434 gpio); 524 unsigned gpio = irqd_to_hwirq(data); local 525 unsigned offset = GPIO_REG_SHIFT(gpio); 526 unsigned bank = GPIO_REG_OFFSET(gpio); 529 gpiochip_enable_irq(chip, gpio); 533 bcm2835_gpio_irq_config(pc, gpio, tru 541 unsigned gpio = irqd_to_hwirq(data); local 650 unsigned gpio = irqd_to_hwirq(data); local 677 unsigned gpio = irqd_to_hwirq(data); local 686 unsigned gpio = irqd_to_hwirq(data); local [all...] |
/linux-master/sound/pci/oxygen/ |
H A D | xonar_pcm179x.c | 855 u16 gpio; local 857 gpio = oxygen_read16(chip, OXYGEN_GPIO_DATA); 858 if (!(gpio & GPIO_ST_HP)) 860 else if (gpio & GPIO_ST_HP_REAR) 873 u16 gpio_old, gpio; local 877 gpio = gpio_old; 880 gpio &= ~(GPIO_ST_HP | GPIO_ST_HP_REAR); 883 gpio |= GPIO_ST_HP | GPIO_ST_HP_REAR; 886 gpio = (gpio | GPIO_ST_H 969 u16 gpio; local 986 u16 gpio_old, gpio; local [all...] |
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-gpio.c | 3 * mxl111sf-gpio.c - driver for the MaxLinear MXL111SF 8 #include "mxl111sf-gpio.h" 166 int gpio, int direction, int val) 169 .pin = gpio, 174 mxl_debug("(%d, %d, %d)", gpio, direction, val); 548 static int mxl111sf_hw_set_gpio(struct mxl111sf_state *state, int gpio, int val) argument 550 return mxl111sf_hw_do_set_gpio(state, gpio, MXL_GPIO_DIR_OUTPUT, val); 570 static int pca9534_set_gpio(struct mxl111sf_state *state, int gpio, int val) argument 581 mxl_debug("(%d, %d)", gpio, val); 594 w[1] &= ~(1 << gpio); 165 mxl111sf_hw_do_set_gpio(struct mxl111sf_state *state, int gpio, int direction, int val) argument 627 mxl111sf_set_gpio(struct mxl111sf_state *state, int gpio, int val) argument [all...] |