Lines Matching refs:entry
148 int netlbl_af4list_add(struct netlbl_af4list *entry, struct list_head *head) in netlbl_af4list_add() argument
152 iter = netlbl_af4list_search(entry->addr, head); in netlbl_af4list_add()
154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add()
163 ntohl(entry->mask) > ntohl(iter->mask)) { in netlbl_af4list_add()
164 __list_add_rcu(&entry->list, in netlbl_af4list_add()
169 list_add_tail_rcu(&entry->list, head); in netlbl_af4list_add()
185 int netlbl_af6list_add(struct netlbl_af6list *entry, struct list_head *head) in netlbl_af6list_add() argument
189 iter = netlbl_af6list_search(&entry->addr, head); in netlbl_af6list_add()
191 ipv6_addr_equal(&iter->addr, &entry->addr) && in netlbl_af6list_add()
192 ipv6_addr_equal(&iter->mask, &entry->mask)) in netlbl_af6list_add()
201 ipv6_addr_cmp(&entry->mask, &iter->mask) > 0) { in netlbl_af6list_add()
202 __list_add_rcu(&entry->list, in netlbl_af6list_add()
207 list_add_tail_rcu(&entry->list, head); in netlbl_af6list_add()
221 void netlbl_af4list_remove_entry(struct netlbl_af4list *entry) in netlbl_af4list_remove_entry() argument
223 entry->valid = 0; in netlbl_af4list_remove_entry()
224 list_del_rcu(&entry->list); in netlbl_af4list_remove_entry()
242 struct netlbl_af4list *entry; in netlbl_af4list_remove() local
244 entry = netlbl_af4list_search_exact(addr, mask, head); in netlbl_af4list_remove()
245 if (entry == NULL) in netlbl_af4list_remove()
247 netlbl_af4list_remove_entry(entry); in netlbl_af4list_remove()
248 return entry; in netlbl_af4list_remove()
261 void netlbl_af6list_remove_entry(struct netlbl_af6list *entry) in netlbl_af6list_remove_entry() argument
263 entry->valid = 0; in netlbl_af6list_remove_entry()
264 list_del_rcu(&entry->list); in netlbl_af6list_remove_entry()
283 struct netlbl_af6list *entry; in netlbl_af6list_remove() local
285 entry = netlbl_af6list_search_exact(addr, mask, head); in netlbl_af6list_remove()
286 if (entry == NULL) in netlbl_af6list_remove()
288 netlbl_af6list_remove_entry(entry); in netlbl_af6list_remove()
289 return entry; in netlbl_af6list_remove()