Lines Matching refs:aux
650 struct bpf_iter_aux_info *aux) in bpf_iter_init_array_map() argument
653 struct bpf_map *map = aux->map; in bpf_iter_init_array_map()
846 mutex_lock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem()
849 mutex_unlock(&array->aux->poke_mutex); in bpf_fd_array_map_update_elem()
869 mutex_lock(&array->aux->poke_mutex); in fd_array_map_delete_elem()
872 mutex_unlock(&array->aux->poke_mutex); in fd_array_map_delete_elem()
908 return ((struct bpf_prog *)ptr)->aux->id; in prog_fd_array_sys_lookup_elem()
946 struct bpf_prog_aux *aux; member
953 struct bpf_array_aux *aux; in prog_array_map_poke_track() local
956 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_track()
957 mutex_lock(&aux->poke_mutex); in prog_array_map_poke_track()
958 list_for_each_entry(elem, &aux->poke_progs, list) { in prog_array_map_poke_track()
959 if (elem->aux == prog_aux) in prog_array_map_poke_track()
974 elem->aux = prog_aux; in prog_array_map_poke_track()
976 list_add_tail(&elem->list, &aux->poke_progs); in prog_array_map_poke_track()
978 mutex_unlock(&aux->poke_mutex); in prog_array_map_poke_track()
986 struct bpf_array_aux *aux; in prog_array_map_poke_untrack() local
988 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_untrack()
989 mutex_lock(&aux->poke_mutex); in prog_array_map_poke_untrack()
990 list_for_each_entry_safe(elem, tmp, &aux->poke_progs, list) { in prog_array_map_poke_untrack()
991 if (elem->aux == prog_aux) { in prog_array_map_poke_untrack()
997 mutex_unlock(&aux->poke_mutex); in prog_array_map_poke_untrack()
1011 struct bpf_array_aux *aux; in prog_array_map_poke_run() local
1013 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_poke_run()
1014 WARN_ON_ONCE(!mutex_is_locked(&aux->poke_mutex)); in prog_array_map_poke_run()
1016 list_for_each_entry(elem, &aux->poke_progs, list) { in prog_array_map_poke_run()
1020 for (i = 0; i < elem->aux->size_poke_tab; i++) { in prog_array_map_poke_run()
1021 poke = &elem->aux->poke_tab[i]; in prog_array_map_poke_run()
1065 struct bpf_array_aux *aux = container_of(map, struct bpf_array, in prog_array_map_clear() local
1066 map)->aux; in prog_array_map_clear()
1068 schedule_work(&aux->work); in prog_array_map_clear()
1073 struct bpf_array_aux *aux; in prog_array_map_alloc() local
1076 aux = kzalloc(sizeof(*aux), GFP_KERNEL_ACCOUNT); in prog_array_map_alloc()
1077 if (!aux) in prog_array_map_alloc()
1080 INIT_WORK(&aux->work, prog_array_map_clear_deferred); in prog_array_map_alloc()
1081 INIT_LIST_HEAD(&aux->poke_progs); in prog_array_map_alloc()
1082 mutex_init(&aux->poke_mutex); in prog_array_map_alloc()
1086 kfree(aux); in prog_array_map_alloc()
1090 container_of(map, struct bpf_array, map)->aux = aux; in prog_array_map_alloc()
1091 aux->map = map; in prog_array_map_alloc()
1099 struct bpf_array_aux *aux; in prog_array_map_free() local
1101 aux = container_of(map, struct bpf_array, map)->aux; in prog_array_map_free()
1102 list_for_each_entry_safe(elem, tmp, &aux->poke_progs, list) { in prog_array_map_free()
1106 kfree(aux); in prog_array_map_free()