Lines Matching defs:data

32 	 * Thus we use ARCH_DMA_MINALIGN for data[] which will force the same
35 u8 __aligned(ARCH_DMA_MINALIGN) data[];
125 memset(dr, 0, offsetof(struct devres, data));
148 * __devres_alloc_node - Allocate device resource data
171 return dr->data;
182 * @data: Data for @fn, the 3rd parameter of @fn
193 void *data)
209 if (match && !match(dev, dr->data, match_data))
211 fn(dev, dr->data, data);
218 * devres_free - Free device resource data
219 * @res: Pointer to devres data to free
226 struct devres *dr = container_of(res, struct devres, data);
245 struct devres *dr = container_of(res, struct devres, data);
264 if (match && !match(dev, dr->data, match_data))
297 return dr->data;
319 struct devres *new_dr = container_of(new_res, struct devres, data);
333 return dr->data;
367 return dr->data;
384 * only the devres-allocated data will be freed. The caller becomes
385 * responsible for freeing any other data.
505 dr->node.release(dev, dr->data);
704 void *data;
714 devres->data == target->data;
721 devres->action(devres->data);
728 * @data: Pointer to data passed to @action implementation
734 int __devm_add_action(struct device *dev, void (*action)(void *), void *data, const char *name)
743 devres->data = data;
755 * @data: Pointer to data passed to @action implementation
758 * Both action and data should match one of the existing entries.
760 void devm_remove_action(struct device *dev, void (*action)(void *), void *data)
763 .data = data,
776 * @data: Pointer to data passed to @action implementation
779 * devm_add_action(). Both action and data should match one of the
782 void devm_release_action(struct device *dev, void (*action)(void *), void *data)
785 .data = data,
803 static int devm_kmalloc_match(struct device *dev, void *res, void *data)
805 return res == data;
838 devres_add(dev, dr->data);
839 return dr->data;
883 total_old_size = ksize(container_of(ptr, struct devres, data));
927 memcpy(new_dr->data, old_dr->data,
928 total_old_size - offsetof(struct devres, data));
936 return new_dr->data;
1173 static int devm_percpu_match(struct device *dev, void *data, void *p)
1175 struct devres *devr = container_of(data, struct devres, data);
1177 return *(void **)devr->data == p;