Searched refs:gpiochip (Results 1 – 6 of 6) sorted by relevance
50 struct gpio_chip gpiochip; member160 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init()161 data->gpiochip.base = -1; in ltc4306_gpio_init()162 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()163 data->gpiochip.parent = dev; in ltc4306_gpio_init()164 data->gpiochip.can_sleep = true; in ltc4306_gpio_init()165 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init()166 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init()167 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init()168 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init()[all …]
75 static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip);76 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip);77 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gpiochip);1524 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip) in gpiochip_irqchip_init_valid_mask() argument1526 if (!gpiochip->irq_need_valid_mask) in gpiochip_irqchip_init_valid_mask()1529 gpiochip->irq_valid_mask = kcalloc(BITS_TO_LONGS(gpiochip->ngpio), in gpiochip_irqchip_init_valid_mask()1531 if (!gpiochip->irq_valid_mask) in gpiochip_irqchip_init_valid_mask()1535 bitmap_fill(gpiochip->irq_valid_mask, gpiochip->ngpio); in gpiochip_irqchip_init_valid_mask()1540 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gpiochip) in gpiochip_irqchip_free_valid_mask() argument1542 kfree(gpiochip->irq_valid_mask); in gpiochip_irqchip_free_valid_mask()[all …]
434 ATTRIBUTE_GROUPS(gpiochip);
135 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()136 st->gpiochip.base = -1; in ad5592r_gpio_init()137 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()138 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()139 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()140 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()141 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()142 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()143 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()144 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()[all …]
54 struct gpio_chip gpiochip; member
238 and gpiochip to expose these functions of the CP2112. The