Lines Matching refs:index
79 int err = 0, index = -1, i = 0, s_i = 0, n_i = 0; in tcf_dump_walker() local
93 index++; in tcf_dump_walker()
94 if (index < s_i) in tcf_dump_walker()
99 index--; in tcf_dump_walker()
104 index--; in tcf_dump_walker()
179 static struct tc_action *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo) in tcf_hash_lookup() argument
185 head = &hinfo->htab[tcf_hash(index, hinfo->hmask)]; in tcf_hash_lookup()
187 if (p->tcfa_index == index) in tcf_hash_lookup()
197 u32 val = hinfo->index; in tcf_hash_new_index()
204 hinfo->index = val; in tcf_hash_new_index()
209 int tcf_hash_search(struct tc_action_net *tn, struct tc_action **a, u32 index) in tcf_hash_search() argument
212 struct tc_action *p = tcf_hash_lookup(index, hinfo); in tcf_hash_search()
222 bool tcf_hash_check(struct tc_action_net *tn, u32 index, struct tc_action **a, in tcf_hash_check() argument
228 if (index && (p = tcf_hash_lookup(index, hinfo)) != NULL) { in tcf_hash_check()
248 int tcf_hash_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_hash_create() argument
278 p->tcfa_index = index ? index : tcf_hash_new_index(tn); in tcf_hash_create()
751 int index; in tcf_action_get_1() local
760 nla_len(tb[TCA_ACT_INDEX]) < sizeof(index)) in tcf_action_get_1()
762 index = nla_get_u32(tb[TCA_ACT_INDEX]); in tcf_action_get_1()
769 if (ops->lookup(net, &a, index) == 0) in tcf_action_get_1()