Home
last modified time | relevance | path

Searched refs:new_n (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/lib/
A Dassoc_array.c1509 if (!new_n) in assoc_array_gc()
1531 new_n->slots[slot] = ptr; in assoc_array_gc()
1546 new_n->nr_leaves_on_branch = 0; in assoc_array_gc()
1549 ptr = new_n->slots[slot]; in assoc_array_gc()
1564 ptr = new_n->slots[slot]; in assoc_array_gc()
1588 new_n->slots[slot] = NULL; in assoc_array_gc()
1631 slot = new_n->parent_slot; in assoc_array_gc()
1632 kfree(new_n); in assoc_array_gc()
1661 new_n->slots[slot] = ptr; in assoc_array_gc()
1669 ptr = new_n->back_pointer; in assoc_array_gc()
[all …]
/linux-6.3-rc2/tools/virtio/linux/
A Dkernel.h121 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array() argument
125 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/linux-6.3-rc2/include/linux/
A Dslab.h647 size_t new_n, in krealloc_array() argument
653 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_svm.c864 uint64_t new_start, uint64_t new_n) in svm_range_split_array() argument
875 new = kvmalloc_array(new_n, size, GFP_KERNEL); in svm_range_split_array()
880 memcpy(new, pold + d, new_n * size); in svm_range_split_array()
888 d = (new_start == old_start) ? new_n * size : 0; in svm_range_split_array()
/linux-6.3-rc2/kernel/bpf/
A Dverifier.c1237 static void *realloc_array(void *arr, size_t old_n, size_t new_n, size_t size) in realloc_array() argument
1242 if (!new_n || old_n == new_n) in realloc_array()
1245 alloc_size = kmalloc_size_roundup(size_mul(new_n, size)); in realloc_array()
1253 if (new_n > old_n) in realloc_array()
1254 memset(arr + old_n * size, 0, (new_n - old_n) * size); in realloc_array()

Completed in 43 milliseconds