Lines Matching refs:data

36 	u8 __aligned(ARCH_KMALLOC_MINALIGN) data[];
115 memset(dr, 0, offsetof(struct devres, data));
147 return dr->data;
152 * devres_alloc - Allocate device resource data
172 return dr->data;
184 * @data: Data for @fn, the 3rd parameter of @fn
195 void *data)
211 if (match && !match(dev, dr->data, match_data))
213 fn(dev, dr->data, data);
220 * devres_free - Free device resource data
221 * @res: Pointer to devres data to free
228 struct devres *dr = container_of(res, struct devres, data);
247 struct devres *dr = container_of(res, struct devres, data);
266 if (match && !match(dev, dr->data, match_data))
299 return dr->data;
321 struct devres *new_dr = container_of(new_res, struct devres, data);
335 return dr->data;
369 return dr->data;
386 * only the devres-allocated data will be freed. The caller becomes
387 * responsible for freeing any other data.
523 dr->node.release(dev, dr->data);
710 void *data;
720 devres->data == target->data;
727 devres->action(devres->data);
734 * @data: Pointer to data passed to @action implementation
739 int devm_add_action(struct device *dev, void (*action)(void *), void *data)
748 devres->data = data;
760 * @data: Pointer to data passed to @action implementation
763 * Both action and data should match one of the existing entries.
765 void devm_remove_action(struct device *dev, void (*action)(void *), void *data)
768 .data = data,
781 * @data: Pointer to data passed to @action implementation
784 * devm_add_action(). Both action and data should match one of the
787 void devm_release_action(struct device *dev, void (*action)(void *), void *data)
790 .data = data,
808 static int devm_kmalloc_match(struct device *dev, void *res, void *data)
810 return res == data;
843 devres_add(dev, dr->data);
844 return dr->data;
888 total_old_size = ksize(container_of(ptr, struct devres, data));
932 memcpy(new_dr->data, old_dr->data,
933 total_old_size - offsetof(struct devres, data));
941 return new_dr->data;
1178 static int devm_percpu_match(struct device *dev, void *data, void *p)
1180 struct devres *devr = container_of(data, struct devres, data);
1182 return *(void **)devr->data == p;