Searched refs:old_array (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/media/rc/ |
| H A D | bpf-lirc.c | 139 struct bpf_prog_array *old_array; in lirc_bpf_attach() local 157 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_attach() 158 if (old_array && bpf_prog_array_length(old_array) >= BPF_MAX_PROGS) { in lirc_bpf_attach() 163 ret = bpf_prog_array_copy(old_array, NULL, prog, 0, &new_array); in lirc_bpf_attach() 168 bpf_prog_array_free(old_array); in lirc_bpf_attach() 177 struct bpf_prog_array *old_array; in lirc_bpf_detach() local 195 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_detach() 196 ret = bpf_prog_array_copy(old_array, prog, NULL, 0, &new_array); in lirc_bpf_detach() 206 bpf_prog_array_free(old_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 133 old_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_release() 137 WARN_ON(bpf_prog_array_delete_safe_at(old_array, idx)); in bpf_netns_link_release() 142 bpf_prog_array_free(old_array); in bpf_netns_link_release()
|
| H A D | cgroup.c | 329 struct bpf_prog_array *old_array; in cgroup_bpf_release() local 357 old_array = rcu_dereference_protected( in cgroup_bpf_release() 360 bpf_prog_array_free(old_array); in cgroup_bpf_release() 513 struct bpf_prog_array *old_array) in activate_effective_progs() argument 515 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs() 520 bpf_prog_array_free(old_array); in activate_effective_progs()
|
| H A D | core.c | 2940 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() 2954 if (old_array) { in bpf_prog_array_copy() 2955 existing = old_array->items; in bpf_prog_array_copy() 2990 existing = old_array->items; in bpf_prog_array_copy() 2934 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/kernel/trace/ |
| H A D | bpf_trace.c | 1955 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local 1973 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog() 1974 if (old_array && in perf_event_attach_bpf_prog() 1975 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog() 1980 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog() 1988 bpf_prog_array_free_sleepable(old_array); in perf_event_attach_bpf_prog() 1997 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local 2007 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog() 2008 if (!old_array) in perf_event_detach_bpf_prog() 2011 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog() [all …]
|
| /linux/mm/ |
| H A D | memblock.c | 433 struct memblock_region *new_array, *old_array; in memblock_double_array() local 504 old_array = type->regions; in memblock_double_array() 510 kfree(old_array); in memblock_double_array() 511 else if (old_array != memblock_memory_init_regions && in memblock_double_array() 512 old_array != memblock_reserved_init_regions) in memblock_double_array() 513 memblock_free(old_array, old_alloc_size); in memblock_double_array()
|
| /linux/arch/x86/xen/ |
| H A D | mmu_pv.c | 134 unsigned long *new_array, *old_array; in alloc_discontig_frames() local 152 old_array = NULL; in alloc_discontig_frames() 154 old_array = discontig_frames; in alloc_discontig_frames() 160 old_array = new_array; in alloc_discontig_frames() 165 free_pages((unsigned long)old_array, old_order - MIN_CONTIG_ORDER); in alloc_discontig_frames()
|
| /linux/net/sched/ |
| H A D | sch_fq.c | 898 struct rb_root *old_array, u32 old_log, in fq_rehash() argument 908 oroot = &old_array[idx]; in fq_rehash()
|
| /linux/include/linux/ |
| H A D | bpf.h | 2568 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_reset_run_ctx()
|