Lines Matching refs:h_offset
747 unsigned int rem, h_offset; in debug_kmalloc() local
781 h_offset = ((char *)best - debug_alloc_pool) + in debug_kmalloc()
783 h = (struct debug_alloc_header *)(debug_alloc_pool + h_offset); in debug_kmalloc()
787 h_offset = best->next; in debug_kmalloc()
792 bestprev->next = h_offset; in debug_kmalloc()
794 dah_first = h_offset; in debug_kmalloc()
806 unsigned int h_offset; in debug_kfree() local
823 h_offset = (char *)h - debug_alloc_pool; in debug_kfree()
824 if (h_offset < dah_first) { in debug_kfree()
826 dah_first = h_offset; in debug_kfree()
833 if (!prev->next || prev->next > h_offset) in debug_kfree()
839 if (prev_offset + dah_overhead + prev->size == h_offset) { in debug_kfree()
844 h_offset = prev_offset; in debug_kfree()
847 prev->next = h_offset; in debug_kfree()
850 if (h_offset + dah_overhead + h->size == h->next) { in debug_kfree()