Searched refs:new_n (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/lib/ |
A D | assoc_array.c | 1509 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 D | kernel.h | 121 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 D | slab.h | 647 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 D | kfd_svm.c | 864 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 D | verifier.c | 1237 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