Lines Matching refs:acquired_refs
740 if (state->acquired_refs && state->refs[0].id) { in print_verifier_state()
742 for (i = 1; i < state->acquired_refs; i++) in print_verifier_state()
805 dst->refs = copy_array(dst->refs, src->refs, src->acquired_refs, in copy_reference_state()
810 dst->acquired_refs = src->acquired_refs; in copy_reference_state()
829 state->refs = realloc_array(state->refs, state->acquired_refs, n, in resize_reference_state()
834 state->acquired_refs = n; in resize_reference_state()
861 int new_ofs = state->acquired_refs; in acquire_reference_state()
864 err = resize_reference_state(state, state->acquired_refs + 1); in acquire_reference_state()
879 last_idx = state->acquired_refs - 1; in release_reference_state()
880 for (i = 0; i < state->acquired_refs; i++) { in release_reference_state()
886 state->acquired_refs--; in release_reference_state()
931 memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); in copy_func_state()
6317 for (i = 0; i < state->acquired_refs; i++) { in check_reference_leak()
6321 return state->acquired_refs ? -EINVAL : 0; in check_reference_leak()
10612 if (old->acquired_refs != cur->acquired_refs) in refsafe()
10615 sizeof(*old->refs) * old->acquired_refs); in refsafe()