Lines Matching refs:release
18 dr_release_t release; member
83 if (node->release == &group_open_release) in node_to_group()
85 if (node->release == &group_close_release) in node_to_group()
90 static __always_inline struct devres * alloc_dr(dr_release_t release, in alloc_dr() argument
108 dr->node.release = release; in alloc_dr()
120 void * __devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid, in __devres_alloc_node() argument
125 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node()
147 void * devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid) in devres_alloc_node() argument
151 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in devres_alloc_node()
174 void devres_for_each_res(struct device *dev, dr_release_t release, in devres_for_each_res() argument
191 if (node->release != release) in devres_for_each_res()
238 static struct devres *find_dr(struct device *dev, dr_release_t release, in find_dr() argument
246 if (node->release != release) in find_dr()
270 void * devres_find(struct device *dev, dr_release_t release, in devres_find() argument
277 dr = find_dr(dev, release, match, match_data); in devres_find()
308 dr = find_dr(dev, new_dr->node.release, match, match_data); in devres_get()
336 void * devres_remove(struct device *dev, dr_release_t release, in devres_remove() argument
343 dr = find_dr(dev, release, match, match_data); in devres_remove()
374 int devres_destroy(struct device *dev, dr_release_t release, in devres_destroy() argument
379 res = devres_remove(dev, release, match, match_data); in devres_destroy()
404 int devres_release(struct device *dev, dr_release_t release, in devres_release() argument
409 res = devres_remove(dev, release, match, match_data); in devres_release()
413 (*release)(dev, res); in devres_release()
505 dr->node.release(dev, dr->data); in release_nodes()
553 grp->node[0].release = &group_open_release; in devres_open_group()
554 grp->node[1].release = &group_close_release; in devres_open_group()
578 if (node->release != &group_open_release) in find_group()