Lines Matching refs:filts
1503 static void addr_filters__add(struct addr_filters *filts, in addr_filters__add() argument
1506 list_add_tail(&filt->list, &filts->head); in addr_filters__add()
1507 filts->cnt += 1; in addr_filters__add()
1510 static void addr_filters__del(struct addr_filters *filts, in addr_filters__del() argument
1514 filts->cnt -= 1; in addr_filters__del()
1517 void addr_filters__init(struct addr_filters *filts) in addr_filters__init() argument
1519 INIT_LIST_HEAD(&filts->head); in addr_filters__init()
1520 filts->cnt = 0; in addr_filters__init()
1523 void addr_filters__exit(struct addr_filters *filts) in addr_filters__exit() argument
1527 list_for_each_entry_safe(filt, n, &filts->head, list) { in addr_filters__exit()
1528 addr_filters__del(filts, filt); in addr_filters__exit()
1683 int addr_filters__parse_bare_filter(struct addr_filters *filts, in addr_filters__parse_bare_filter() argument
1695 addr_filters__exit(filts); in addr_filters__parse_bare_filter()
1698 addr_filters__add(filts, filt); in addr_filters__parse_bare_filter()
2107 struct addr_filters filts; in parse_addr_filter() local
2111 addr_filters__init(&filts); in parse_addr_filter()
2113 err = addr_filters__parse_bare_filter(&filts, filter); in parse_addr_filter()
2117 if (filts.cnt > max_nr) { in parse_addr_filter()
2119 filts.cnt, max_nr); in parse_addr_filter()
2124 list_for_each_entry(filt, &filts.head, list) { in parse_addr_filter()
2144 addr_filters__exit(&filts); in parse_addr_filter()