Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
Dvmci_handle_array.c51 struct vmci_handle_arr *new_array; in vmci_handle_arr_append_entry() local
60 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
61 if (!new_array) in vmci_handle_arr_append_entry()
64 new_array->capacity += capacity_bump; in vmci_handle_arr_append_entry()
65 *array_ptr = array = new_array; in vmci_handle_arr_append_entry()
/kernel/linux/linux-5.10/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, &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, &new_array); in lirc_bpf_detach()
205 rcu_assign_pointer(raw->progs, new_array); in lirc_bpf_detach()
/kernel/linux/linux-5.10/tools/perf/util/
Dparse-events.y900 struct parse_events_array new_array; variable
902 new_array.nr_ranges = $1.nr_ranges + $3.nr_ranges;
903 new_array.ranges = realloc($1.ranges,
904 sizeof(new_array.ranges[0]) *
905 new_array.nr_ranges);
906 ABORT_ON(!new_array.ranges);
907 memcpy(&new_array.ranges[$1.nr_ranges], $3.ranges,
908 $3.nr_ranges * sizeof(new_array.ranges[0]));
910 $$ = new_array;
/kernel/linux/linux-5.10/kernel/bpf/
Dnet_namespace.c106 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release() local
135 new_array = bpf_prog_array_alloc(cnt, GFP_KERNEL); in bpf_netns_link_release()
136 if (!new_array) { in bpf_netns_link_release()
140 fill_prog_array(net, type, new_array); in bpf_netns_link_release()
141 rcu_assign_pointer(net->bpf.run_array[type], new_array); in bpf_netns_link_release()
Dcore.c2078 struct bpf_prog_array **new_array) in bpf_prog_array_copy() argument
2113 *new_array = NULL; in bpf_prog_array_copy()
2135 *new_array = array; in bpf_prog_array_copy()
/kernel/linux/linux-5.10/mm/
Dmemblock.c402 struct memblock_region *new_array, *old_array; in memblock_double_array() local
432 new_array = kmalloc(new_size, GFP_KERNEL); in memblock_double_array()
433 addr = new_array ? __pa(new_array) : 0; in memblock_double_array()
447 new_array = addr ? __va(addr) : NULL; in memblock_double_array()
464 memcpy(new_array, type->regions, old_size); in memblock_double_array()
465 memset(new_array + type->max, 0, old_size); in memblock_double_array()
467 type->regions = new_array; in memblock_double_array()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dfadump.c843 struct fadump_memory_range *new_array; in fadump_alloc_mem_ranges() local
850 new_array = krealloc(mrange_info->mem_ranges, new_size, GFP_KERNEL); in fadump_alloc_mem_ranges()
851 if (new_array == NULL) { in fadump_alloc_mem_ranges()
858 mrange_info->mem_ranges = new_array; in fadump_alloc_mem_ranges()
/kernel/linux/linux-5.10/kernel/trace/
Dbpf_trace.c1905 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog() local
1929 ret = bpf_prog_array_copy(old_array, NULL, prog, &new_array); in perf_event_attach_bpf_prog()
1935 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog()
1946 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog() local
1955 ret = bpf_prog_array_copy(old_array, event->prog, NULL, &new_array); in perf_event_detach_bpf_prog()
1961 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog()
/kernel/linux/linux-5.10/net/sched/
Dsch_fq.c699 struct rb_root *new_array, u32 new_log) in fq_rehash() argument
717 nroot = &new_array[hash_ptr(of->sk, new_log)]; in fq_rehash()
/kernel/linux/linux-5.10/fs/ext4/
Dxattr.c2822 struct ext4_xattr_inode_array *new_array = NULL; in ext4_expand_inode_array() local
2826 new_array = kmalloc( in ext4_expand_inode_array()
2830 if (new_array == NULL) in ext4_expand_inode_array()
2832 memcpy(new_array, *ea_inode_array, in ext4_expand_inode_array()
2835 *ea_inode_array = new_array; in ext4_expand_inode_array()
/kernel/linux/linux-5.10/include/linux/
Dbpf.h1142 struct bpf_prog_array **new_array);
/kernel/linux/linux-5.10/drivers/md/
Dmd.c9872 module_param_call(new_array, add_named_array, NULL, NULL, S_IWUSR);