Lines Matching defs:gpio
3 * arch/sh/boards/mach-x3proto/gpio.c
13 #include <linux/gpio/driver.h>
29 static int x3proto_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
36 data |= (1 << gpio);
43 static int x3proto_gpio_get(struct gpio_chip *chip, unsigned gpio)
45 return !!(__raw_readw(KEYDETR) & (1 << gpio));
48 static int x3proto_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
52 if (gpio < chip->ngpio)
53 virq = irq_create_mapping(x3proto_irq_domain, gpio);
77 .label = "x3proto-gpio",
89 "gpio");