it87_gpio 71 drivers/gpio/gpio-it87.c static struct it87_gpio it87_gpio_chip = { it87_gpio 158 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = gpiochip_get_data(chip); it87_gpio 163 drivers/gpio/gpio-it87.c spin_lock(&it87_gpio->lock); it87_gpio 172 drivers/gpio/gpio-it87.c if (group < it87_gpio->simple_size) it87_gpio 173 drivers/gpio/gpio-it87.c superio_set_mask(mask, group + it87_gpio->simple_base); it87_gpio 178 drivers/gpio/gpio-it87.c superio_clear_mask(mask, group + it87_gpio->output_base); it87_gpio 183 drivers/gpio/gpio-it87.c spin_unlock(&it87_gpio->lock); it87_gpio 191 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = gpiochip_get_data(chip); it87_gpio 194 drivers/gpio/gpio-it87.c reg = (gpio_num / 8) + it87_gpio->io_base; it87_gpio 203 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = gpiochip_get_data(chip); it87_gpio 208 drivers/gpio/gpio-it87.c spin_lock(&it87_gpio->lock); it87_gpio 215 drivers/gpio/gpio-it87.c superio_clear_mask(mask, group + it87_gpio->output_base); it87_gpio 220 drivers/gpio/gpio-it87.c spin_unlock(&it87_gpio->lock); it87_gpio 229 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = gpiochip_get_data(chip); it87_gpio 232 drivers/gpio/gpio-it87.c reg = (gpio_num / 8) + it87_gpio->io_base; it87_gpio 246 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = gpiochip_get_data(chip); it87_gpio 251 drivers/gpio/gpio-it87.c spin_lock(&it87_gpio->lock); it87_gpio 258 drivers/gpio/gpio-it87.c superio_set_mask(mask, group + it87_gpio->output_base); it87_gpio 265 drivers/gpio/gpio-it87.c spin_unlock(&it87_gpio->lock); it87_gpio 287 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = &it87_gpio_chip; it87_gpio 297 drivers/gpio/gpio-it87.c it87_gpio->chip = it87_template_chip; it87_gpio 302 drivers/gpio/gpio-it87.c it87_gpio->io_size = 8; /* it8613 only needs 6, use 8 for alignment */ it87_gpio 303 drivers/gpio/gpio-it87.c it87_gpio->output_base = 0xc8; it87_gpio 304 drivers/gpio/gpio-it87.c it87_gpio->simple_base = 0xc0; it87_gpio 305 drivers/gpio/gpio-it87.c it87_gpio->simple_size = 6; it87_gpio 306 drivers/gpio/gpio-it87.c it87_gpio->chip.ngpio = 64; /* has 48, use 64 for convenient calc */ it87_gpio 311 drivers/gpio/gpio-it87.c it87_gpio->io_size = 11; it87_gpio 312 drivers/gpio/gpio-it87.c it87_gpio->output_base = 0xc8; it87_gpio 313 drivers/gpio/gpio-it87.c it87_gpio->simple_size = 0; it87_gpio 314 drivers/gpio/gpio-it87.c it87_gpio->chip.ngpio = 64; it87_gpio 322 drivers/gpio/gpio-it87.c it87_gpio->io_size = 8; it87_gpio 323 drivers/gpio/gpio-it87.c it87_gpio->output_base = 0xc8; it87_gpio 324 drivers/gpio/gpio-it87.c it87_gpio->simple_base = 0xc0; it87_gpio 325 drivers/gpio/gpio-it87.c it87_gpio->simple_size = 5; it87_gpio 326 drivers/gpio/gpio-it87.c it87_gpio->chip.ngpio = 64; it87_gpio 330 drivers/gpio/gpio-it87.c it87_gpio->io_size = 4; it87_gpio 331 drivers/gpio/gpio-it87.c it87_gpio->output_base = 0xf0; it87_gpio 332 drivers/gpio/gpio-it87.c it87_gpio->simple_size = 0; it87_gpio 333 drivers/gpio/gpio-it87.c it87_gpio->chip.ngpio = 16; it87_gpio 351 drivers/gpio/gpio-it87.c it87_gpio->io_base = superio_inw(gpio_ba_reg); it87_gpio 356 drivers/gpio/gpio-it87.c chip_type, chip_rev, it87_gpio->chip.ngpio, it87_gpio 357 drivers/gpio/gpio-it87.c it87_gpio->io_base); it87_gpio 359 drivers/gpio/gpio-it87.c if (!request_region(it87_gpio->io_base, it87_gpio->io_size, it87_gpio 373 drivers/gpio/gpio-it87.c labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), it87_gpio 375 drivers/gpio/gpio-it87.c labels_table = kcalloc(it87_gpio->chip.ngpio, sizeof(const char *), it87_gpio 383 drivers/gpio/gpio-it87.c for (i = 0; i < it87_gpio->chip.ngpio; i++) { it87_gpio 390 drivers/gpio/gpio-it87.c it87_gpio->chip.names = (const char *const*)labels_table; it87_gpio 392 drivers/gpio/gpio-it87.c rc = gpiochip_add_data(&it87_gpio->chip, it87_gpio); it87_gpio 401 drivers/gpio/gpio-it87.c release_region(it87_gpio->io_base, it87_gpio->io_size); it87_gpio 407 drivers/gpio/gpio-it87.c struct it87_gpio *it87_gpio = &it87_gpio_chip; it87_gpio 409 drivers/gpio/gpio-it87.c gpiochip_remove(&it87_gpio->chip); it87_gpio 410 drivers/gpio/gpio-it87.c release_region(it87_gpio->io_base, it87_gpio->io_size); it87_gpio 411 drivers/gpio/gpio-it87.c kfree(it87_gpio->chip.names[0]); it87_gpio 412 drivers/gpio/gpio-it87.c kfree(it87_gpio->chip.names);