Lines Matching refs:chunk
89 struct objalloc_chunk *chunk; in objalloc_create() local
102 chunk = (struct objalloc_chunk *) ret->chunks; in objalloc_create()
103 chunk->next = NULL; in objalloc_create()
104 chunk->current_ptr = NULL; in objalloc_create()
106 ret->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE; in objalloc_create()
134 struct objalloc_chunk *chunk; in _objalloc_alloc() local
140 chunk = (struct objalloc_chunk *) ret; in _objalloc_alloc()
141 chunk->next = (struct objalloc_chunk *) o->chunks; in _objalloc_alloc()
142 chunk->current_ptr = o->current_ptr; in _objalloc_alloc()
144 o->chunks = (PTR) chunk; in _objalloc_alloc()
150 struct objalloc_chunk *chunk; in _objalloc_alloc() local
152 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
153 if (chunk == NULL) in _objalloc_alloc()
155 chunk->next = (struct objalloc_chunk *) o->chunks; in _objalloc_alloc()
156 chunk->current_ptr = NULL; in _objalloc_alloc()
158 o->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE; in _objalloc_alloc()
161 o->chunks = (PTR) chunk; in _objalloc_alloc()