Lines Matching full:release

21 	dr_release_t			release;  member
75 * Release functions for devres group. These callbacks are used only
90 if (node->release == &group_open_release) in node_to_group()
92 if (node->release == &group_close_release) in node_to_group()
107 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr() argument
125 dr->node.release = release; in alloc_dr()
146 * @release: Release function devres will be associated with
153 * associated with @release. The returned pointer can be passed to
159 void *__devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid, in __devres_alloc_node() argument
164 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node()
175 * @release: Look for resources associated with this release function
181 * Call @fn for each devres of @dev which is associated with @release
187 void devres_for_each_res(struct device *dev, dr_release_t release, in devres_for_each_res() argument
204 if (node->release != release) in devres_for_each_res()
237 * using devres_alloc(). On driver detach, the associated release
251 static struct devres *find_dr(struct device *dev, dr_release_t release, in find_dr() argument
259 if (node->release != release) in find_dr()
272 * @release: Look for resources associated with this release function
276 * Find the latest devres of @dev which is associated with @release
283 void * devres_find(struct device *dev, dr_release_t release, in devres_find() argument
290 dr = find_dr(dev, release, match, match_data); in devres_find()
306 * Find the latest devres of @dev which has the same release function
321 dr = find_dr(dev, new_dr->node.release, match, match_data); in devres_get()
337 * @release: Look for resources associated with this release function
341 * Find the latest devres of @dev associated with @release and for
349 void * devres_remove(struct device *dev, dr_release_t release, in devres_remove() argument
356 dr = find_dr(dev, release, match, match_data); in devres_remove()
372 * @release: Look for resources associated with this release function
376 * Find the latest devres of @dev associated with @release and for
380 * Note that the release function for the resource will not be called,
387 int devres_destroy(struct device *dev, dr_release_t release, in devres_destroy() argument
392 res = devres_remove(dev, release, match, match_data); in devres_destroy()
403 * devres_release - Find a device resource and destroy it, calling release
405 * @release: Look for resources associated with this release function
409 * Find the latest devres of @dev associated with @release and for
412 * release function called and the resource freed.
417 int devres_release(struct device *dev, dr_release_t release, in devres_release() argument
422 res = devres_remove(dev, release, match, match_data); in devres_release()
426 (*release)(dev, res); in devres_release()
497 /* Release. Note that both devres and devres_group are in release_nodes()
502 dr->node.release(dev, dr->data); in release_nodes()
508 * devres_release_all - Release all managed resources
509 * @dev: Device to release resources for
511 * Release all resources associated with @dev. This function is
524 /* Nothing to release if list is empty */ in devres_release_all()
558 grp->node[0].release = &group_open_release; in devres_open_group()
559 grp->node[1].release = &group_close_release; in devres_open_group()
583 if (node->release != &group_open_release) in find_group()
654 * devres_release_group - Release resources in a devres group
655 * @dev: Device to release group for
658 * Release all resources in the group identified by @id. If @id is
769 * devm_release_action() - release previously added custom action
850 * change the order in which the release callback for the re-alloc'ed devres