Lines Matching defs:old_n
1396 /* resize an array from old_n items to new_n items. the array is reallocated if it's too
1401 static void *realloc_array(void *arr, size_t old_n, size_t new_n, size_t size)
1406 if (!new_n || old_n == new_n)
1417 if (new_n > old_n)
1418 memset(arr + old_n * size, 0, (new_n - old_n) * size);
1482 size_t old_n = bpf_stack_nr_slots(state), n;
1488 if (old_n >= n)
1491 state->stack = realloc_array(state->stack, old_n, n, sizeof(struct bpf_stack_state));
1507 size_t old_n = state->out_stack_arg_cnt;
1509 if (old_n >= cnt)
1512 state->stack_arg_regs = realloc_array(state->stack_arg_regs, old_n, cnt,