Lines Matching refs:next_ptr
318 struct rt_memheap_item *next_ptr; in rt_memheap_realloc() local
328 next_ptr = header_ptr->next; in rt_memheap_realloc()
331 RT_ASSERT(next_ptr > header_ptr); in rt_memheap_realloc()
334 if (!RT_MEMHEAP_IS_USED(next_ptr)) in rt_memheap_realloc()
338 nextsize = MEMITEM_SIZE(next_ptr); in rt_memheap_realloc()
339 RT_ASSERT(next_ptr > 0); in rt_memheap_realloc()
360 next_ptr, in rt_memheap_realloc()
361 next_ptr->next_free, in rt_memheap_realloc()
362 next_ptr->prev_free)); in rt_memheap_realloc()
364 next_ptr->next_free->prev_free = next_ptr->prev_free; in rt_memheap_realloc()
365 next_ptr->prev_free->next_free = next_ptr->next_free; in rt_memheap_realloc()
366 next_ptr->next->prev = next_ptr->prev; in rt_memheap_realloc()
367 next_ptr->prev->next = next_ptr->next; in rt_memheap_realloc()
370 next_ptr = (struct rt_memheap_item *)((char *)ptr + newsize); in rt_memheap_realloc()
374 next_ptr, in rt_memheap_realloc()
375 next_ptr->next, in rt_memheap_realloc()
376 next_ptr->prev)); in rt_memheap_realloc()
379 next_ptr->magic = RT_MEMHEAP_MAGIC; in rt_memheap_realloc()
382 next_ptr->pool_ptr = heap; in rt_memheap_realloc()
384 next_ptr->prev = header_ptr; in rt_memheap_realloc()
385 next_ptr->next = header_ptr->next; in rt_memheap_realloc()
386 header_ptr->next->prev = next_ptr; in rt_memheap_realloc()
387 header_ptr->next = next_ptr; in rt_memheap_realloc()
390 next_ptr->next_free = heap->free_list->next_free; in rt_memheap_realloc()
391 next_ptr->prev_free = heap->free_list; in rt_memheap_realloc()
392 heap->free_list->next_free->prev_free = next_ptr; in rt_memheap_realloc()
393 heap->free_list->next_free = next_ptr; in rt_memheap_realloc()
395 next_ptr->next_free, in rt_memheap_realloc()
396 next_ptr->prev_free)); in rt_memheap_realloc()