Lines Matching refs:n
1559 static void *copy_array(void *dst, const void *src, size_t n, size_t size, gfp_t flags) in copy_array() argument
1568 if (unlikely(check_mul_overflow(n, size, &bytes))) in copy_array()
1624 size_t n = src->allocated_stack / BPF_REG_SIZE; in copy_stack_state() local
1626 dst->stack = copy_array(dst->stack, src->stack, n, sizeof(struct bpf_stack_state), in copy_stack_state()
1635 static int resize_reference_state(struct bpf_func_state *state, size_t n) in resize_reference_state() argument
1637 state->refs = realloc_array(state->refs, state->acquired_refs, n, in resize_reference_state()
1642 state->acquired_refs = n; in resize_reference_state()
1651 size_t old_n = state->allocated_stack / BPF_REG_SIZE, n = size / BPF_REG_SIZE; in grow_stack_state() local
1653 if (old_n >= n) in grow_stack_state()
1656 state->stack = realloc_array(state->stack, old_n, n, sizeof(struct bpf_stack_state)); in grow_stack_state()
3604 int i, n; in fmt_reg_mask() local
3610 n = snprintf(buf, buf_sz, "%sr%d", first ? "" : ",", i); in fmt_reg_mask()
3612 buf += n; in fmt_reg_mask()
3613 buf_sz -= n; in fmt_reg_mask()
3623 int i, n; in fmt_stack_mask() local
3629 n = snprintf(buf, buf_sz, "%s%d", first ? "" : ",", -(i + 1) * 8); in fmt_stack_mask()
3631 buf += n; in fmt_stack_mask()
3632 buf_sz -= n; in fmt_stack_mask()
16582 int i, j, n, err, states_cnt = 0; in is_state_visited() local
16796 n = is_force_checkpoint(env, insn_idx) && sl->state.branches > 0 ? 64 : 3; in is_state_visited()
16797 if (sl->miss_cnt > sl->hit_cnt * n + n) { in is_state_visited()
17329 int i, n; in find_btf_percpu_datasec() local
17336 n = btf_nr_types(btf); in find_btf_percpu_datasec()
17342 for(; i < n; i++) { in find_btf_percpu_datasec()