Lines Matching refs:entry
162 int netlbl_af4list_add(struct netlbl_af4list *entry, struct list_head *head) in netlbl_af4list_add() argument
166 iter = netlbl_af4list_search(entry->addr, head); in netlbl_af4list_add()
168 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add()
177 ntohl(entry->mask) > ntohl(iter->mask)) { in netlbl_af4list_add()
178 __list_add_rcu(&entry->list, in netlbl_af4list_add()
183 list_add_tail_rcu(&entry->list, head); in netlbl_af4list_add()
199 int netlbl_af6list_add(struct netlbl_af6list *entry, struct list_head *head) in netlbl_af6list_add() argument
203 iter = netlbl_af6list_search(&entry->addr, head); in netlbl_af6list_add()
205 ipv6_addr_equal(&iter->addr, &entry->addr) && in netlbl_af6list_add()
206 ipv6_addr_equal(&iter->mask, &entry->mask)) in netlbl_af6list_add()
215 ipv6_addr_cmp(&entry->mask, &iter->mask) > 0) { in netlbl_af6list_add()
216 __list_add_rcu(&entry->list, in netlbl_af6list_add()
221 list_add_tail_rcu(&entry->list, head); in netlbl_af6list_add()
235 void netlbl_af4list_remove_entry(struct netlbl_af4list *entry) in netlbl_af4list_remove_entry() argument
237 entry->valid = 0; in netlbl_af4list_remove_entry()
238 list_del_rcu(&entry->list); in netlbl_af4list_remove_entry()
256 struct netlbl_af4list *entry; in netlbl_af4list_remove() local
258 entry = netlbl_af4list_search_exact(addr, mask, head); in netlbl_af4list_remove()
259 if (entry == NULL) in netlbl_af4list_remove()
261 netlbl_af4list_remove_entry(entry); in netlbl_af4list_remove()
262 return entry; in netlbl_af4list_remove()
275 void netlbl_af6list_remove_entry(struct netlbl_af6list *entry) in netlbl_af6list_remove_entry() argument
277 entry->valid = 0; in netlbl_af6list_remove_entry()
278 list_del_rcu(&entry->list); in netlbl_af6list_remove_entry()
297 struct netlbl_af6list *entry; in netlbl_af6list_remove() local
299 entry = netlbl_af6list_search_exact(addr, mask, head); in netlbl_af6list_remove()
300 if (entry == NULL) in netlbl_af6list_remove()
302 netlbl_af6list_remove_entry(entry); in netlbl_af6list_remove()
303 return entry; in netlbl_af6list_remove()