/openbmc/linux/drivers/bcma/ |
H A D | driver_gpio.c | 22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value() 29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value() 37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input() 45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output() 55 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request() 68 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free() 82 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_unmask() local 94 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_mask() local 116 int gpio; in bcma_gpio_irq_handler() local
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-aspeed.c | 267 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props() 385 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local 394 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local 414 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_set() local 430 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_in() local 507 struct aspeed_gpio **gpio, in irqd_to_aspeed_gpio_data() 531 struct aspeed_gpio *gpio; in aspeed_gpio_irq_ack() local 557 struct aspeed_gpio *gpio; in aspeed_gpio_irq_set_mask() local 611 struct aspeed_gpio *gpio; in aspeed_gpio_set_type() local 1095 struct aspeed_gpio *gpio; in aspeed_gpio_irq_print_chip() local [all …]
|
H A D | gpio-dwapb.c | 105 struct dwapb_gpio *gpio; member 241 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_ack() local 253 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_mask() local 269 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_unmask() local 285 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_enable() local 301 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_disable() local 317 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_set_type() local 397 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_set_debounce() local 630 struct dwapb_gpio *gpio = data; in dwapb_assert_reset() local 655 struct dwapb_gpio *gpio = data; in dwapb_disable_clks() local [all …]
|
H A D | gpio-bcm-kona.c | 24 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 25 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument 28 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument 84 unsigned gpio) in bcm_kona_gpio_lock_gpio() 100 unsigned gpio) in bcm_kona_gpio_unlock_gpio() 152 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get() 216 unsigned gpio, int value) in bcm_kona_gpio_direction_output() 334 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_ack() local 355 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_mask() local 377 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_unmask() local [all …]
|
H A D | gpio-bd9571mwv.c | 27 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get_direction() local 42 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_input() local 52 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_output() local 65 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get() local 78 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_set() local 99 struct bd9571mwv_gpio *gpio; in bd9571mwv_gpio_probe() local
|
H A D | gpio-tps65912.c | 26 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local 42 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local 51 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local 63 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local 79 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local 101 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
|
H A D | gpio-zynq.c | 194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin() 409 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local 433 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local 454 struct zynq_gpio *gpio = in zynq_gpio_irq_ack() local 505 struct zynq_gpio *gpio = in zynq_gpio_set_irq_type() local 570 struct zynq_gpio *gpio = in zynq_gpio_set_wake() local 655 struct zynq_gpio *gpio = in zynq_gpio_irqhandler() local 738 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_suspend() local 759 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_resume() local 782 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_runtime_suspend() local [all …]
|
H A D | gpio-mpc5200.c | 44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() 58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() 73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() 86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() 109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() 208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() 220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() 234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() 247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() 270 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
|
H A D | gpio-npcm-sgpio.c | 165 struct npcm_sgpio **gpio, in npcm_sgpio_irqd_to_data() 206 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_dir_in() local 221 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_get_direction() local 231 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_set() local 249 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_get() local 310 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_irq_init_valid_mask() local 320 struct npcm_sgpio *gpio; in npcm_sgpio_irq_set_mask() local 357 struct npcm_sgpio *gpio; in npcm_sgpio_irq_ack() local 384 struct npcm_sgpio *gpio; in npcm_sgpio_set_type() local 436 struct npcm_sgpio *gpio = gpiochip_get_data(gc); in npcm_sgpio_irq_handler() local [all …]
|
H A D | gpio-raspberrypi-exp.c | 33 u32 gpio; member 42 u32 gpio; member 50 u32 gpio; member 56 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_polarity() local 76 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_in() local 105 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_out() local 134 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_direction() local 158 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get() local 180 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_set() local
|
H A D | gpio-tegra186.c | 98 struct gpio_chip gpio; member 194 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_init_valid_mask() local 207 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local 225 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local 277 struct tegra_gpio *gpio; in tegra186_gpio_en_hw_ts() local 312 struct tegra_gpio *gpio; in tegra186_gpio_dis_hw_ts() local 496 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_ack() local 509 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_mask() local 527 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_unmask() local 545 struct tegra_gpio *gpio = to_tegra_gpio(gc); in tegra186_irq_set_type() local [all …]
|
H A D | gpio-regmap.c | 48 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() 63 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local 87 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set() local 101 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set_with_clear() local 116 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get_direction() local 152 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set_direction() local 192 void *gpio_regmap_get_drvdata(struct gpio_regmap *gpio) in gpio_regmap_get_drvdata() 206 struct gpio_regmap *gpio; in gpio_regmap_register() local 301 void gpio_regmap_unregister(struct gpio_regmap *gpio) in gpio_regmap_unregister() 327 struct gpio_regmap *gpio; in devm_gpio_regmap_register() local
|
/openbmc/u-boot/arch/m68k/cpu/mcf532x/ |
H A D | cpu_init.c | 26 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 118 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 172 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local 208 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 296 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 333 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
|
/openbmc/u-boot/arch/m68k/cpu/mcf5445x/ |
H A D | cpu_init.c | 78 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 247 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 376 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local 439 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local 464 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local 516 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | gpio.c | 106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input() 124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output() 142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio() 159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) in ath5k_hw_set_gpio() 189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, in ath5k_hw_set_gpio_intr()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | pca9698.c | 42 static void pca9698_set_bit(unsigned gpio, u8 *buffer, unsigned value) in pca9698_set_bit() 53 int pca9698_request(unsigned gpio, const char *label) in pca9698_request() 61 void pca9698_free(unsigned gpio) in pca9698_free() 65 int pca9698_direction_input(u8 addr, unsigned gpio) in pca9698_direction_input() 79 int pca9698_direction_output(u8 addr, unsigned gpio, int value) in pca9698_direction_output() 97 int pca9698_get_value(u8 addr, unsigned gpio) in pca9698_get_value() 114 int pca9698_set_value(u8 addr, unsigned gpio, int value) in pca9698_set_value()
|
H A D | kona_gpio.c | 16 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 17 #define GPIO_BITMASK(gpio) \ argument 45 int gpio_request(unsigned gpio, const char *label) in gpio_request() 57 int gpio_free(unsigned gpio) in gpio_free() 69 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 81 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 100 int gpio_get_value(unsigned gpio) in gpio_get_value() 119 void gpio_set_value(unsigned gpio, int value) in gpio_set_value()
|
H A D | mpc83xx_gpio.c | 36 int gpio_request(unsigned gpio, const char *label) in gpio_request() 44 int gpio_free(unsigned gpio) in gpio_free() 51 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 71 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 99 int gpio_get_value(unsigned gpio) in gpio_get_value() 118 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
|
H A D | tegra_gpio.c | 43 static int get_config(unsigned gpio) in get_config() 60 static void set_config(unsigned gpio, int type) in set_config() 78 static int get_direction(unsigned gpio) in get_direction() 95 static void set_direction(unsigned gpio, int output) in set_direction() 113 static void set_level(unsigned gpio, int high) in set_level() 153 int gpio = state->base_gpio + offset; in tegra_gpio_direction_output() local 171 int gpio = state->base_gpio + offset; in tegra_gpio_get_value() local 189 int gpio = state->base_gpio + offset; in tegra_gpio_set_value() local 225 int gpio = state->base_gpio + offset; in tegra_gpio_get_function() local 238 int gpio, port, ret; in tegra_gpio_xlate() local
|
H A D | sh_pfc.c | 172 static int setup_data_reg(struct pinmux_info *gpioc, unsigned gpio) in setup_data_reg() 228 static int get_data_reg(struct pinmux_info *gpioc, unsigned gpio, in get_data_reg() 290 static int get_gpio_enum_id(struct pinmux_info *gpioc, unsigned gpio, in get_gpio_enum_id() 496 unsigned gpio, int new_pinmux_type) in pinmux_direction() 543 unsigned gpio, int value) in sh_gpio_set_value() 605 int gpio_request(unsigned gpio, const char *label) in gpio_request() 611 int gpio_free(unsigned gpio) in gpio_free() 617 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 622 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 627 void gpio_set_value(unsigned gpio, int value) in gpio_set_value() [all …]
|
H A D | db8500_gpio.c | 60 static void __iomem *get_gpio_addr(unsigned gpio) in get_gpio_addr() 78 static unsigned get_gpio_offset(unsigned gpio) in get_gpio_offset() 84 static void gpio_set_mode(unsigned gpio, enum db8500_gpio_alt mode) in gpio_set_mode() 115 void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull) in db8500_gpio_set_pull() 135 void db8500_gpio_make_input(unsigned gpio) in db8500_gpio_make_input() 143 int db8500_gpio_get_input(unsigned gpio) in db8500_gpio_get_input() 155 void db8500_gpio_make_output(unsigned gpio, int val) in db8500_gpio_make_output() 164 void db8500_gpio_set_output(unsigned gpio, int val) in db8500_gpio_set_output()
|
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/ |
H A D | cpu_init.c | 28 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 116 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 144 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local 154 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local 179 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
|
/openbmc/linux/drivers/pinctrl/bcm/ |
H A D | pinctrl-nsp-gpio.c | 92 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit() 116 unsigned int reg, unsigned gpio) in nsp_get_bit() 156 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local 175 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local 213 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local 299 static int nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get_direction() 324 static int nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get() 363 static int nsp_gpio_set_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_set_pull() 378 static void nsp_gpio_get_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_get_pull() 464 unsigned int gpio; in nsp_pin_config_get() local [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | pcf50633-gpio.c | 33 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) in pcf50633_gpio_set() 43 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_get() 54 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) in pcf50633_gpio_invert_set() 65 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_invert_get() 77 int gpio, int regulator, int on) in pcf50633_gpio_power_supply_set()
|
/openbmc/linux/arch/m68k/coldfire/ |
H A D | gpio.c | 19 int __mcfgpio_get_value(unsigned gpio) in __mcfgpio_get_value() 25 void __mcfgpio_set_value(unsigned gpio, int value) in __mcfgpio_set_value() 50 int __mcfgpio_direction_input(unsigned gpio) in __mcfgpio_direction_input() 65 int __mcfgpio_direction_output(unsigned gpio, int value) in __mcfgpio_direction_output() 96 int __mcfgpio_request(unsigned gpio) in __mcfgpio_request() 102 void __mcfgpio_free(unsigned gpio) in __mcfgpio_free()
|