Lines Matching refs:mt

363 		  const union nft_pipapo_map_bucket *mt, bool match_only)  in pipapo_refill()  argument
387 bitmap_set(dst, mt[i].to, mt[i].n); in pipapo_refill()
460 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in nft_pipapo_lookup()
470 *ext = &f->mt[b].e->ext; in nft_pipapo_lookup()
565 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get()
571 if (nft_set_elem_expired(&f->mt[b].e->ext)) in pipapo_get()
574 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get()
577 ret = f->mt[b].e; in pipapo_get()
626 union nft_pipapo_map_bucket *new_mt, *old_mt = f->mt; in pipapo_resize()
637 goto mt; in pipapo_resize()
667 mt: in pipapo_resize()
674 memcpy(new_mt, f->mt, min(old_rules, rules) * sizeof(*new_mt)); in pipapo_resize()
686 f->mt = new_mt; in pipapo_resize()
1096 f->mt[map[i].to + j].to = map[i + 1].to;
1097 f->mt[map[i].to + j].n = map[i + 1].n;
1103 f->mt[map[i].to + j].e = e;
1359 dst->mt = kvmalloc(src->rules * sizeof(*src->mt), GFP_KERNEL);
1360 if (!dst->mt)
1363 memcpy(dst->mt, src->mt, src->rules * sizeof(*src->mt));
1374 kvfree(dst->mt);
1423 if (r != first && e != f->mt[r].e)
1426 e = f->mt[r].e;
1473 static void pipapo_unmap(union nft_pipapo_map_bucket *mt, int rules, argument
1478 memmove(mt + start, mt + start + n, (rules - start - n) * sizeof(*mt));
1479 memset(mt + rules - n, 0, n * sizeof(*mt));
1485 mt[i].to -= to_offset;
1550 pipapo_unmap(f->mt, f->rules, rulemap[i].to, rulemap[i].n,
1606 rules_fx = f->mt[start].n;
1607 start = f->mt[start].to;
1614 e = f->mt[rulemap[i].to].e;
1656 kvfree(f->mt);
2007 rules_fx = f->mt[start].n;
2008 start = f->mt[start].to;
2013 if (last && f->mt[rulemap[i].to].e == e) {
2063 if (r < f->rules - 1 && f->mt[r + 1].e == f->mt[r].e)
2069 e = f->mt[r].e;
2178 f->mt = NULL;
2221 if (r < f->rules - 1 && f->mt[r + 1].e == f->mt[r].e)
2224 e = f->mt[r].e;