Home
last modified time | relevance | path

Searched refs:old_array (Results 1 – 9 of 9) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Dbpf-lirc.c139 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, &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, &new_array); in lirc_bpf_detach()
206 bpf_prog_array_free(old_array); in lirc_bpf_detach()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_hw_core.h97 …t mali_hw_core *core, u32 relative_address, u32 *write_array, u32 nr_of_regs, const u32 *old_array) in mali_hw_core_register_write_array_relaxed_conditional() argument
105 if (old_array[i] != write_array[i]) { in mali_hw_core_register_write_array_relaxed_conditional()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dnet_namespace.c106 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 Dcgroup.c112 struct bpf_prog_array *old_array; in cgroup_bpf_release() local
133 old_array = rcu_dereference_protected( in cgroup_bpf_release()
136 bpf_prog_array_free(old_array); in cgroup_bpf_release()
273 struct bpf_prog_array *old_array) in activate_effective_progs() argument
275 old_array = rcu_replace_pointer(cgrp->bpf.effective[type], old_array, in activate_effective_progs()
280 bpf_prog_array_free(old_array); in activate_effective_progs()
H A Dcore.c2078 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() argument
2092 if (old_array) { in bpf_prog_array_copy()
2093 existing = old_array->items; in bpf_prog_array_copy()
2127 existing = old_array->items; in bpf_prog_array_copy()
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dbpf_trace.c1904 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local
1922 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog()
1923 if (old_array && in perf_event_attach_bpf_prog()
1924 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog()
1929 ret = bpf_prog_array_copy(old_array, NULL, prog, &new_array); in perf_event_attach_bpf_prog()
1936 bpf_prog_array_free(old_array); in perf_event_attach_bpf_prog()
1945 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local
1954 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog()
1955 ret = bpf_prog_array_copy(old_array, event->prog, NULL, &new_array); in perf_event_detach_bpf_prog()
1959 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog()
[all …]
/OK3568_Linux_fs/kernel/mm/
H A Dmemblock.c429 struct memblock_region *new_array, *old_array; in memblock_double_array() local
493 old_array = type->regions; in memblock_double_array()
499 kfree(old_array); in memblock_double_array()
500 else if (old_array != memblock_memory_init_regions && in memblock_double_array()
501 old_array != memblock_reserved_init_regions) in memblock_double_array()
502 memblock_free(__pa(old_array), old_alloc_size); in memblock_double_array()
/OK3568_Linux_fs/kernel/net/sched/
H A Dsch_fq.c698 struct rb_root *old_array, u32 old_log, in fq_rehash() argument
708 oroot = &old_array[idx]; in fq_rehash()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbpf.h1095 int bpf_prog_array_copy(struct bpf_prog_array *old_array,