Lines Matching refs:size
326 int kdb_getarea_size(void *res, unsigned long addr, size_t size) in kdb_getarea_size() argument
328 int ret = probe_kernel_read((char *)res, (char *)addr, size); in kdb_getarea_size()
351 int kdb_putarea_size(unsigned long addr, void *res, size_t size) in kdb_putarea_size() argument
353 int ret = probe_kernel_read((char *)addr, (char *)res, size); in kdb_putarea_size()
377 static int kdb_getphys(void *res, unsigned long addr, size_t size) in kdb_getphys() argument
388 memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size); in kdb_getphys()
403 int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) in kdb_getphysword() argument
412 switch (size) { in kdb_getphysword()
429 if (size <= sizeof(*word)) { in kdb_getphysword()
438 kdb_printf("kdb_getphysword: bad width %ld\n", (long) size); in kdb_getphysword()
453 int kdb_getword(unsigned long *word, unsigned long addr, size_t size) in kdb_getword() argument
461 switch (size) { in kdb_getword()
478 if (size <= sizeof(*word)) { in kdb_getword()
487 kdb_printf("kdb_getword: bad width %ld\n", (long) size); in kdb_getword()
502 int kdb_putword(unsigned long addr, unsigned long word, size_t size) in kdb_putword() argument
509 switch (size) { in kdb_putword()
523 if (size <= sizeof(word)) { in kdb_putword()
531 kdb_printf("kdb_putword: bad width %ld\n", (long) size); in kdb_putword()
694 u32 size; member
745 void *debug_kmalloc(size_t size, gfp_t flags) in debug_kmalloc() argument
756 h->size = sizeof(debug_alloc_pool_aligned) - dah_overhead; in debug_kmalloc()
759 size = ALIGN(size, dah_align); in debug_kmalloc()
762 if (h->size >= size && (!best || h->size < best->size)) { in debug_kmalloc()
765 if (h->size == size) in debug_kmalloc()
775 rem = best->size - size; in debug_kmalloc()
780 best->size = size; in debug_kmalloc()
782 dah_overhead + best->size; in debug_kmalloc()
784 h->size = rem - dah_overhead; in debug_kmalloc()
789 dah_used += best->size; in debug_kmalloc()
796 memset(p, POISON_INUSE, best->size - 1); in debug_kmalloc()
797 *((char *)p + best->size - 1) = POISON_END; in debug_kmalloc()
819 memset(p, POISON_FREE, h->size - 1); in debug_kfree()
820 *((char *)p + h->size - 1) = POISON_END; in debug_kfree()
822 dah_used -= h->size; 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()
850 if (h_offset + dah_overhead + h->size == h->next) { in debug_kfree()
854 h->size += dah_overhead + next->size; in debug_kfree()
880 (h_free->size == sizeof(debug_alloc_pool_aligned) - dah_overhead || in debug_kusage()
891 h_used->size); in debug_kusage()
895 ((char *)h_free + dah_overhead + h_free->size); in debug_kusage()
897 __func__, h_used, h_used->size, h_used->caller); in debug_kusage()
902 ((char *)h_free + dah_overhead + h_free->size); in debug_kusage()
906 __func__, h_used, h_used->size, h_used->caller); in debug_kusage()