Lines Matching defs:gpio
11 #include <linux/gpio/driver.h>
29 static unsigned int sch_gpio_offset(struct sch_gpio *sch, unsigned int gpio,
34 if (gpio >= sch->resume_base) {
35 gpio -= sch->resume_base;
39 return base + reg + gpio / 8;
42 static unsigned int sch_gpio_bit(struct sch_gpio *sch, unsigned int gpio)
44 if (gpio >= sch->resume_base)
45 gpio -= sch->resume_base;
46 return gpio % 8;
49 static int sch_gpio_reg_get(struct sch_gpio *sch, unsigned int gpio, unsigned int reg)
54 offset = sch_gpio_offset(sch, gpio, reg);
55 bit = sch_gpio_bit(sch, gpio);
62 static void sch_gpio_reg_set(struct sch_gpio *sch, unsigned int gpio, unsigned int reg,
68 offset = sch_gpio_offset(sch, gpio, reg);
69 bit = sch_gpio_bit(sch, gpio);
184 * Enable SUS_GPIO3 resume powered gpio explicitly