Lines Matching refs:filts
2114 static void addr_filters__add(struct addr_filters *filts, in addr_filters__add() argument
2117 list_add_tail(&filt->list, &filts->head); in addr_filters__add()
2118 filts->cnt += 1; in addr_filters__add()
2121 static void addr_filters__del(struct addr_filters *filts, in addr_filters__del() argument
2125 filts->cnt -= 1; in addr_filters__del()
2128 void addr_filters__init(struct addr_filters *filts) in addr_filters__init() argument
2130 INIT_LIST_HEAD(&filts->head); in addr_filters__init()
2131 filts->cnt = 0; in addr_filters__init()
2134 void addr_filters__exit(struct addr_filters *filts) in addr_filters__exit() argument
2138 list_for_each_entry_safe(filt, n, &filts->head, list) { in addr_filters__exit()
2139 addr_filters__del(filts, filt); in addr_filters__exit()
2294 int addr_filters__parse_bare_filter(struct addr_filters *filts, in addr_filters__parse_bare_filter() argument
2306 addr_filters__exit(filts); in addr_filters__parse_bare_filter()
2309 addr_filters__add(filts, filt); in addr_filters__parse_bare_filter()
2726 struct addr_filters filts; in parse_addr_filter() local
2730 addr_filters__init(&filts); in parse_addr_filter()
2732 err = addr_filters__parse_bare_filter(&filts, filter); in parse_addr_filter()
2736 if (filts.cnt > max_nr) { in parse_addr_filter()
2738 filts.cnt, max_nr); in parse_addr_filter()
2743 list_for_each_entry(filt, &filts.head, list) { in parse_addr_filter()
2763 addr_filters__exit(&filts); in parse_addr_filter()