Lines Matching refs:buf

154 	void *buf;  in memalign()  local
192 buf = vmem_xalloc(umem_memalign_arena, size, align, phase, in memalign()
195 if (buf == NULL) { in memalign()
204 ret = (malloc_data_t *)buf; in memalign()
223 ASSERT((void *)((uintptr_t)ret - overhead) == buf); in memalign()
251 malloc_data_t *buf; in process_free() local
260 buf = (malloc_data_t *)buf_arg; in process_free()
262 buf--; in process_free()
263 size = buf->malloc_size; in process_free()
265 switch (UMEM_MALLOC_DECODE(buf->malloc_stat, size)) { in process_free()
268 base = (void *)buf; in process_free()
272 buf->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
278 base = (void *)(buf - 1); in process_free()
282 buf->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
289 buf--; in process_free()
290 high_size = buf->malloc_size; in process_free()
292 if (UMEM_MALLOC_DECODE(buf->malloc_stat, high_size) != in process_free()
300 base = (void *)buf; in process_free()
304 buf->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
305 (buf + 1)->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
320 buf--; in process_free()
321 high_size = buf->malloc_size; in process_free()
323 if (UMEM_MALLOC_DECODE(buf->malloc_stat, high_size) != in process_free()
334 (buf + 1)->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
337 base = (void *)buf; in process_free()
341 buf->malloc_stat = UMEM_FREE_PATTERN_32; in process_free()
346 if (buf->malloc_stat == UMEM_FREE_PATTERN_32) in process_free()
379 umem_malloc_free(void *buf) in umem_malloc_free() argument
381 if (buf == NULL) in umem_malloc_free()
387 (void) process_free(buf, 1, NULL); in umem_malloc_free()
394 void *buf; in realloc() local
415 buf = malloc(newsize); in realloc()
416 if (buf == NULL) in realloc()
419 (void) memcpy(buf, buf_arg, MIN(newsize, oldsize)); in realloc()
421 return (buf); in realloc()