Lines Matching refs:dst
276 static void memcpy_alloc_mem(void **dst, void **src, size_t length) in memcpy_alloc_mem() argument
278 *dst = zalloc(length); in memcpy_alloc_mem()
279 if (!*dst) in memcpy_alloc_mem()
292 void *src = NULL, *dst = NULL; in do_memcpy_cycle() local
296 memcpy_alloc_mem(&dst, &src, len); in do_memcpy_cycle()
299 fn(dst, src, len); in do_memcpy_cycle()
303 fn(dst, src, len); in do_memcpy_cycle()
307 free(dst); in do_memcpy_cycle()
316 void *src = NULL, *dst = NULL; in do_memcpy_gettimeofday() local
319 memcpy_alloc_mem(&dst, &src, len); in do_memcpy_gettimeofday()
322 fn(dst, src, len); in do_memcpy_gettimeofday()
326 fn(dst, src, len); in do_memcpy_gettimeofday()
332 free(dst); in do_memcpy_gettimeofday()
349 static void memset_alloc_mem(void **dst, size_t length) in memset_alloc_mem() argument
351 *dst = zalloc(length); in memset_alloc_mem()
352 if (!*dst) in memset_alloc_mem()
360 void *dst = NULL; in do_memset_cycle() local
363 memset_alloc_mem(&dst, len); in do_memset_cycle()
366 fn(dst, -1, len); in do_memset_cycle()
370 fn(dst, i, len); in do_memset_cycle()
373 free(dst); in do_memset_cycle()
382 void *dst = NULL; in do_memset_gettimeofday() local
385 memset_alloc_mem(&dst, len); in do_memset_gettimeofday()
388 fn(dst, -1, len); in do_memset_gettimeofday()
392 fn(dst, i, len); in do_memset_gettimeofday()
397 free(dst); in do_memset_gettimeofday()