Lines Matching refs:nmatches
226 static int link_tree(struct rtnl_ematch *index[], int nmatches, int pos, in link_tree() argument
232 for (i = pos; i < nmatches; i++) { in link_tree()
238 link_tree(index, nmatches, container_ref(ematch), in link_tree()
265 int nmatches = 0, err, remaining; in rtnl_ematch_parse() local
277 if (thdr->nmatches == 0) in rtnl_ematch_parse()
283 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse()
287 if (!(index = calloc(thdr->nmatches, sizeof(struct rtnl_ematch *)))) in rtnl_ematch_parse()
307 if (nmatches >= thdr->nmatches) { in rtnl_ematch_parse()
335 container_ref(ematch) >= thdr->nmatches) { in rtnl_ematch_parse()
340 index[nmatches++] = ematch; in rtnl_ematch_parse()
343 if (nmatches != thdr->nmatches) { in rtnl_ematch_parse()
348 err = link_tree(index, nmatches, 0, &tree->et_list); in rtnl_ematch_parse()