Lines Matching full:release

20 	dr_release_t			release;  member
70 * Release functions for devres group. These callbacks are used only
85 if (node->release == &group_open_release) in node_to_group()
87 if (node->release == &group_close_release) in node_to_group()
102 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr() argument
118 dr->node.release = release; in alloc_dr()
138 void * __devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid, in __devres_alloc_node() argument
143 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node()
153 * @release: Release function devres will be associated with
159 * associated with @release. The returned pointer can be passed to
165 void * devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid) in devres_alloc_node() argument
169 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in devres_alloc_node()
180 * @release: Look for resources associated with this release function
186 * Call @fn for each devres of @dev which is associated with @release
192 void devres_for_each_res(struct device *dev, dr_release_t release, in devres_for_each_res() argument
209 if (node->release != release) in devres_for_each_res()
242 * using devres_alloc(). On driver detach, the associated release
256 static struct devres *find_dr(struct device *dev, dr_release_t release, in find_dr() argument
264 if (node->release != release) in find_dr()
277 * @release: Look for resources associated with this release function
281 * Find the latest devres of @dev which is associated with @release
288 void * devres_find(struct device *dev, dr_release_t release, in devres_find() argument
295 dr = find_dr(dev, release, match, match_data); in devres_find()
311 * Find the latest devres of @dev which has the same release function
326 dr = find_dr(dev, new_dr->node.release, match, match_data); in devres_get()
342 * @release: Look for resources associated with this release function
346 * Find the latest devres of @dev associated with @release and for
354 void * devres_remove(struct device *dev, dr_release_t release, in devres_remove() argument
361 dr = find_dr(dev, release, match, match_data); in devres_remove()
377 * @release: Look for resources associated with this release function
381 * Find the latest devres of @dev associated with @release and for
385 * Note that the release function for the resource will not be called,
392 int devres_destroy(struct device *dev, dr_release_t release, in devres_destroy() argument
397 res = devres_remove(dev, release, match, match_data); in devres_destroy()
408 * devres_release - Find a device resource and destroy it, calling release
410 * @release: Look for resources associated with this release function
414 * Find the latest devres of @dev associated with @release and for
417 * release function called and the resource freed.
422 int devres_release(struct device *dev, dr_release_t release, in devres_release() argument
427 res = devres_remove(dev, release, match, match_data); in devres_release()
431 (*release)(dev, res); in devres_release()
518 /* Release. Note that both devres and devres_group are in release_nodes()
523 dr->node.release(dev, dr->data); in release_nodes()
531 * devres_release_all - Release all managed resources
532 * @dev: Device to release resources for
534 * Release all resources associated with @dev. This function is
571 grp->node[0].release = &group_open_release; in devres_open_group()
572 grp->node[1].release = &group_close_release; in devres_open_group()
596 if (node->release != &group_open_release) in find_group()
667 * devres_release_group - Release resources in a devres group
668 * @dev: Device to release group for
671 * Release all resources in the group identified by @id. If @id is
778 * devm_release_action() - release previously added custom action
859 * change the order in which the release callback for the re-alloc'ed devres