Lines Matching refs:gpio_num
146 static int it87_gpio_request(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_request() argument
152 mask = 1 << (gpio_num % 8); in it87_gpio_request()
153 group = (gpio_num / 8); in it87_gpio_request()
179 static int it87_gpio_get(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_get() argument
185 mask = 1 << (gpio_num % 8); in it87_gpio_get()
186 reg = (gpio_num / 8) + it87_gpio->io_base; in it87_gpio_get()
191 static int it87_gpio_direction_in(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_direction_in() argument
197 mask = 1 << (gpio_num % 8); in it87_gpio_direction_in()
198 group = (gpio_num / 8); in it87_gpio_direction_in()
217 unsigned gpio_num, int val) in it87_gpio_set() argument
223 mask = 1 << (gpio_num % 8); in it87_gpio_set()
224 reg = (gpio_num / 8) + it87_gpio->io_base; in it87_gpio_set()
234 unsigned gpio_num, int val) in it87_gpio_direction_out() argument
240 mask = 1 << (gpio_num % 8); in it87_gpio_direction_out()
241 group = (gpio_num / 8); in it87_gpio_direction_out()
252 it87_gpio_set(chip, gpio_num, val); in it87_gpio_direction_out()