| /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/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 | 2881 struct bpf_prog_array **new_array) in bpf_prog_array_copy() 2915 *new_array = NULL; in bpf_prog_array_copy() 2944 *new_array = array; in bpf_prog_array_copy_info() 2871 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 | 434 struct memblock_region *new_array, *old_array; in memblock_double_array() local 464 new_array = kmalloc(new_size, GFP_KERNEL); in memblock_double_array() 465 addr = new_array ? __pa(new_array) : 0; in memblock_double_array() 483 new_array = __va(addr); in memblock_double_array() 485 new_array = NULL; in memblock_double_array() 503 memcpy(new_array, type->regions, old_size); in memblock_double_array() 504 memset(new_array + type->max, 0, old_size); in memblock_double_array() 506 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() [all...] |
| /linux/io_uring/ |
| H A D | rsrc.c | 773 struct page **page_array = *pages, **new_array = NULL; in io_sqe_buffer_register() 779 new_array = kvmalloc_objs(struct page *, nr_folios); in io_sqe_buffer_register() 780 if (!new_array) in io_sqe_buffer_register() 797 new_array[i] = p; in io_sqe_buffer_register() 803 *pages = new_array; in io_sqe_buffer_register() 683 struct page **page_array = *pages, **new_array = NULL; io_coalesce_buffer() local
|
| /linux/arch/x86/xen/ |
| H A D | mmu_pv.c | 134 unsigned long *new_array, *old_array; in alloc_discontig_frames() 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() 126 unsigned long *new_array, *old_array; alloc_discontig_frames() local
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1956 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog() 1980 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_detach_bpf_prog() 1987 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog() 1998 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog() 2011 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_query_prog_array() 2015 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_query_prog_array() 1925 struct bpf_prog_array *new_array; perf_event_attach_bpf_prog() local 1967 struct bpf_prog_array *new_array; perf_event_detach_bpf_prog() local
|
| /linux/net/sched/ |
| H A D | sch_fq.c | 895 struct rb_root *new_array, u32 new_log) in fq_resize() 913 nroot = &new_array[hash_ptr(of->sk, new_log)]; in fq_resize() 836 fq_rehash(struct fq_sched_data * q,struct rb_root * old_array,u32 old_log,struct rb_root * new_array,u32 new_log) fq_rehash() argument
|
| /linux/include/linux/ |
| H A D | bpf.h | 2528 struct bpf_prog_array **new_array);
|
| /linux/drivers/md/ |
| H A D | md.c | 334 * The preferred method is to write to the "new_array" module parameter. 6299 * writing to /sys/module/md_mod/parameters/new_array. in md_alloc() 11011 module_param_call(new_array, add_named_array, NULL, NULL, S_IWUSR);
|