Lines Matching refs:policies
24 } policies[]; member
38 if (state->policies[i].policy == policy && in add_policy()
39 state->policies[i].maxtype == maxtype) in add_policy()
42 if (!state->policies[i].policy) { in add_policy()
43 state->policies[i].policy = policy; in add_policy()
44 state->policies[i].maxtype = maxtype; in add_policy()
50 state = krealloc(state, struct_size(state, policies, n_alloc), in add_policy()
55 memset(&state->policies[state->n_alloc], 0, in add_policy()
56 flex_array_size(state, policies, n_alloc - state->n_alloc)); in add_policy()
58 state->policies[state->n_alloc].policy = policy; in add_policy()
59 state->policies[state->n_alloc].maxtype = maxtype; in add_policy()
91 if (state->policies[i].policy == policy && in netlink_policy_dump_get_policy_idx()
92 state->policies[i].maxtype == maxtype) in netlink_policy_dump_get_policy_idx()
104 state = kzalloc(struct_size(state, policies, INITIAL_POLICIES_ALLOC), in alloc_state()
150 policy_idx < state->n_alloc && state->policies[policy_idx].policy; in netlink_policy_dump_add_policy()
155 policy = state->policies[policy_idx].policy; in netlink_policy_dump_add_policy()
158 type <= state->policies[policy_idx].maxtype; in netlink_policy_dump_add_policy()
183 !state->policies[state->policy_idx].policy; in netlink_policy_dump_finished()
422 pt = &state->policies[state->policy_idx].policy[state->attr_idx]; in netlink_policy_dump_write()
442 if (state->attr_idx > state->policies[state->policy_idx].maxtype) { in netlink_policy_dump_write()