Lines Matching refs:dr
98 struct gpio_desc **dr; in devm_gpiod_get_index() local
118 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index()
120 if (!dr) { in devm_gpiod_get_index()
125 *dr = desc; in devm_gpiod_get_index()
126 devres_add(dev, dr); in devm_gpiod_get_index()
153 struct gpio_desc **dr; in devm_gpiod_get_from_of_node() local
173 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_from_of_node()
175 if (!dr) { in devm_gpiod_get_from_of_node()
180 *dr = desc; in devm_gpiod_get_from_of_node()
181 devres_add(dev, dr); in devm_gpiod_get_from_of_node()
210 struct gpio_desc **dr; in devm_fwnode_get_index_gpiod_from_child() local
214 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_fwnode_get_index_gpiod_from_child()
216 if (!dr) in devm_fwnode_get_index_gpiod_from_child()
233 devres_free(dr); in devm_fwnode_get_index_gpiod_from_child()
237 *dr = desc; in devm_fwnode_get_index_gpiod_from_child()
238 devres_add(dev, dr); in devm_fwnode_get_index_gpiod_from_child()
287 struct gpio_descs **dr; in devm_gpiod_get_array() local
290 dr = devres_alloc(devm_gpiod_release_array, in devm_gpiod_get_array()
292 if (!dr) in devm_gpiod_get_array()
297 devres_free(dr); in devm_gpiod_get_array()
301 *dr = descs; in devm_gpiod_get_array()
302 devres_add(dev, dr); in devm_gpiod_get_array()
429 unsigned *dr; in devm_gpio_request() local
432 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request()
433 if (!dr) in devm_gpio_request()
438 devres_free(dr); in devm_gpio_request()
442 *dr = gpio; in devm_gpio_request()
443 devres_add(dev, dr); in devm_gpio_request()
459 unsigned *dr; in devm_gpio_request_one() local
462 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request_one()
463 if (!dr) in devm_gpio_request_one()
468 devres_free(dr); in devm_gpio_request_one()
472 *dr = gpio; in devm_gpio_request_one()
473 devres_add(dev, dr); in devm_gpio_request_one()