| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_handle_array.c | 45 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/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()
|
| /linux/drivers/of/ |
| H A D | of_reserved_mem.c | 74 struct reserved_mem *new_array; in alloc_reserved_mem_array() local 81 alloc_size = array_size(total_reserved_mem_cnt, sizeof(*new_array)); in alloc_reserved_mem_array() 87 new_array = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in alloc_reserved_mem_array() 88 if (!new_array) { in alloc_reserved_mem_array() 93 copy_size = array_size(reserved_mem_count, sizeof(*new_array)); in alloc_reserved_mem_array() 95 memblock_free(new_array, alloc_size); in alloc_reserved_mem_array() 102 memcpy(new_array, reserved_mem, copy_size); in alloc_reserved_mem_array() 103 memset(new_array + reserved_mem_count, 0, memset_size); in alloc_reserved_mem_array() 105 reserved_mem = new_array; in alloc_reserved_mem_array()
|
| /linux/kernel/bpf/ |
| H A D | net_namespace.c | 106 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()
|
| H A D | core.c | 2944 struct bpf_prog_array **new_array) in bpf_prog_array_copy() 2978 *new_array = NULL; in bpf_prog_array_copy() 3007 *new_array = array; in bpf_prog_array_copy_info() 2938 bpf_prog_array_copy(struct bpf_prog_array * old_array,struct bpf_prog * exclude_prog,struct bpf_prog * include_prog,u64 bpf_cookie,struct bpf_prog_array ** new_array) bpf_prog_array_copy() argument
|
| /linux/mm/ |
| H A D | memblock.c | 433 struct memblock_region *new_array, *old_array; in memblock_double_array() local 463 new_array = kmalloc(new_size, GFP_KERNEL); in memblock_double_array() 464 addr = new_array ? __pa(new_array) : 0; in memblock_double_array() 482 new_array = __va(addr); in memblock_double_array() 484 new_array = NULL; in memblock_double_array() 502 memcpy(new_array, type->regions, old_size); in memblock_double_array() 503 memset(new_array + type->max, 0, old_size); in memblock_double_array() 505 type->regions = new_array; in memblock_double_array()
|
| /linux/drivers/virtio/ |
| H A D | virtio_mem.c | 406 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/arch/x86/xen/ |
| H A D | mmu_pv.c | 134 unsigned long *new_array, *old_array; in alloc_discontig_frames() local 141 new_array = (unsigned long *)__get_free_pages(GFP_KERNEL, in alloc_discontig_frames() 143 if (!new_array) in alloc_discontig_frames() 156 discontig_frames = new_array; in alloc_discontig_frames() 160 old_array = new_array; in alloc_discontig_frames()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1956 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog() local 1980 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog() 1987 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog() 1998 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog() local 2011 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog() 2015 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog()
|
| /linux/net/sched/ |
| H A D | sch_fq.c | 899 struct rb_root *new_array, u32 new_log) in fq_rehash() argument 917 nroot = &new_array[hash_ptr(of->sk, new_log)]; in fq_rehash()
|
| /linux/include/linux/ |
| H A D | bpf.h | 2572 struct bpf_prog_array **new_array); in bpf_reset_run_ctx()
|
| /linux/drivers/md/ |
| H A D | md.c | 11113 module_param_call(new_array, add_named_array, NULL, NULL, S_IWUSR);
|