Lines Matching refs:hdr_ptr
263 small_pool_ptr hdr_ptr, prev_hdr_ptr; in alloc_small() local
280 hdr_ptr = mem->small_list[pool_id]; in alloc_small()
281 while (hdr_ptr != NULL) { in alloc_small()
282 if (hdr_ptr->hdr.bytes_left >= sizeofobject) in alloc_small()
284 prev_hdr_ptr = hdr_ptr; in alloc_small()
285 hdr_ptr = hdr_ptr->hdr.next; in alloc_small()
289 if (hdr_ptr == NULL) { in alloc_small()
301 hdr_ptr = (small_pool_ptr) jpeg_get_small(cinfo, min_request + slop); in alloc_small()
302 if (hdr_ptr != NULL) in alloc_small()
310 hdr_ptr->hdr.next = NULL; in alloc_small()
311 hdr_ptr->hdr.bytes_used = 0; in alloc_small()
312 hdr_ptr->hdr.bytes_left = sizeofobject + slop; in alloc_small()
314 mem->small_list[pool_id] = hdr_ptr; in alloc_small()
316 prev_hdr_ptr->hdr.next = hdr_ptr; in alloc_small()
320 data_ptr = (char *) (hdr_ptr + 1); /* point to first data byte in pool */ in alloc_small()
321 data_ptr += hdr_ptr->hdr.bytes_used; /* point to place for object */ in alloc_small()
322 hdr_ptr->hdr.bytes_used += sizeofobject; in alloc_small()
323 hdr_ptr->hdr.bytes_left -= sizeofobject; in alloc_small()
348 large_pool_ptr hdr_ptr; in alloc_large() local
364 hdr_ptr = (large_pool_ptr) jpeg_get_large(cinfo, sizeofobject + in alloc_large()
366 if (hdr_ptr == NULL) in alloc_large()
371 hdr_ptr->hdr.next = mem->large_list[pool_id]; in alloc_large()
375 hdr_ptr->hdr.bytes_used = sizeofobject; in alloc_large()
376 hdr_ptr->hdr.bytes_left = 0; in alloc_large()
377 mem->large_list[pool_id] = hdr_ptr; in alloc_large()
379 return (void FAR *) (hdr_ptr + 1); /* point to first data byte in pool */ in alloc_large()