Lines Matching refs:filts
1953 static void addr_filters__add(struct addr_filters *filts, in addr_filters__add() argument
1956 list_add_tail(&filt->list, &filts->head); in addr_filters__add()
1957 filts->cnt += 1; in addr_filters__add()
1960 static void addr_filters__del(struct addr_filters *filts, in addr_filters__del() argument
1964 filts->cnt -= 1; in addr_filters__del()
1967 void addr_filters__init(struct addr_filters *filts) in addr_filters__init() argument
1969 INIT_LIST_HEAD(&filts->head); in addr_filters__init()
1970 filts->cnt = 0; in addr_filters__init()
1973 void addr_filters__exit(struct addr_filters *filts) in addr_filters__exit() argument
1977 list_for_each_entry_safe(filt, n, &filts->head, list) { in addr_filters__exit()
1978 addr_filters__del(filts, filt); in addr_filters__exit()
2133 int addr_filters__parse_bare_filter(struct addr_filters *filts, in addr_filters__parse_bare_filter() argument
2145 addr_filters__exit(filts); in addr_filters__parse_bare_filter()
2148 addr_filters__add(filts, filt); in addr_filters__parse_bare_filter()
2557 struct addr_filters filts; in parse_addr_filter() local
2561 addr_filters__init(&filts); in parse_addr_filter()
2563 err = addr_filters__parse_bare_filter(&filts, filter); in parse_addr_filter()
2567 if (filts.cnt > max_nr) { in parse_addr_filter()
2569 filts.cnt, max_nr); in parse_addr_filter()
2574 list_for_each_entry(filt, &filts.head, list) { in parse_addr_filter()
2594 addr_filters__exit(&filts); in parse_addr_filter()