/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_handle_array.c | 51 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()
|
/openbmc/linux/drivers/media/rc/ |
H A D | bpf-lirc.c | 140 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()
|
/openbmc/linux/kernel/bpf/ |
H A D | net_namespace.c | 107 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()
|
H A D | core.c | 2606 struct bpf_prog_array **new_array) in bpf_prog_array_copy() argument 2640 *new_array = NULL; in bpf_prog_array_copy() 2669 *new_array = array; in bpf_prog_array_copy()
|
/openbmc/linux/mm/ |
H A D | memblock.c | 418 struct memblock_region *new_array, *old_array; in memblock_double_array() local 448 new_array = kmalloc(new_size, GFP_KERNEL); in memblock_double_array() 449 addr = new_array ? __pa(new_array) : 0; in memblock_double_array() 463 new_array = addr ? __va(addr) : NULL; in memblock_double_array() 480 memcpy(new_array, type->regions, old_size); in memblock_double_array() 481 memset(new_array + type->max, 0, old_size); in memblock_double_array() 483 type->regions = new_array; in memblock_double_array()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_mem.c | 399 uint8_t *new_array; in virtio_mem_bbm_bb_states_prepare_next_bb() local 404 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb() 405 if (!new_array) in virtio_mem_bbm_bb_states_prepare_next_bb() 410 memcpy(new_array, vm->bbm.bb_states, old_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb() 412 vm->bbm.bb_states = new_array; in virtio_mem_bbm_bb_states_prepare_next_bb() 465 uint8_t *new_array; in virtio_mem_sbm_mb_states_prepare_next_mb() local 470 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb() 471 if (!new_array) in virtio_mem_sbm_mb_states_prepare_next_mb() 476 memcpy(new_array, vm->sbm.mb_states, old_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb() 478 vm->sbm.mb_states = new_array; in virtio_mem_sbm_mb_states_prepare_next_mb()
|
/openbmc/qemu/docs/devel/ |
H A D | rcu.rst | 374 new_array = g_malloc(sizeof(struct arr) + 376 new_array->size = global_array->size; 377 new_array->alloc = global_array->alloc * 2; 378 memcpy(new_array->data, global_array->data, 383 qatomic_rcu_set(&global_array, new_array);
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | fadump.c | 847 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()
|
/openbmc/linux/arch/x86/xen/ |
H A D | mmu_pv.c | 125 unsigned long *new_array, *old_array; in alloc_discontig_frames() local 132 new_array = (unsigned long *)__get_free_pages(GFP_KERNEL, in alloc_discontig_frames() 134 if (!new_array) in alloc_discontig_frames() 147 discontig_frames = new_array; in alloc_discontig_frames() 151 old_array = new_array; in alloc_discontig_frames()
|
/openbmc/linux/kernel/trace/ |
H A D | bpf_trace.c | 2169 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog() local 2193 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog() 2200 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog() 2211 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog() local 2223 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog() 2227 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog()
|
/openbmc/linux/net/sched/ |
H A D | sch_fq.c | 699 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()
|
/openbmc/linux/fs/ext4/ |
H A D | xattr.c | 2889 struct ext4_xattr_inode_array *new_array = NULL; in ext4_expand_inode_array() local 2893 new_array = kmalloc( in ext4_expand_inode_array() 2897 if (new_array == NULL) in ext4_expand_inode_array() 2899 memcpy(new_array, *ea_inode_array, in ext4_expand_inode_array() 2902 *ea_inode_array = new_array; in ext4_expand_inode_array()
|
/openbmc/linux/include/linux/ |
H A D | bpf.h | 1903 struct bpf_prog_array **new_array);
|
/openbmc/linux/drivers/md/ |
H A D | md.c | 10099 module_param_call(new_array, add_named_array, NULL, NULL, S_IWUSR);
|