Home
last modified time | relevance | path

Searched refs:new_array (Results 1 – 15 of 15) sorted by relevance

/linux-6.14.4/drivers/misc/vmw_vmci/
Dvmci_handle_array.c45 struct vmci_handle_arr *new_array; in vmci_handle_arr_append_entry() local
54 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
55 if (!new_array) in vmci_handle_arr_append_entry()
58 new_array->capacity += capacity_bump; in vmci_handle_arr_append_entry()
59 *array_ptr = array = new_array; in vmci_handle_arr_append_entry()
/linux-6.14.4/drivers/media/rc/
Dbpf-lirc.c140 struct bpf_prog_array *new_array; in lirc_bpf_attach() local
163 ret = bpf_prog_array_copy(old_array, NULL, prog, 0, &new_array); in lirc_bpf_attach()
167 rcu_assign_pointer(raw->progs, new_array); in lirc_bpf_attach()
178 struct bpf_prog_array *new_array; in lirc_bpf_detach() local
196 ret = bpf_prog_array_copy(old_array, prog, NULL, 0, &new_array); in lirc_bpf_detach()
205 rcu_assign_pointer(raw->progs, new_array); in lirc_bpf_detach()
/linux-6.14.4/drivers/of/
Dof_reserved_mem.c74 struct reserved_mem *new_array; in alloc_reserved_mem_array() local
77 alloc_size = array_size(total_reserved_mem_cnt, sizeof(*new_array)); in alloc_reserved_mem_array()
83 new_array = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in alloc_reserved_mem_array()
84 if (!new_array) { in alloc_reserved_mem_array()
89 copy_size = array_size(reserved_mem_count, sizeof(*new_array)); in alloc_reserved_mem_array()
91 memblock_free(new_array, alloc_size); in alloc_reserved_mem_array()
99 memcpy(new_array, reserved_mem, copy_size); in alloc_reserved_mem_array()
100 memset(new_array + reserved_mem_count, 0, memset_size); in alloc_reserved_mem_array()
102 reserved_mem = new_array; in alloc_reserved_mem_array()
/linux-6.14.4/kernel/bpf/
Dnet_namespace.c107 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release() local
136 new_array = bpf_prog_array_alloc(cnt, GFP_KERNEL); in bpf_netns_link_release()
137 if (!new_array) { in bpf_netns_link_release()
141 fill_prog_array(net, type, new_array); in bpf_netns_link_release()
142 rcu_assign_pointer(net->bpf.run_array[type], new_array); in bpf_netns_link_release()
Dcore.c2664 struct bpf_prog_array **new_array) in bpf_prog_array_copy() argument
2698 *new_array = NULL; in bpf_prog_array_copy()
2727 *new_array = array; in bpf_prog_array_copy()
/linux-6.14.4/io_uring/
Drsrc.c643 struct page **page_array = *pages, **new_array = NULL; in io_coalesce_buffer() local
648 new_array = kvmalloc_array(nr_folios, sizeof(struct page *), in io_coalesce_buffer()
650 if (!new_array) in io_coalesce_buffer()
653 new_array[0] = compound_head(page_array[0]); in io_coalesce_buffer()
668 new_array[i] = page_array[j]; in io_coalesce_buffer()
677 *pages = new_array; in io_coalesce_buffer()
/linux-6.14.4/mm/
Dmemblock.c414 struct memblock_region *new_array, *old_array; in memblock_double_array() local
444 new_array = kmalloc(new_size, GFP_KERNEL); in memblock_double_array()
445 addr = new_array ? __pa(new_array) : 0; in memblock_double_array()
459 new_array = addr ? __va(addr) : NULL; in memblock_double_array()
476 memcpy(new_array, type->regions, old_size); in memblock_double_array()
477 memset(new_array + type->max, 0, old_size); in memblock_double_array()
479 type->regions = new_array; in memblock_double_array()
/linux-6.14.4/drivers/virtio/
Dvirtio_mem.c406 uint8_t *new_array; in virtio_mem_bbm_bb_states_prepare_next_bb() local
411 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb()
412 if (!new_array) in virtio_mem_bbm_bb_states_prepare_next_bb()
417 memcpy(new_array, vm->bbm.bb_states, old_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb()
419 vm->bbm.bb_states = new_array; in virtio_mem_bbm_bb_states_prepare_next_bb()
472 uint8_t *new_array; in virtio_mem_sbm_mb_states_prepare_next_mb() local
477 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb()
478 if (!new_array) in virtio_mem_sbm_mb_states_prepare_next_mb()
483 memcpy(new_array, vm->sbm.mb_states, old_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb()
485 vm->sbm.mb_states = new_array; in virtio_mem_sbm_mb_states_prepare_next_mb()
/linux-6.14.4/arch/powerpc/kernel/
Dfadump.c847 struct fadump_memory_range *new_array; in fadump_alloc_mem_ranges() local
854 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges()
855 if (new_array == NULL) { in fadump_alloc_mem_ranges()
862 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges()
/linux-6.14.4/arch/x86/xen/
Dmmu_pv.c123 unsigned long *new_array, *old_array; in alloc_discontig_frames() local
130 new_array = (unsigned long *)__get_free_pages(GFP_KERNEL, in alloc_discontig_frames()
132 if (!new_array) in alloc_discontig_frames()
145 discontig_frames = new_array; in alloc_discontig_frames()
149 old_array = new_array; in alloc_discontig_frames()
/linux-6.14.4/kernel/trace/
Dbpf_trace.c2206 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog() local
2230 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
2237 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog()
2248 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog() local
2261 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog()
2265 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog()
/linux-6.14.4/fs/ext4/
Dxattr.c2877 struct ext4_xattr_inode_array *new_array = NULL; in ext4_expand_inode_array() local
2879 new_array = kmalloc( in ext4_expand_inode_array()
2883 if (new_array == NULL) in ext4_expand_inode_array()
2885 memcpy(new_array, *ea_inode_array, in ext4_expand_inode_array()
2889 *ea_inode_array = new_array; in ext4_expand_inode_array()
/linux-6.14.4/net/sched/
Dsch_fq.c838 struct rb_root *new_array, u32 new_log) in fq_rehash() argument
856 nroot = &new_array[hash_ptr(of->sk, new_log)]; in fq_rehash()
/linux-6.14.4/include/linux/
Dbpf.h2109 struct bpf_prog_array **new_array);
/linux-6.14.4/drivers/md/
Dmd.c10310 module_param_call(new_array, add_named_array, NULL, NULL, S_IWUSR);