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()
141 struct objalloc_chunk *chunk; in _objalloc_alloc() local
147 chunk = (struct objalloc_chunk *) ret; in _objalloc_alloc()
148 chunk->next = (struct objalloc_chunk *) o->chunks; in _objalloc_alloc()
149 chunk->current_ptr = o->current_ptr; in _objalloc_alloc()
151 o->chunks = (PTR) chunk; in _objalloc_alloc()
157 struct objalloc_chunk *chunk; in _objalloc_alloc() local
159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
160 if (chunk == NULL) in _objalloc_alloc()
162 chunk->next = (struct objalloc_chunk *) o->chunks; in _objalloc_alloc()
163 chunk->current_ptr = NULL; in _objalloc_alloc()
165 o->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE; in _objalloc_alloc()
168 o->chunks = (PTR) chunk; in _objalloc_alloc()