Lines Matching refs:acquired_refs
732 if (state->acquired_refs && state->refs[0].id) { in print_verifier_state()
734 for (i = 1; i < state->acquired_refs; i++) in print_verifier_state()
797 dst->refs = copy_array(dst->refs, src->refs, src->acquired_refs, in copy_reference_state()
802 dst->acquired_refs = src->acquired_refs; in copy_reference_state()
821 state->refs = realloc_array(state->refs, state->acquired_refs, n, in resize_reference_state()
826 state->acquired_refs = n; in resize_reference_state()
853 int new_ofs = state->acquired_refs; in acquire_reference_state()
856 err = resize_reference_state(state, state->acquired_refs + 1); in acquire_reference_state()
871 last_idx = state->acquired_refs - 1; in release_reference_state()
872 for (i = 0; i < state->acquired_refs; i++) { in release_reference_state()
878 state->acquired_refs--; in release_reference_state()
923 memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); in copy_func_state()
6102 for (i = 0; i < state->acquired_refs; i++) { in check_reference_leak()
6106 return state->acquired_refs ? -EINVAL : 0; in check_reference_leak()
10382 if (old->acquired_refs != cur->acquired_refs) in refsafe()
10385 sizeof(*old->refs) * old->acquired_refs); in refsafe()