Lines Matching refs:n_alloc
20 unsigned int n_alloc; member
24 } policies[] __counted_by(n_alloc);
32 unsigned int old_n_alloc, n_alloc, i; in add_policy() local
37 for (i = 0; i < state->n_alloc; i++) { in add_policy()
49 n_alloc = state->n_alloc + INITIAL_POLICIES_ALLOC; in add_policy()
50 state = krealloc(state, struct_size(state, policies, n_alloc), in add_policy()
55 old_n_alloc = state->n_alloc; in add_policy()
56 state->n_alloc = n_alloc; in add_policy()
58 flex_array_size(state, policies, n_alloc - old_n_alloc)); in add_policy()
91 for (i = 0; i < state->n_alloc; i++) { in netlink_policy_dump_get_policy_idx()
109 state->n_alloc = INITIAL_POLICIES_ALLOC; in alloc_state()
151 policy_idx < state->n_alloc && state->policies[policy_idx].policy; in netlink_policy_dump_add_policy()
193 return state->policy_idx >= state->n_alloc || in netlink_policy_dump_finished()