Lines Matching refs:dah_overhead
706 #define dah_overhead ALIGN(sizeof(struct debug_alloc_header), dah_align) macro
756 h->size = sizeof(debug_alloc_pool_aligned) - dah_overhead; in debug_kmalloc()
777 if (best->next == 0 && bestprev == NULL && rem < dah_overhead) in debug_kmalloc()
779 if (rem >= dah_overhead) { in debug_kmalloc()
782 dah_overhead + best->size; in debug_kmalloc()
784 h->size = rem - dah_overhead; in debug_kmalloc()
795 p = (char *)best + dah_overhead; in debug_kmalloc()
818 h = (struct debug_alloc_header *)((char *)p - dah_overhead); in debug_kfree()
839 if (prev_offset + dah_overhead + prev->size == h_offset) { in debug_kfree()
840 prev->size += dah_overhead + h->size; in debug_kfree()
841 memset(h, POISON_FREE, dah_overhead - 1); in debug_kfree()
842 *((char *)h + dah_overhead - 1) = POISON_END; in debug_kfree()
850 if (h_offset + dah_overhead + h->size == h->next) { in debug_kfree()
854 h->size += dah_overhead + next->size; in debug_kfree()
856 memset(next, POISON_FREE, dah_overhead - 1); in debug_kfree()
857 *((char *)next + dah_overhead - 1) = POISON_END; in debug_kfree()
880 (h_free->size == sizeof(debug_alloc_pool_aligned) - dah_overhead || in debug_kusage()
895 ((char *)h_free + dah_overhead + h_free->size); in debug_kusage()
902 ((char *)h_free + dah_overhead + h_free->size); in debug_kusage()