Lines Matching refs:gpio_chip

74 	struct gpio_chip                 gpio_chip;  member
297 static int sx150x_gpio_get(struct gpio_chip *gc, unsigned offset) in sx150x_gpio_get()
302 chip = container_of(gc, struct sx150x_chip, gpio_chip); in sx150x_gpio_get()
313 static void sx150x_gpio_set(struct gpio_chip *gc, unsigned offset, int val) in sx150x_gpio_set()
317 chip = container_of(gc, struct sx150x_chip, gpio_chip); in sx150x_gpio_set()
327 static int sx150x_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in sx150x_gpio_direction_input()
332 chip = container_of(gc, struct sx150x_chip, gpio_chip); in sx150x_gpio_direction_input()
342 static int sx150x_gpio_direction_output(struct gpio_chip *gc, in sx150x_gpio_direction_output()
349 chip = container_of(gc, struct sx150x_chip, gpio_chip); in sx150x_gpio_direction_output()
421 chip->gpio_chip.irqdomain, in sx150x_irq_thread_fn()
479 chip->gpio_chip.dev = &client->dev; in sx150x_init_chip()
480 chip->gpio_chip.label = client->name; in sx150x_init_chip()
481 chip->gpio_chip.direction_input = sx150x_gpio_direction_input; in sx150x_init_chip()
482 chip->gpio_chip.direction_output = sx150x_gpio_direction_output; in sx150x_init_chip()
483 chip->gpio_chip.get = sx150x_gpio_get; in sx150x_init_chip()
484 chip->gpio_chip.set = sx150x_gpio_set; in sx150x_init_chip()
485 chip->gpio_chip.base = pdata->gpio_base; in sx150x_init_chip()
486 chip->gpio_chip.can_sleep = true; in sx150x_init_chip()
487 chip->gpio_chip.ngpio = chip->dev_cfg->ngpios; in sx150x_init_chip()
489 chip->gpio_chip.of_node = client->dev.of_node; in sx150x_init_chip()
490 chip->gpio_chip.of_gpio_n_cells = 2; in sx150x_init_chip()
493 ++chip->gpio_chip.ngpio; in sx150x_init_chip()
606 err = gpiochip_irqchip_add(&chip->gpio_chip, in sx150x_install_irq_chip()
653 rc = gpiochip_add(&chip->gpio_chip); in sx150x_probe()
669 gpiochip_remove(&chip->gpio_chip); in sx150x_probe()
678 gpiochip_remove(&chip->gpio_chip); in sx150x_remove()