Lines Matching refs:nmatches
307 static int link_tree(struct rtnl_ematch *index[], int nmatches, int pos, in link_tree() argument
313 for (i = pos; i < nmatches; i++) { in link_tree()
319 link_tree(index, nmatches, container_ref(ematch), in link_tree()
346 int nmatches = 0, err, remaining; in rtnl_ematch_parse_attr() local
360 if (thdr->nmatches == 0) { in rtnl_ematch_parse_attr()
369 thdr->nmatches, thdr->progid); in rtnl_ematch_parse_attr()
376 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse_attr()
380 if (!(index = calloc(thdr->nmatches, sizeof(struct rtnl_ematch *)))) in rtnl_ematch_parse_attr()
396 nmatches+1, nla_len(a)); in rtnl_ematch_parse_attr()
404 if (nmatches >= thdr->nmatches) { in rtnl_ematch_parse_attr()
421 *((uint32_t *) data) >= thdr->nmatches) { in rtnl_ematch_parse_attr()
451 NL_DBG(3, "index[%d] = %p\n", nmatches, ematch); in rtnl_ematch_parse_attr()
452 index[nmatches++] = ematch; in rtnl_ematch_parse_attr()
455 if (nmatches != thdr->nmatches) { in rtnl_ematch_parse_attr()
460 err = link_tree(index, nmatches, 0, &tree->et_list); in rtnl_ematch_parse_attr()
608 thdr.nmatches = index; in rtnl_ematch_fill_attr()