Lines Matching refs:p

129 	void *p;  in kmemdup()  local
131 p = kmalloc_track_caller(len, gfp); in kmemdup()
132 if (p) in kmemdup()
133 memcpy(p, src, len); in kmemdup()
134 return p; in kmemdup()
150 void *p; in kvmemdup() local
152 p = kvmalloc(len, gfp); in kvmemdup()
153 if (p) in kvmemdup()
154 memcpy(p, src, len); in kvmemdup()
155 return p; in kvmemdup()
195 void *p; in memdup_user() local
197 p = kmalloc_track_caller(len, GFP_USER | __GFP_NOWARN); in memdup_user()
198 if (!p) in memdup_user()
201 if (copy_from_user(p, src, len)) { in memdup_user()
202 kfree(p); in memdup_user()
206 return p; in memdup_user()
221 void *p; in vmemdup_user() local
223 p = kvmalloc(len, GFP_USER); in vmemdup_user()
224 if (!p) in vmemdup_user()
227 if (copy_from_user(p, src, len)) { in vmemdup_user()
228 kvfree(p); in vmemdup_user()
232 return p; in vmemdup_user()
245 char *p; in strndup_user() local
256 p = memdup_user(s, length); in strndup_user()
258 if (IS_ERR(p)) in strndup_user()
259 return p; in strndup_user()
261 p[length - 1] = '\0'; in strndup_user()
263 return p; in strndup_user()
277 char *p; in memdup_user_nul() local
284 p = kmalloc_track_caller(len + 1, GFP_KERNEL); in memdup_user_nul()
285 if (!p) in memdup_user_nul()
288 if (copy_from_user(p, src, len)) { in memdup_user_nul()
289 kfree(p); in memdup_user_nul()
292 p[len] = '\0'; in memdup_user_nul()
294 return p; in memdup_user_nul()
685 void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags) in kvrealloc() argument
690 return (void *)p; in kvrealloc()
694 memcpy(newp, p, oldsize); in kvrealloc()
695 kvfree(p); in kvrealloc()