Lines Matching refs:next_ptr
46 static void _remove_next_ptr(volatile struct rt_memheap_item *next_ptr) in _remove_next_ptr() argument
50 next_ptr->next_free->prev_free = next_ptr->prev_free; in _remove_next_ptr()
51 next_ptr->prev_free->next_free = next_ptr->next_free; in _remove_next_ptr()
52 next_ptr->next->prev = next_ptr->prev; in _remove_next_ptr()
53 next_ptr->prev->next = next_ptr->next; in _remove_next_ptr()
396 volatile struct rt_memheap_item *next_ptr; in rt_memheap_realloc() local
409 next_ptr = header_ptr->next; in rt_memheap_realloc()
412 RT_ASSERT(next_ptr > header_ptr); in rt_memheap_realloc()
415 if (!RT_MEMHEAP_IS_USED(next_ptr)) in rt_memheap_realloc()
419 nextsize = MEMITEM_SIZE(next_ptr); in rt_memheap_realloc()
420 RT_ASSERT(next_ptr > 0); in rt_memheap_realloc()
440 next_ptr, in rt_memheap_realloc()
441 next_ptr->next_free, in rt_memheap_realloc()
442 next_ptr->prev_free); in rt_memheap_realloc()
444 _remove_next_ptr(next_ptr); in rt_memheap_realloc()
447 next_ptr = (struct rt_memheap_item *)((char *)ptr + newsize); in rt_memheap_realloc()
450 next_ptr, in rt_memheap_realloc()
451 next_ptr->next, in rt_memheap_realloc()
452 next_ptr->prev); in rt_memheap_realloc()
455 next_ptr->magic = (RT_MEMHEAP_MAGIC | RT_MEMHEAP_FREED); in rt_memheap_realloc()
458 next_ptr->pool_ptr = heap; in rt_memheap_realloc()
461 … rt_memset((void *)next_ptr->owner_thread_name, ' ', sizeof(next_ptr->owner_thread_name)); in rt_memheap_realloc()
464 next_ptr->prev = header_ptr; in rt_memheap_realloc()
465 next_ptr->next = header_ptr->next; in rt_memheap_realloc()
466 header_ptr->next->prev = (struct rt_memheap_item *)next_ptr; in rt_memheap_realloc()
467 header_ptr->next = (struct rt_memheap_item *)next_ptr; in rt_memheap_realloc()
470 next_ptr->next_free = heap->free_list->next_free; in rt_memheap_realloc()
471 next_ptr->prev_free = heap->free_list; in rt_memheap_realloc()
472 heap->free_list->next_free->prev_free = (struct rt_memheap_item *)next_ptr; in rt_memheap_realloc()
473 heap->free_list->next_free = (struct rt_memheap_item *)next_ptr; in rt_memheap_realloc()
475 next_ptr->next_free, in rt_memheap_realloc()
476 next_ptr->prev_free); in rt_memheap_realloc()