Lines Matching refs:policy_idx
18 unsigned int policy_idx; member
131 unsigned int policy_idx; in netlink_policy_dump_add_policy() local
149 for (policy_idx = 0; in netlink_policy_dump_add_policy()
150 policy_idx < state->n_alloc && state->policies[policy_idx].policy; in netlink_policy_dump_add_policy()
151 policy_idx++) { 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()
182 return state->policy_idx >= state->n_alloc || in netlink_policy_dump_finished()
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()
424 policy = nla_nest_start(skb, state->policy_idx); in netlink_policy_dump_write()
442 if (state->attr_idx > state->policies[state->policy_idx].maxtype) { in netlink_policy_dump_write()
444 state->policy_idx++; in netlink_policy_dump_write()