Lines Matching refs:lookups
33 struct gpiod_lookup_table *lookups; member
44 struct gpiod_lookup_table *lookups; in aggr_add_gpio() local
46 lookups = krealloc(aggr->lookups, struct_size(lookups, table, *n + 2), in aggr_add_gpio()
48 if (!lookups) in aggr_add_gpio()
51 lookups->table[*n] = GPIO_LOOKUP_IDX(key, hwnum, NULL, *n, 0); in aggr_add_gpio()
54 memset(&lookups->table[*n], 0, sizeof(lookups->table[*n])); in aggr_add_gpio()
56 aggr->lookups = lookups; in aggr_add_gpio()
127 aggr->lookups = kzalloc(struct_size(aggr->lookups, table, 1), in new_device_store()
129 if (!aggr->lookups) { in new_device_store()
143 aggr->lookups->dev_id = kasprintf(GFP_KERNEL, "%s.%d", DRV_NAME, id); in new_device_store()
144 if (!aggr->lookups->dev_id) { in new_device_store()
153 gpiod_add_lookup_table(aggr->lookups); in new_device_store()
165 gpiod_remove_lookup_table(aggr->lookups); in new_device_store()
167 kfree(aggr->lookups->dev_id); in new_device_store()
173 kfree(aggr->lookups); in new_device_store()
184 gpiod_remove_lookup_table(aggr->lookups); in gpio_aggregator_free()
185 kfree(aggr->lookups->dev_id); in gpio_aggregator_free()
186 kfree(aggr->lookups); in gpio_aggregator_free()