Lines Matching refs:gpio_chip

74 	struct gpio_chip                 gpio_chip;  member
163 struct sx150x_chip *to_sx150x(struct gpio_chip *gc) in to_sx150x()
165 return container_of(gc, struct sx150x_chip, gpio_chip); in to_sx150x()
302 static int sx150x_gpio_get(struct gpio_chip *gc, unsigned offset) in sx150x_gpio_get()
316 static void sx150x_gpio_set(struct gpio_chip *gc, unsigned offset, int val) in sx150x_gpio_set()
328 static int sx150x_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in sx150x_gpio_direction_input()
341 static int sx150x_gpio_direction_output(struct gpio_chip *gc, in sx150x_gpio_direction_output()
418 chip->gpio_chip.irqdomain, in sx150x_irq_thread_fn()
476 chip->gpio_chip.dev = &client->dev; in sx150x_init_chip()
477 chip->gpio_chip.label = client->name; in sx150x_init_chip()
478 chip->gpio_chip.direction_input = sx150x_gpio_direction_input; in sx150x_init_chip()
479 chip->gpio_chip.direction_output = sx150x_gpio_direction_output; in sx150x_init_chip()
480 chip->gpio_chip.get = sx150x_gpio_get; in sx150x_init_chip()
481 chip->gpio_chip.set = sx150x_gpio_set; in sx150x_init_chip()
482 chip->gpio_chip.base = pdata->gpio_base; in sx150x_init_chip()
483 chip->gpio_chip.can_sleep = true; in sx150x_init_chip()
484 chip->gpio_chip.ngpio = chip->dev_cfg->ngpios; in sx150x_init_chip()
486 chip->gpio_chip.of_node = client->dev.of_node; in sx150x_init_chip()
487 chip->gpio_chip.of_gpio_n_cells = 2; in sx150x_init_chip()
490 ++chip->gpio_chip.ngpio; in sx150x_init_chip()
603 err = gpiochip_irqchip_add(&chip->gpio_chip, in sx150x_install_irq_chip()
650 rc = gpiochip_add(&chip->gpio_chip); in sx150x_probe()
666 gpiochip_remove(&chip->gpio_chip); in sx150x_probe()
675 gpiochip_remove(&chip->gpio_chip); in sx150x_remove()