Lines Matching refs:block
246 struct data_block *block, *tmp;
248 for (block = list->head->next; block; block = tmp) {
249 tmp = block->next;
250 FREE(block);
278 struct cmd_block *block = lp_scene_alloc(scene, sizeof(struct cmd_block));
279 if (block) {
281 bin->tail->next = block;
282 bin->tail = block;
285 bin->head = block;
286 bin->tail = block;
288 //memset(block, 0, sizeof *block);
289 block->next = NULL;
290 block->count = 0;
292 return block;
305 struct data_block *block = MALLOC_STRUCT(data_block);
306 if (block == NULL)
309 scene->scene_size += sizeof *block;
311 block->used = 0;
312 block->next = scene->data.head;
313 scene->data.head = block;
315 return block;
328 const struct data_block *block;
329 for (block = scene->data.head; block; block = block->next) {
330 size += block->used;
360 /* If the block is half-empty, then append the reference here.
366 /* Create a new block if no half-empty block was found.
378 /* Append the reference to the reference block.