/net/core/ |
D | dev_addr_lists.c | 42 static int __hw_addr_add_ex(struct netdev_hw_addr_list *list, in __hw_addr_add_ex() argument 47 struct rb_node **ins_point = &list->tree.rb_node, *parent = NULL; in __hw_addr_add_ex() 53 ha = list_first_entry(&list->list, struct netdev_hw_addr, list); in __hw_addr_add_ex() 101 if (list->count > 0) { in __hw_addr_add_ex() 103 rb_insert_color(&ha->node, &list->tree); in __hw_addr_add_ex() 108 list_add_tail_rcu(&ha->list, &list->list); in __hw_addr_add_ex() 109 list->count++; in __hw_addr_add_ex() 114 static int __hw_addr_add(struct netdev_hw_addr_list *list, in __hw_addr_add() argument 118 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 122 static int __hw_addr_del_entry(struct netdev_hw_addr_list *list, in __hw_addr_del_entry() argument [all …]
|
D | flow_offload.c | 238 list_for_each_entry(block_cb, &block->cb_list, list) { in flow_block_cb_lookup() 327 struct list_head list; member 355 struct list_head list; member 366 list_for_each_entry(cur, &flow_indir_dev_list, list) { in existing_qdiscs_register() 381 list_for_each_entry(indr_dev, &flow_block_indr_dev_list, list) { in flow_indr_dev_register() 396 list_add(&indr_dev->list, &flow_block_indr_dev_list); in flow_indr_dev_register() 410 list_for_each_entry_safe(this, next, &flow_block_indr_list, indr.list) { in __flow_block_indr_cleanup() 413 list_move(&this->indr.list, cleanup_list); in __flow_block_indr_cleanup() 421 list_for_each_entry_safe(this, next, cleanup_list, indr.list) { in flow_block_indr_notify() 422 list_del(&this->indr.list); in flow_block_indr_notify() [all …]
|
/net/netfilter/ |
D | nf_conncount.c | 51 struct nf_conncount_list list; member 85 static void conn_free(struct nf_conncount_list *list, in conn_free() argument 88 lockdep_assert_held(&list->list_lock); in conn_free() 90 list->count--; in conn_free() 97 find_or_evict(struct net *net, struct nf_conncount_list *list, in find_or_evict() argument 118 conn_free(list, conn); in find_or_evict() 126 struct nf_conncount_list *list, in __nf_conncount_add() argument 136 list_for_each_entry_safe(conn, conn_n, &list->head, node) { in __nf_conncount_add() 140 found = find_or_evict(net, list, conn); in __nf_conncount_add() 172 conn_free(list, conn); in __nf_conncount_add() [all …]
|
D | nft_connlimit.c | 17 struct nf_conncount_list *list; member 46 if (nf_conncount_add(nft_net(pkt), priv->list, tuple_ptr, zone)) { in nft_connlimit_do_eval() 51 count = priv->list->count; in nft_connlimit_do_eval() 80 priv->list = kmalloc(sizeof(*priv->list), GFP_KERNEL_ACCOUNT); in nft_connlimit_do_init() 81 if (!priv->list) in nft_connlimit_do_init() 84 nf_conncount_list_init(priv->list); in nft_connlimit_do_init() 94 kfree(priv->list); in nft_connlimit_do_init() 103 nf_conncount_cache_free(priv->list); in nft_connlimit_do_destroy() 104 kfree(priv->list); in nft_connlimit_do_destroy() 217 priv_dst->list = kmalloc(sizeof(*priv_dst->list), GFP_ATOMIC); in nft_connlimit_clone() [all …]
|
D | nf_tables_api.c | 77 struct list_head list; member 161 INIT_LIST_HEAD(&trans->list); in nft_trans_alloc_gfp() 177 list_del(&trans->list); in nft_trans_list_del() 198 list_for_each_entry_reverse(trans, &nft_net->commit_list, list) { in __nft_set_trans_bind() 233 list_for_each_entry_reverse(trans, &nft_net->commit_list, list) { in __nft_chain_trans_bind() 285 list_for_each_entry(hook, hook_list, list) { in nft_netdev_register_hooks() 295 list_for_each_entry(hook, hook_list, list) { in nft_netdev_register_hooks() 310 list_for_each_entry_safe(hook, next, hook_list, list) { in nft_netdev_unregister_hooks() 313 list_del(&hook->list); in nft_netdev_unregister_hooks() 390 list_add_tail(&trans->list, &nft_net->commit_list); in nft_trans_commit_list_add_tail() [all …]
|
/net/netlabel/ |
D | netlabel_addrlist.h | 38 struct list_head list; member 53 struct list_head list; member 56 #define __af4list_entry(ptr) container_of(ptr, struct netlbl_af4list, list) 84 &iter->list != (head); \ 85 iter = __af4list_valid(iter->list.next, head)) 89 &iter->list != (head); \ 90 iter = __af4list_valid_rcu(iter->list.next, head)) 94 tmp = __af4list_valid(iter->list.next, head); \ 95 &iter->list != (head); \ 96 iter = tmp, tmp = __af4list_valid(iter->list.next, head)) [all …]
|
D | netlabel_addrlist.c | 51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 76 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search_exact() 101 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search() 127 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search_exact() 161 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_add() 164 __list_add_rcu(&entry->list, in netlbl_af4list_add() 165 iter->list.prev, in netlbl_af4list_add() 166 &iter->list); in netlbl_af4list_add() 169 list_add_tail_rcu(&entry->list, head); in netlbl_af4list_add() 199 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_add() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_lblcr.c | 87 struct list_head list; /* list link */ member 95 struct list_head list; /* destination list */ member 105 list_for_each_entry(e, &set->list, list) { in ip_vs_dest_set_insert() 118 list_add_rcu(&e->list, &set->list); in ip_vs_dest_set_insert() 138 list_for_each_entry(e, &set->list, list) { in ip_vs_dest_set_erase() 143 list_del_rcu(&e->list); in ip_vs_dest_set_erase() 154 list_for_each_entry_safe(e, ep, &set->list, list) { in ip_vs_dest_set_eraseall() 155 list_del_rcu(&e->list); in ip_vs_dest_set_eraseall() 168 list_for_each_entry_rcu(e, &set->list, list) { in ip_vs_dest_set_min() 183 list_for_each_entry_continue_rcu(e, &set->list, list) { in ip_vs_dest_set_min() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_list_set.c | 28 struct list_head list; member 63 list_for_each_entry_rcu(e, &map->members, list) { in list_set_ktest() 82 list_for_each_entry(e, &map->members, list) { in list_set_kadd() 102 list_for_each_entry(e, &map->members, list) { in list_set_kdel() 158 list_del_rcu(&e->list); in list_set_del() 168 list_replace_rcu(&old->list, &e->list); in list_set_replace() 179 list_for_each_entry_safe(e, n, &map->members, list) in set_cleanup_entries() 193 list_for_each_entry(e, &map->members, list) { in list_set_utest() 205 next = list_next_entry(e, list); in list_set_utest() 206 ret = !list_is_last(&e->list, &map->members) && in list_set_utest() [all …]
|
/net/smc/ |
D | smc_pnet.c | 60 struct list_head list; member 117 list) { in smc_pnet_remove_by_pnetid() 120 list_del(&pnetelem->list); in smc_pnet_remove_by_pnetid() 141 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_remove_by_pnetid() 163 list_for_each_entry(smcd_dev, &smcd_dev_list.list, list) { in smc_pnet_remove_by_pnetid() 195 list_for_each_entry_safe(pnetelem, tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_add_by_ndev() 227 list_for_each_entry_safe(pnetelem, tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_remove_by_ndev() 310 list_for_each_entry(ibdev, &smc_ib_devices.list, list) { in smc_pnet_find_ib() 331 list_for_each_entry(smcd_dev, &smcd_dev_list.list, list) { in smc_pnet_find_smcd() 376 list_for_each_entry(tmp_pe, &pnettable->pnetlist, list) { in smc_pnet_add_eth() [all …]
|
D | smc_core.c | 44 .list = LIST_HEAD_INIT(smc_lgr_list.list), 67 return &smc_lgr_list.list; in smc_lgr_list_head() 258 smcd_dev = list_first_entry_or_null(&smcd_dev_list.list, in smc_nl_get_sys_info() 259 struct smcd_dev, list); in smc_nl_get_sys_info() 422 list_for_each_entry(lgr, &smc_lgr->list, list) { in smc_nl_fill_lgr_list() 518 list_for_each_entry(lgr, &dev->lgr_list, list) { in smc_nl_handle_smcd_lgr() 545 list_for_each_entry(smcd_dev, &dev_list->list, list) { in smc_nl_fill_smcd_dev() 594 if (!list_empty(&lgr->list)) in smc_lgr_cleanup_early() 595 list_del_init(&lgr->list); in smc_lgr_cleanup_early() 637 list_del_init(&lgr->list); /* remove from smc_lgr_list */ in smc_lgr_free_work() [all …]
|
/net/dsa/ |
D | dsa2.c | 64 list_for_each_entry(dst, &dsa_tree_list, list) { in dsa_broadcast() 142 list_for_each_entry(dst, &dsa_tree_list, list) in dsa_bridge_num_find() 143 list_for_each_entry(dp, &dst->ports, list) in dsa_bridge_num_find() 182 list_for_each_entry(dst, &dsa_tree_list, list) { in dsa_switch_find() 186 list_for_each_entry(dp, &dst->ports, list) { in dsa_switch_find() 202 list_for_each_entry(dst, &dsa_tree_list, list) in dsa_tree_find() 223 INIT_LIST_HEAD(&dst->list); in dsa_tree_alloc() 224 list_add_tail(&dst->list, &dsa_tree_list); in dsa_tree_alloc() 235 list_del(&dst->list); in dsa_tree_free() 278 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_find_port_by_node() [all …]
|
/net/batman-adv/ |
D | types.h | 170 struct list_head list; member 250 struct hlist_node list; member 308 struct hlist_node list; member 339 struct hlist_node list; member 560 struct hlist_node list; member 609 struct hlist_node list; member 642 struct hlist_node list; member 718 struct hlist_node list; member 1357 struct list_head list; member 1376 struct hlist_node list; member [all …]
|
D | originator.c | 118 hlist_for_each_entry_rcu(tmp, &orig_node->vlan_list, list) { in batadv_orig_node_vlan_get() 167 hlist_add_head_rcu(&vlan->list, &orig_node->vlan_list); in batadv_orig_node_vlan_new() 249 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release() 270 &neigh_node->ifinfo_list, list) { in batadv_neigh_node_release() 299 hlist_for_each_entry_rcu(orig_ifinfo, &orig_node->ifinfo_list, list) { in batadv_orig_router_get() 331 list) { in batadv_orig_ifinfo_get() 381 INIT_HLIST_NODE(&orig_ifinfo->list); in batadv_orig_ifinfo_new() 385 hlist_add_head_rcu(&orig_ifinfo->list, in batadv_orig_ifinfo_new() 410 list) { in batadv_neigh_ifinfo_get() 455 INIT_HLIST_NODE(&neigh_ifinfo->list); in batadv_neigh_ifinfo_new() [all …]
|
/net/sctp/ |
D | bind_addr.c | 55 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 67 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 104 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_dup() 129 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean() 130 list_del_rcu(&addr->list); in sctp_bind_addr_clean() 165 INIT_LIST_HEAD(&addr->list); in sctp_add_bind_addr() 170 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr() 187 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_del_bind_addr() 192 list_del_rcu(&addr->list); in sctp_del_bind_addr() 246 list_for_each_entry(addr, &bp->address_list, list) { in sctp_bind_addrs_to_raw() [all …]
|
/net/tipc/ |
D | msg.c | 369 int dsz, int pktmax, struct sk_buff_head *list) in tipc_msg_build() argument 393 one_page_mtu, list); in tipc_msg_build() 396 if (tipc_msg_assemble(list)) in tipc_msg_build() 401 __skb_queue_tail(list, skb); in tipc_msg_build() 422 __skb_queue_tail(list, skb); in tipc_msg_build() 455 __skb_queue_tail(list, skb); in tipc_msg_build() 467 __skb_queue_purge(list); in tipc_msg_build() 468 __skb_queue_head_init(list); in tipc_msg_build() 735 bool tipc_msg_assemble(struct sk_buff_head *list) in tipc_msg_assemble() argument 739 if (skb_queue_len(list) == 1) in tipc_msg_assemble() [all …]
|
D | msg.h | 1195 int offset, int dsz, int mtu, struct sk_buff_head *list); 1199 bool tipc_msg_assemble(struct sk_buff_head *list); 1200 bool tipc_msg_reassemble(struct sk_buff_head *list, struct sk_buff_head *rcvq); 1203 bool __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, 1221 static inline struct sk_buff *tipc_skb_peek(struct sk_buff_head *list, in tipc_skb_peek() argument 1227 skb = skb_peek(list); in tipc_skb_peek() 1242 static inline u32 tipc_skb_peek_port(struct sk_buff_head *list, u32 filter) in tipc_skb_peek_port() argument 1248 spin_lock_bh(&list->lock); in tipc_skb_peek_port() 1249 skb_queue_walk(list, skb) { in tipc_skb_peek_port() 1251 if (!filter || skb_queue_is_last(list, skb)) in tipc_skb_peek_port() [all …]
|
/net/bluetooth/ |
D | 6lowpan.c | 56 struct list_head list; member 66 struct list_head list; member 86 list_add_rcu(&peer->list, &dev->peers); in peer_add() 93 list_del_rcu(&peer->list); in peer_del() 111 list_for_each_entry_rcu(peer, &dev->peers, list) { in __peer_lookup_chan() 124 list_for_each_entry_rcu(peer, &dev->peers, list) { in __peer_lookup_conn() 169 list_for_each_entry_rcu(peer, &dev->peers, list) { in peer_lookup_dst() 183 list_for_each_entry_rcu(peer, &dev->peers, list) { in peer_lookup_dst() 205 list_for_each_entry_rcu(entry, &bt_6lowpan_devices, list) { in lookup_peer() 223 list_for_each_entry_rcu(entry, &bt_6lowpan_devices, list) { in lookup_dev() [all …]
|
D | hci_core.c | 1061 list_for_each_entry(d, &hci_dev_list, list) { in hci_dev_get() 1155 list_for_each_entry(e, &cache->unknown, list) { in hci_inquiry_cache_lookup_unknown() 1172 list_for_each_entry(e, &cache->resolve, list) { in hci_inquiry_cache_lookup_resolve() 1189 list_del(&ie->list); in hci_inquiry_cache_update_resolve() 1191 list_for_each_entry(p, &cache->resolve, list) { in hci_inquiry_cache_update_resolve() 1195 pos = &p->list; in hci_inquiry_cache_update_resolve() 1198 list_add(&ie->list, pos); in hci_inquiry_cache_update_resolve() 1242 list_add(&ie->list, &cache->unknown); in hci_inquiry_cache_update() 1249 list_del(&ie->list); in hci_inquiry_cache_update() 1714 list_for_each_entry(p, &hdev->le_conn_params, list) { in hci_pend_le_actions_clear() [all …]
|
/net/ipv4/ |
D | ipmr_base.c | 66 struct rhlist_head *tmp, *list; in mr_mfc_find_parent() local 69 list = rhltable_lookup(&mrt->mfc_hash, hasharg, *mrt->ops.rht_params); in mr_mfc_find_parent() 70 rhl_for_each_entry_rcu(c, tmp, list, mnode) in mr_mfc_find_parent() 80 struct rhlist_head *tmp, *list; in mr_mfc_find_any_parent() local 83 list = rhltable_lookup(&mrt->mfc_hash, mrt->ops.cmparg_any, in mr_mfc_find_any_parent() 85 rhl_for_each_entry_rcu(c, tmp, list, mnode) in mr_mfc_find_any_parent() 95 struct rhlist_head *tmp, *list; in mr_mfc_find_any() local 98 list = rhltable_lookup(&mrt->mfc_hash, hasharg, *mrt->ops.rht_params); in mr_mfc_find_any() 99 rhl_for_each_entry_rcu(c, tmp, list, mnode) { in mr_mfc_find_any() 155 list_for_each_entry_rcu(mfc, &mrt->mfc_cache_list, list) in mr_mfc_seq_idx() [all …]
|
/net/vmw_vsock/ |
D | vsock_loopback.c | 36 list_add_tail(&pkt->list, &vsock->pkt_list); in vsock_loopback_send_pkt() 51 list_for_each_entry_safe(pkt, n, &vsock->pkt_list, list) { in vsock_loopback_cancel_pkt() 54 list_move(&pkt->list, &freeme); in vsock_loopback_cancel_pkt() 58 list_for_each_entry_safe(pkt, n, &freeme, list) { in vsock_loopback_cancel_pkt() 59 list_del(&pkt->list); in vsock_loopback_cancel_pkt() 133 pkt = list_first_entry(&pkts, struct virtio_vsock_pkt, list); in vsock_loopback_work() 134 list_del_init(&pkt->list); in vsock_loopback_work() 178 struct virtio_vsock_pkt, list); in vsock_loopback_exit() 179 list_del(&pkt->list); in vsock_loopback_exit()
|
/net/mac80211/ |
D | offchannel.c | 105 list_for_each_entry(sdata, &local->interfaces, list) { in ieee80211_offchannel_stop_vifs() 140 list_for_each_entry(sdata, &local->interfaces, list) { in ieee80211_offchannel_return() 188 list_del(&roc->list); in ieee80211_roc_notify_destroy() 200 list_for_each_entry_safe(roc, tmp, &local->roc_list, list) { in ieee80211_end_finished_rocs() 267 list_for_each_entry(roc, &local->roc_list, list) { in ieee80211_hw_roc_start() 302 list); in _ieee80211_start_next_roc() 311 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() 332 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() 344 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() 373 list_for_each_entry(tmp, &local->roc_list, list) { in _ieee80211_start_next_roc() [all …]
|
/net/phonet/ |
D | pn_dev.c | 58 list_add_rcu(&pnd->list, &pndevs->list); in __phonet_device_alloc() 68 list_for_each_entry(pnd, &pndevs->list, list) { in __phonet_get() 80 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in __phonet_get_rcu() 97 list_del_rcu(&pnd->list); in phonet_device_destroy() 116 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in phonet_device_get() 161 list_del_rcu(&pnd->list); in phonet_address_del() 213 list_for_each_entry_rcu(pnd, &pndevs->list, list) { in phonet_address_lookup() 311 INIT_LIST_HEAD(&pnn->pndevs.list); in phonet_init_net() 322 WARN_ON_ONCE(!list_empty(&pnn->pndevs.list)); in phonet_exit_net()
|
/net/ipv6/ |
D | addrlabel.c | 38 struct hlist_node list; member 133 hlist_for_each_entry_rcu(p, &net->ipv6.ip6addrlbl_table.head, list) { in __ipv6_addr_label() 198 INIT_HLIST_NODE(&newp->list); in ip6addrlbl_alloc() 213 hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) { in __ip6addrlbl_add() 221 hlist_replace_rcu(&p->list, &newp->list); in __ip6addrlbl_add() 226 hlist_add_before_rcu(&newp->list, &p->list); in __ip6addrlbl_add() 232 hlist_add_behind_rcu(&newp->list, &last->list); in __ip6addrlbl_add() 234 hlist_add_head_rcu(&newp->list, &net->ipv6.ip6addrlbl_table.head); in __ip6addrlbl_add() 276 hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) { in __ip6addrlbl_del() 280 hlist_del_rcu(&p->list); in __ip6addrlbl_del() [all …]
|
/net/caif/ |
D | cfctrl.c | 56 INIT_LIST_HEAD(&this->list); in cfctrl_create() 66 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_remove() 67 list_del(&p->list); in cfctrl_remove() 135 list_add_tail(&req->list, &ctrl->list); in cfctrl_insert_req() 145 first = list_first_entry(&ctrl->list, struct cfctrl_request_info, list); in cfctrl_remove_req() 147 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_remove_req() 154 list_del(&p->list); in cfctrl_remove_req() 342 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_cancel_req() 344 list_del(&p->list); in cfctrl_cancel_req() 563 if (!list_empty(&this->list)) in cfctrl_ctrlcmd() [all …]
|