Lines Matching refs:aux

607 				   struct bpf_iter_aux_info *aux)  in bpf_iter_init_array_map()  argument
610 struct bpf_map *map = aux->map; in bpf_iter_init_array_map()
798 mutex_lock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem()
801 mutex_unlock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem()
821 mutex_lock(&array->aux->poke_mutex); in fd_array_map_delete_elem()
824 mutex_unlock(&array->aux->poke_mutex); in fd_array_map_delete_elem()
861 return ((struct bpf_prog *)ptr)->aux->id; in prog_fd_array_sys_lookup_elem()
899 struct bpf_prog_aux *aux; member
906 struct bpf_array_aux *aux; in prog_array_map_poke_track() local
909 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_track()
910 mutex_lock(&aux->poke_mutex); in prog_array_map_poke_track()
911 list_for_each_entry(elem, &aux->poke_progs, list) { in prog_array_map_poke_track()
912 if (elem->aux == prog_aux) in prog_array_map_poke_track()
927 elem->aux = prog_aux; in prog_array_map_poke_track()
929 list_add_tail(&elem->list, &aux->poke_progs); in prog_array_map_poke_track()
931 mutex_unlock(&aux->poke_mutex); in prog_array_map_poke_track()
939 struct bpf_array_aux *aux; in prog_array_map_poke_untrack() local
941 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_untrack()
942 mutex_lock(&aux->poke_mutex); in prog_array_map_poke_untrack()
943 list_for_each_entry_safe(elem, tmp, &aux->poke_progs, list) { in prog_array_map_poke_untrack()
944 if (elem->aux == prog_aux) { in prog_array_map_poke_untrack()
950 mutex_unlock(&aux->poke_mutex); in prog_array_map_poke_untrack()
959 struct bpf_array_aux *aux; in prog_array_map_poke_run() local
961 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_run()
962 WARN_ON_ONCE(!mutex_is_locked(&aux->poke_mutex)); in prog_array_map_poke_run()
964 list_for_each_entry(elem, &aux->poke_progs, list) { in prog_array_map_poke_run()
968 for (i = 0; i < elem->aux->size_poke_tab; i++) { in prog_array_map_poke_run()
969 poke = &elem->aux->poke_tab[i]; in prog_array_map_poke_run()
1056 struct bpf_array_aux *aux = container_of(map, struct bpf_array, in prog_array_map_clear() local
1057 map)->aux; in prog_array_map_clear()
1059 schedule_work(&aux->work); in prog_array_map_clear()
1064 struct bpf_array_aux *aux; in prog_array_map_alloc() local
1067 aux = kzalloc(sizeof(*aux), GFP_KERNEL_ACCOUNT); in prog_array_map_alloc()
1068 if (!aux) in prog_array_map_alloc()
1071 INIT_WORK(&aux->work, prog_array_map_clear_deferred); in prog_array_map_alloc()
1072 INIT_LIST_HEAD(&aux->poke_progs); in prog_array_map_alloc()
1073 mutex_init(&aux->poke_mutex); in prog_array_map_alloc()
1074 spin_lock_init(&aux->owner.lock); in prog_array_map_alloc()
1078 kfree(aux); in prog_array_map_alloc()
1082 container_of(map, struct bpf_array, map)->aux = aux; in prog_array_map_alloc()
1083 aux->map = map; in prog_array_map_alloc()
1091 struct bpf_array_aux *aux; in prog_array_map_free() local
1093 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_free()
1094 list_for_each_entry_safe(elem, tmp, &aux->poke_progs, list) { in prog_array_map_free()
1098 kfree(aux); in prog_array_map_free()