/linux-master/drivers/ssb/ |
H A D | driver_gpio.c | 13 #include <linux/gpio/driver.h> 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) argument 31 return irq_find_mapping(bus->irq_domain, gpio); 41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) argument 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); 48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, argument 53 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); 57 unsigned int gpio) 61 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 56 ssb_gpio_chipco_direction_input(struct gpio_chip *chip, unsigned int gpio) argument 65 ssb_gpio_chipco_direction_output(struct gpio_chip *chip, unsigned int gpio, int value) argument 75 ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) argument 88 ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) argument 100 int gpio = irqd_to_hwirq(d); local 108 int gpio = irqd_to_hwirq(d); local 129 int gpio; local 146 int gpio, hwirq, err; local 191 int gpio; local 261 ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned int gpio) argument 268 ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned int gpio, int value) argument 276 ssb_gpio_extif_direction_input(struct gpio_chip *chip, unsigned int gpio) argument 285 ssb_gpio_extif_direction_output(struct gpio_chip *chip, unsigned int gpio, int value) argument 299 int gpio = irqd_to_hwirq(d); local 307 int gpio = irqd_to_hwirq(d); local 328 int gpio; local 345 int gpio, hwirq, err; local 389 int gpio; local [all...] |
/linux-master/arch/sh/boards/mach-x3proto/ |
H A D | Makefile | 4 obj-$(CONFIG_GPIOLIB) += gpio.o
|
/linux-master/sound/aoa/core/ |
H A D | Makefile | 5 gpio-pmf.o \ 6 gpio-feature.o
|
/linux-master/include/linux/platform_data/ |
H A D | gpio-davinci.h | 19 #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))
|
/linux-master/arch/arm/plat-orion/ |
H A D | Makefile | 7 orion-gpio-$(CONFIG_GPIOLIB) += gpio.o 9 obj-$(CONFIG_PLAT_ORION_LEGACY) += $(orion-gpio-y)
|
/linux-master/drivers/leds/simple/ |
H A D | Makefile | 3 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_APOLLOLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-apollolake.o 4 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_F7188X) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-f7188x.o 5 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_ELKHARTLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-elkhartlake.o
|
/linux-master/arch/mips/bcm63xx/ |
H A D | gpio.c | 14 #include <linux/gpio/driver.h> 39 unsigned gpio, int val) 46 BUG_ON(gpio >= chip->ngpio); 48 if (gpio < 32) { 50 mask = 1 << gpio; 54 mask = 1 << (gpio - 32); 67 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio) argument 72 BUG_ON(gpio >= chip->ngpio); 74 if (gpio < 32) { 76 mask = 1 << gpio; 38 bcm63xx_gpio_set(struct gpio_chip *chip, unsigned gpio, int val) argument 85 bcm63xx_gpio_set_direction(struct gpio_chip *chip, unsigned gpio, int dir) argument 115 bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument 120 bcm63xx_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int value) argument [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-bd9571mwv.c | 12 #include <linux/gpio/driver.h> 27 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); local 30 ret = regmap_read(gpio->regmap, BD9571MWV_GPIO_DIR, &val); 42 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); local 44 regmap_update_bits(gpio->regmap, BD9571MWV_GPIO_DIR, BIT(offset), 0); 52 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); local 55 regmap_update_bits(gpio->regmap, BD9571MWV_GPIO_OUT, 57 regmap_update_bits(gpio->regmap, BD9571MWV_GPIO_DIR, 65 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); local 68 ret = regmap_read(gpio 78 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); local 99 struct bd9571mwv_gpio *gpio; local [all...] |
H A D | gpio-tps65912.c | 12 #include <linux/gpio/driver.h> 26 struct tps65912_gpio *gpio = gpiochip_get_data(gc); local 30 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); 42 struct tps65912_gpio *gpio = gpiochip_get_data(gc); local 44 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, 51 struct tps65912_gpio *gpio = gpiochip_get_data(gc); local 54 regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, 57 return regmap_update_bits(gpio->tps->regmap, TPS65912_GPIO1 + offset, 63 struct tps65912_gpio *gpio = gpiochip_get_data(gc); local 66 ret = regmap_read(gpio 79 struct tps65912_gpio *gpio = gpiochip_get_data(gc); local 101 struct tps65912_gpio *gpio; local [all...] |
H A D | gpio-altera-a10sr.c | 7 * Adapted from gpio-tps65910.c 10 #include <linux/gpio/driver.h> 28 struct altr_a10sr_gpio *gpio = gpiochip_get_data(chip); local 31 ret = regmap_read(gpio->regmap, ALTR_A10SR_PBDSW_REG, &val); 41 struct altr_a10sr_gpio *gpio = gpiochip_get_data(chip); local 43 regmap_update_bits(gpio->regmap, ALTR_A10SR_LED_REG, 82 struct altr_a10sr_gpio *gpio; local 85 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); 86 if (!gpio) [all...] |
H A D | gpio-da9052.c | 10 #include <linux/gpio/driver.h> 55 struct da9052_gpio *gpio = gpiochip_get_data(gc); local 59 ret = da9052_reg_read(gpio->da9052, 74 ret = da9052_reg_read(gpio->da9052, 77 ret = da9052_reg_read(gpio->da9052, 94 struct da9052_gpio *gpio = gpiochip_get_data(gc); local 98 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + 103 dev_err(gpio->da9052->dev, 104 "Failed to updated gpio odd reg,%d", 107 ret = da9052_reg_update(gpio 120 struct da9052_gpio *gpio = gpiochip_get_data(gc); local 146 struct da9052_gpio *gpio = gpiochip_get_data(gc); local 171 struct da9052_gpio *gpio = gpiochip_get_data(gc); local 196 struct da9052_gpio *gpio; local [all...] |
H A D | gpio-aspeed.c | 9 #include <linux/gpio/aspeed.h> 10 #include <linux/gpio/driver.h> 30 #include <linux/gpio/consumer.h> 210 static inline void __iomem *bank_reg(struct aspeed_gpio *gpio, argument 216 return gpio->base + bank->val_regs + GPIO_VAL_VALUE; 218 return gpio->base + bank->rdata_reg; 220 return gpio->base + bank->val_regs + GPIO_VAL_DIR; 222 return gpio->base + bank->irq_regs + GPIO_IRQ_ENABLE; 224 return gpio->base + bank->irq_regs + GPIO_IRQ_TYPE0; 226 return gpio 266 find_bank_props( struct aspeed_gpio *gpio, unsigned int offset) argument 280 have_gpio(struct aspeed_gpio *gpio, unsigned int offset) argument 290 have_input(struct aspeed_gpio *gpio, unsigned int offset) argument 300 have_output(struct aspeed_gpio *gpio, unsigned int offset) argument 307 aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, const struct aspeed_gpio_bank *bank, int bindex, int cmdsrc) argument 339 aspeed_gpio_copro_request(struct aspeed_gpio *gpio, unsigned int offset) argument 363 aspeed_gpio_copro_release(struct aspeed_gpio *gpio, unsigned int offset) argument 385 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 394 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 414 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 430 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 458 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 486 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 506 irqd_to_aspeed_gpio_data(struct irq_data *d, struct aspeed_gpio **gpio, const struct aspeed_gpio_bank **bank, u32 *bit, int *offset) argument 531 struct aspeed_gpio *gpio; local 557 struct aspeed_gpio *gpio; local 611 struct aspeed_gpio *gpio; local 676 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 697 struct aspeed_gpio *gpio = gpiochip_get_data(gc); local 721 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 761 usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs, u32 *cycles) argument 785 register_allocated_timer(struct aspeed_gpio *gpio, unsigned int offset, unsigned int timer) argument 804 unregister_allocated_timer(struct aspeed_gpio *gpio, unsigned int offset) argument 823 timer_allocation_registered(struct aspeed_gpio *gpio, unsigned int offset) argument 830 configure_timer(struct aspeed_gpio *gpio, unsigned int offset, unsigned int timer) argument 853 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 936 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 954 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 1015 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 1061 struct aspeed_gpio *gpio = gpiochip_get_data(chip); local 1095 struct aspeed_gpio *gpio; local 1174 struct aspeed_gpio *gpio; local [all...] |
H A D | gpio-npcm-sgpio.c | 10 #include <linux/gpio/driver.h> 137 static void __iomem *bank_reg(struct npcm_sgpio *gpio, argument 143 return gpio->base + bank->rdata_reg; 145 return gpio->base + bank->wdata_reg; 147 return gpio->base + bank->event_config; 149 return gpio->base + bank->event_status; 152 dev_WARN(gpio->chip.parent, "Getting here is an error condition"); 165 struct npcm_sgpio **gpio, 174 *gpio = internal; 180 static int npcm_sgpio_init_port(struct npcm_sgpio *gpio) argument 164 npcm_sgpio_irqd_to_data(struct irq_data *d, struct npcm_sgpio **gpio, const struct npcm_sgpio_bank **bank, u8 *bit, unsigned int *offset) argument 206 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 221 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 231 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 249 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 268 npcm_sgpio_setup_enable(struct npcm_sgpio *gpio, bool enable) argument 283 npcm_sgpio_setup_clk(struct npcm_sgpio *gpio, const struct npcm_clk_cfg *clk_cfg) argument 310 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 320 struct npcm_sgpio *gpio; local 357 struct npcm_sgpio *gpio; local 384 struct npcm_sgpio *gpio; local 436 struct npcm_sgpio *gpio = gpiochip_get_data(gc); local 466 npcm_sgpio_setup_irqs(struct npcm_sgpio *gpio, struct platform_device *pdev) argument 503 struct npcm_sgpio *gpio; local [all...] |
H A D | gpio-tegra186.c | 9 #include <linux/gpio/driver.h> 18 #include <dt-bindings/gpio/tegra186-gpio.h> 19 #include <dt-bindings/gpio/tegra194-gpio.h> 20 #include <dt-bindings/gpio/tegra234-gpio.h> 21 #include <dt-bindings/gpio/tegra241-gpio.h> 98 struct gpio_chip gpio; 104 struct gpio_chip gpio; member in struct:tegra_gpio 117 tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) argument 135 tegra186_gpio_get_base(struct tegra_gpio *gpio, unsigned int pin) argument 150 tegra186_gpio_get_secure_base(struct tegra_gpio *gpio, unsigned int pin) argument 165 tegra186_gpio_is_accessible(struct tegra_gpio *gpio, unsigned int pin) argument 192 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 205 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 223 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 246 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 275 struct tegra_gpio *gpio; local 310 struct tegra_gpio *gpio; local 342 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 362 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 383 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 417 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 463 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 494 struct tegra_gpio *gpio = to_tegra_gpio(gc); local 507 struct tegra_gpio *gpio = to_tegra_gpio(gc); local 525 struct tegra_gpio *gpio = to_tegra_gpio(gc); local 543 struct tegra_gpio *gpio = to_tegra_gpio(gc); local 626 struct tegra_gpio *gpio = irq_desc_get_handler_data(desc); local 670 struct tegra_gpio *gpio = gpiochip_get_data(domain->host_data); local 699 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 726 struct tegra_gpio *gpio = gpiochip_get_data(chip); local 746 tegra186_gpio_init_route_mapping(struct tegra_gpio *gpio) argument 792 tegra186_gpio_irqs_per_bank(struct tegra_gpio *gpio) argument 821 struct tegra_gpio *gpio; local [all...] |
H A D | gpio-raspberrypi-exp.c | 12 #include <linux/gpio/driver.h> 17 #define MODULE_NAME "raspberrypi-exp-gpio" 33 u32 gpio; member in struct:gpio_set_config 42 u32 gpio; member in struct:gpio_get_config 50 u32 gpio; member in struct:gpio_get_set_state 56 struct rpi_exp_gpio *gpio; local 60 gpio = gpiochip_get_data(gc); 62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ 64 ret = rpi_firmware_property(gpio->fw, RPI_FIRMWARE_GET_GPIO_CONFIG, 66 if (ret || get.gpio ! 76 struct rpi_exp_gpio *gpio; local 105 struct rpi_exp_gpio *gpio; local 134 struct rpi_exp_gpio *gpio; local 158 struct rpi_exp_gpio *gpio; local 180 struct rpi_exp_gpio *gpio; local [all...] |
H A D | gpio-lp87565.c | 9 #include <linux/gpio/driver.h> 23 struct lp87565_gpio *gpio = gpiochip_get_data(chip); local 26 ret = regmap_read(gpio->map, LP87565_REG_GPIO_IN, &val); 36 struct lp87565_gpio *gpio = gpiochip_get_data(chip); local 38 regmap_update_bits(gpio->map, LP87565_REG_GPIO_OUT, 45 struct lp87565_gpio *gpio = gpiochip_get_data(chip); local 48 ret = regmap_read(gpio->map, LP87565_REG_GPIO_CONFIG, &val); 61 struct lp87565_gpio *gpio = gpiochip_get_data(chip); local 63 return regmap_update_bits(gpio->map, 71 struct lp87565_gpio *gpio local 82 struct lp87565_gpio *gpio = gpiochip_get_data(gc); local 111 struct lp87565_gpio *gpio = gpiochip_get_data(gc); local 148 struct lp87565_gpio *gpio; local [all...] |
H A D | gpio-octeon.c | 12 #include <linux/gpio/driver.h> 16 #include <asm/octeon/cvmx-gpio-defs.h> 44 struct octeon_gpio *gpio = gpiochip_get_data(chip); local 46 cvmx_write_csr(gpio->register_base + bit_cfg_reg(offset), 0); 52 struct octeon_gpio *gpio = gpiochip_get_data(chip); local 54 u64 reg = gpio->register_base + (value ? TX_SET : TX_CLEAR); 61 struct octeon_gpio *gpio = gpiochip_get_data(chip); local 69 cvmx_write_csr(gpio->register_base + bit_cfg_reg(offset), cfgx.u64); 75 struct octeon_gpio *gpio = gpiochip_get_data(chip); local 76 u64 read_bits = cvmx_read_csr(gpio 83 struct octeon_gpio *gpio; local [all...] |
H A D | gpio-tpic2810.c | 7 #include <linux/gpio/driver.h> 54 struct tpic2810 *gpio = gpiochip_get_data(chip); local 58 mutex_lock(&gpio->lock); 60 buffer = gpio->buffer & ~mask; 63 err = i2c_smbus_write_byte_data(gpio->client, TPIC2810_WS_COMMAND, 66 gpio->buffer = buffer; 68 mutex_unlock(&gpio->lock); 103 struct tpic2810 *gpio; local 105 gpio = devm_kzalloc(&client->dev, sizeof(*gpio), GFP_KERNE [all...] |
H A D | gpio-dwapb.c | 10 #include <linux/gpio/driver.h> 46 #define DWAPB_DRIVER_NAME "gpio-dwapb" 104 struct dwapb_gpio *gpio; member in struct:dwapb_gpio_port 111 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio) 141 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) argument 143 if ((gpio->flags & GPIO_REG_OFFSET_MASK) == GPIO_REG_OFFSET_V2) 149 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) argument 151 struct gpio_chip *gc = &gpio->ports[0].gc; 152 void __iomem *reg_base = gpio->regs; 154 return gc->read_reg(reg_base + gpio_reg_convert(gpio, offse 157 dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, u32 val) argument 166 dwapb_offs_to_port(struct dwapb_gpio *gpio, unsigned int offs) argument 180 dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs) argument 202 dwapb_do_irq(struct dwapb_gpio *gpio) argument 224 struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc); local 240 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 252 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 268 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 284 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 300 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 316 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 364 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); local 396 struct dwapb_gpio *gpio = port->gpio; local 443 dwapb_configure_irqs(struct dwapb_gpio *gpio, struct dwapb_gpio_port *port, struct dwapb_port_property *pp) argument 500 dwapb_gpio_add_port(struct dwapb_gpio *gpio, struct dwapb_port_property *pp, unsigned int offs) argument 634 struct dwapb_gpio *gpio = data; local 639 dwapb_get_reset(struct dwapb_gpio *gpio) argument 659 struct dwapb_gpio *gpio = data; local 664 dwapb_get_clks(struct dwapb_gpio *gpio) argument 704 struct dwapb_gpio *gpio; local 753 struct dwapb_gpio *gpio = dev_get_drvdata(dev); local 794 struct dwapb_gpio *gpio = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/pinctrl/qcom/ |
H A D | pinctrl-qdf2xxx.c | 28 /* maximum size of each gpio name (enough room for "gpioXXX" + null) */ 98 unsigned int gpio = gpios[i]; local 100 groups[gpio].grp.npins = 1; 101 snprintf(names[i], NAME_SIZE, "gpio%u", gpio); 102 pins[gpio].name = names[i]; 103 groups[gpio].grp.name = names[i]; 105 groups[gpio].ctl_reg = 0x10000 * gpio; 106 groups[gpio] [all...] |
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | gpio.c | 103 * @gpio: GPIO pin to set as input 106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) argument 108 if (gpio >= AR5K_NUM_GPIO) 112 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) 113 | AR5K_GPIOCR_IN(gpio), AR5K_GPIOCR); 121 * @gpio: The GPIO pin to set as output 124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) argument 126 if (gpio >= AR5K_NUM_GPIO) 130 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) 131 | AR5K_GPIOCR_OUT(gpio), AR5K_GPIOC 142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) argument 159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) argument 189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, u32 interrupt_level) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gpio.c | 26 #include <subdev/bios/gpio.h> 27 #include <subdev/gpio.h> 38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; local 44 int ret = nvkm_gpio_get(gpio, 0, tags[i], 0xff); 57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; local 62 int ret = nvkm_gpio_set(gpio, 0, tags[i], 0xff, vid & 1); 75 struct nvkm_gpio *gpio = subdev->device->gpio; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/include/ |
H A D | gpio_service_interface.h | 31 #include "hw/gpio.h" 35 struct gpio *dal_gpio_create( 42 struct gpio **ptr); 49 struct gpio *dal_gpio_service_create_irq( 54 struct gpio *dal_gpio_service_create_generic_mux( 60 struct gpio **mux); 63 struct gpio *mux, 84 const struct gpio *irq); 87 const struct gpio *irq); 90 struct gpio *ir [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/ |
H A D | hw_factory.h | 33 struct gpio; 55 struct gpio *gpio); 57 struct gpio *gpio); 59 struct gpio *gpio);
|
/linux-master/drivers/mfd/ |
H A D | pcf50633-gpio.c | 16 #include <linux/mfd/pcf50633/gpio.h> 33 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) argument 37 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 43 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) argument 47 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 54 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) argument 58 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 65 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) argument 69 reg = gpio - PCF50633_GPIO1 + PCF50633_REG_GPIO1CFG; 77 int gpio, in 76 pcf50633_gpio_power_supply_set(struct pcf50633 *pcf, int gpio, int regulator, int on) argument [all...] |