Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 83) sorted by relevance

1234

/net/atm/
Dmpoa_caches.c37 in_cache_entry *entry; in in_cache_get() local
40 entry = client->in_cache; in in_cache_get()
41 while (entry != NULL) { in in_cache_get()
42 if (entry->ctrl_info.in_dst_ip == dst_ip) { in in_cache_get()
43 atomic_inc(&entry->use); in in_cache_get()
45 return entry; in in_cache_get()
47 entry = entry->next; in in_cache_get()
58 in_cache_entry *entry; in in_cache_get_with_mask() local
61 entry = client->in_cache; in in_cache_get_with_mask()
62 while (entry != NULL) { in in_cache_get_with_mask()
[all …]
Dlec.c102 static inline void lec_arp_hold(struct lec_arp_table *entry) in lec_arp_hold() argument
104 atomic_inc(&entry->usage); in lec_arp_hold()
107 static inline void lec_arp_put(struct lec_arp_table *entry) in lec_arp_put() argument
109 if (atomic_dec_and_test(&entry->usage)) in lec_arp_put()
110 kfree(entry); in lec_arp_put()
208 struct lec_arp_table *entry; in lec_start_xmit() local
279 entry = NULL; in lec_start_xmit()
280 vcc = lec_arp_resolve(priv, dst, is_rdesc, &entry); in lec_start_xmit()
282 dev->name, vcc, vcc ? vcc->flags : 0, entry); in lec_start_xmit()
284 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) { in lec_start_xmit()
[all …]
Dmpc.c86 static void purge_egress_shortcut(struct atm_vcc *vcc, eg_cache_entry *entry);
178 struct atm_mpoa_qos *entry; in atm_mpoa_add_qos() local
180 entry = atm_mpoa_search_qos(dst_ip); in atm_mpoa_add_qos()
181 if (entry != NULL) { in atm_mpoa_add_qos()
182 entry->qos = *qos; in atm_mpoa_add_qos()
183 return entry; in atm_mpoa_add_qos()
186 entry = kmalloc(sizeof(struct atm_mpoa_qos), GFP_KERNEL); in atm_mpoa_add_qos()
187 if (entry == NULL) { in atm_mpoa_add_qos()
189 return entry; in atm_mpoa_add_qos()
192 entry->ipaddr = dst_ip; in atm_mpoa_add_qos()
[all …]
Dclip.c75 static void link_vcc(struct clip_vcc *clip_vcc, struct atmarp_entry *entry) in link_vcc() argument
77 pr_debug("%p to entry %p (neigh %p)\n", clip_vcc, entry, entry->neigh); in link_vcc()
78 clip_vcc->entry = entry; in link_vcc()
80 clip_vcc->next = entry->vccs; in link_vcc()
81 entry->vccs = clip_vcc; in link_vcc()
82 entry->neigh->used = jiffies; in link_vcc()
87 struct atmarp_entry *entry = clip_vcc->entry; in unlink_clip_vcc() local
90 if (!entry) { in unlink_clip_vcc()
94 netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */ in unlink_clip_vcc()
95 entry->neigh->used = jiffies; in unlink_clip_vcc()
[all …]
Daddr.c58 list_for_each_entry_safe(this, p, head, entry) { in atm_reset_addr()
59 list_del(&this->entry); in atm_reset_addr()
83 list_for_each_entry(this, head, entry) { in atm_add_addr()
95 list_add(&this->entry, head); in atm_add_addr()
118 list_for_each_entry(this, head, entry) { in atm_del_addr()
120 list_del(&this->entry); in atm_del_addr()
146 list_for_each_entry(this, head, entry) in atm_get_addr()
153 list_for_each_entry(this, head, entry) in atm_get_addr()
/net/netfilter/
Dnf_queue.c48 void nf_queue_entry_release_refs(struct nf_queue_entry *entry) in nf_queue_entry_release_refs() argument
51 if (entry->indev) in nf_queue_entry_release_refs()
52 dev_put(entry->indev); in nf_queue_entry_release_refs()
53 if (entry->outdev) in nf_queue_entry_release_refs()
54 dev_put(entry->outdev); in nf_queue_entry_release_refs()
56 if (entry->skb->nf_bridge) { in nf_queue_entry_release_refs()
57 struct nf_bridge_info *nf_bridge = entry->skb->nf_bridge; in nf_queue_entry_release_refs()
66 module_put(entry->elem->owner); in nf_queue_entry_release_refs()
71 bool nf_queue_entry_get_refs(struct nf_queue_entry *entry) in nf_queue_entry_get_refs() argument
73 if (!try_module_get(entry->elem->owner)) in nf_queue_entry_get_refs()
[all …]
Dnfnetlink_queue_core.c188 __enqueue_entry(struct nfqnl_instance *queue, struct nf_queue_entry *entry) in __enqueue_entry() argument
190 list_add_tail(&entry->list, &queue->queue_list); in __enqueue_entry()
195 __dequeue_entry(struct nfqnl_instance *queue, struct nf_queue_entry *entry) in __dequeue_entry() argument
197 list_del(&entry->list); in __dequeue_entry()
204 struct nf_queue_entry *entry = NULL, *i; in find_dequeue_entry() local
210 entry = i; in find_dequeue_entry()
215 if (entry) in find_dequeue_entry()
216 __dequeue_entry(queue, entry); in find_dequeue_entry()
220 return entry; in find_dequeue_entry()
226 struct nf_queue_entry *entry, *next; in nfqnl_flush() local
[all …]
/net/irda/
Dirqueue.c449 void hashbin_insert(hashbin_t* hashbin, irda_queue_t* entry, long hashv, in hashbin_insert() argument
475 entry->q_hash = hashv; in hashbin_insert()
477 strlcpy( entry->q_name, name, sizeof(entry->q_name)); in hashbin_insert()
483 entry); in hashbin_insert()
505 irda_queue_t *entry = NULL; in hashbin_remove_first() local
512 entry = hashbin_get_first( hashbin); in hashbin_remove_first()
513 if ( entry != NULL) { in hashbin_remove_first()
519 hashv = entry->q_hash; in hashbin_remove_first()
526 entry); in hashbin_remove_first()
528 entry->q_next = NULL; in hashbin_remove_first()
[all …]
/net/netlabel/
Dnetlabel_domainhash.c75 static void netlbl_domhsh_free_entry(struct rcu_head *entry) in netlbl_domhsh_free_entry() argument
85 ptr = container_of(entry, struct netlbl_dom_map, rcu); in netlbl_domhsh_free_entry()
172 struct netlbl_dom_map *entry; in netlbl_domhsh_search_def() local
174 entry = netlbl_domhsh_search(domain); in netlbl_domhsh_search_def()
175 if (entry == NULL) { in netlbl_domhsh_search_def()
176 entry = netlbl_domhsh_rcu_deref(netlbl_domhsh_def); in netlbl_domhsh_search_def()
177 if (entry != NULL && !entry->valid) in netlbl_domhsh_search_def()
178 entry = NULL; in netlbl_domhsh_search_def()
181 return entry; in netlbl_domhsh_search_def()
198 static void netlbl_domhsh_audit_add(struct netlbl_dom_map *entry, in netlbl_domhsh_audit_add() argument
[all …]
Dnetlabel_addrlist.c162 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()
[all …]
Dnetlabel_mgmt.c96 struct netlbl_dom_map *entry = NULL; in netlbl_mgmt_add_common() local
101 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in netlbl_mgmt_add_common()
102 if (entry == NULL) { in netlbl_mgmt_add_common()
106 entry->def.type = nla_get_u32(info->attrs[NLBL_MGMT_A_PROTOCOL]); in netlbl_mgmt_add_common()
109 entry->domain = kmalloc(tmp_size, GFP_KERNEL); in netlbl_mgmt_add_common()
110 if (entry->domain == NULL) { in netlbl_mgmt_add_common()
114 nla_strlcpy(entry->domain, in netlbl_mgmt_add_common()
123 switch (entry->def.type) { in netlbl_mgmt_add_common()
134 entry->def.cipso = cipsov4; in netlbl_mgmt_add_common()
174 map->def.type = entry->def.type; in netlbl_mgmt_add_common()
[all …]
Dnetlabel_kapi.c109 struct netlbl_dom_map *entry; in netlbl_cfg_unlbl_map_add() local
114 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
115 if (entry == NULL) in netlbl_cfg_unlbl_map_add()
118 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
119 if (entry->domain == NULL) in netlbl_cfg_unlbl_map_add()
124 entry->def.type = NETLBL_NLTYPE_UNLABELED; in netlbl_cfg_unlbl_map_add()
175 entry->def.addrsel = addrmap; in netlbl_cfg_unlbl_map_add()
176 entry->def.type = NETLBL_NLTYPE_ADDRSELECT; in netlbl_cfg_unlbl_map_add()
182 ret_val = netlbl_domhsh_add(entry, audit_info); in netlbl_cfg_unlbl_map_add()
189 kfree(entry->domain); in netlbl_cfg_unlbl_map_add()
[all …]
Dnetlabel_unlabeled.c167 static void netlbl_unlhsh_free_iface(struct rcu_head *entry) in netlbl_unlhsh_free_iface() argument
177 iface = container_of(entry, struct netlbl_unlhsh_iface, rcu); in netlbl_unlhsh_free_iface()
256 struct netlbl_unlhsh_addr4 *entry; in netlbl_unlhsh_add_addr4() local
258 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_unlhsh_add_addr4()
259 if (entry == NULL) in netlbl_unlhsh_add_addr4()
262 entry->list.addr = addr->s_addr & mask->s_addr; in netlbl_unlhsh_add_addr4()
263 entry->list.mask = mask->s_addr; in netlbl_unlhsh_add_addr4()
264 entry->list.valid = 1; in netlbl_unlhsh_add_addr4()
265 entry->secid = secid; in netlbl_unlhsh_add_addr4()
268 ret_val = netlbl_af4list_add(&entry->list, &iface->addr4_list); in netlbl_unlhsh_add_addr4()
[all …]
/net/dccp/
Dfeat.c282 static void dccp_feat_print_entry(struct dccp_feat_entry const *entry) in dccp_feat_print_entry() argument
284 dccp_debug(" * %s %s = ", entry->is_local ? "local" : "remote", in dccp_feat_print_entry()
285 dccp_feat_fname(entry->feat_num)); in dccp_feat_print_entry()
286 dccp_feat_printval(entry->feat_num, &entry->val); in dccp_feat_print_entry()
287 dccp_pr_debug_cat(", state=%s %s\n", dccp_feat_sname[entry->state], in dccp_feat_print_entry()
288 entry->needs_confirm ? "(Confirm pending)" : ""); in dccp_feat_print_entry()
414 static void dccp_feat_entry_destructor(struct dccp_feat_entry *entry) in dccp_feat_entry_destructor() argument
416 if (entry != NULL) { in dccp_feat_entry_destructor()
417 dccp_feat_val_destructor(entry->feat_num, &entry->val); in dccp_feat_entry_destructor()
418 kfree(entry); in dccp_feat_entry_destructor()
[all …]
/net/bridge/
Dbr_mdb.c166 struct br_mdb_entry *entry, u32 pid, in nlmsg_populate_mdb_fill() argument
188 if (nla_put(skb, MDBA_MDB_ENTRY_INFO, sizeof(*entry), entry)) in nlmsg_populate_mdb_fill()
208 static void __br_mdb_notify(struct net_device *dev, struct br_mdb_entry *entry, in __br_mdb_notify() argument
219 err = nlmsg_populate_mdb_fill(skb, dev, entry, 0, 0, type, NTF_SELF); in __br_mdb_notify()
234 struct br_mdb_entry entry; in br_mdb_notify() local
236 memset(&entry, 0, sizeof(entry)); in br_mdb_notify()
237 entry.ifindex = port->dev->ifindex; in br_mdb_notify()
238 entry.addr.proto = group->proto; in br_mdb_notify()
239 entry.addr.u.ip4 = group->u.ip4; in br_mdb_notify()
241 entry.addr.u.ip6 = group->u.ip6; in br_mdb_notify()
[all …]
/net/x25/
Dx25_route.c35 struct list_head *entry; in x25_add_route() local
40 list_for_each(entry, &x25_route_list) { in x25_add_route()
41 rt = list_entry(entry, struct x25_route, node); in x25_add_route()
86 struct list_head *entry; in x25_del_route() local
91 list_for_each(entry, &x25_route_list) { in x25_del_route()
92 rt = list_entry(entry, struct x25_route, node); in x25_del_route()
112 struct list_head *entry, *tmp; in x25_route_device_down() local
116 list_for_each_safe(entry, tmp, &x25_route_list) { in x25_route_device_down()
117 rt = list_entry(entry, struct x25_route, node); in x25_route_device_down()
157 struct list_head *entry; in x25_get_route() local
[all …]
Dx25_forward.c27 struct list_head *entry; in x25_forward_call() local
54 list_for_each(entry, &x25_forward_list) { in x25_forward_call()
55 x25_frwd = list_entry(entry, struct x25_forward, node); in x25_forward_call()
100 struct list_head *entry; in x25_forward_data() local
107 list_for_each(entry, &x25_forward_list) { in x25_forward_data()
108 frwd = list_entry(entry, struct x25_forward, node); in x25_forward_data()
140 struct list_head *entry, *tmp; in x25_clear_forward_by_lci() local
144 list_for_each_safe(entry, tmp, &x25_forward_list) { in x25_clear_forward_by_lci()
145 fwd = list_entry(entry, struct x25_forward, node); in x25_clear_forward_by_lci()
158 struct list_head *entry, *tmp; in x25_clear_forward_by_dev() local
[all …]
/net/ipv4/
Dinet_diag.c447 const struct inet_diag_entry *entry) in inet_diag_bc_run() argument
463 yes = entry->sport >= op[1].no; in inet_diag_bc_run()
466 yes = entry->sport <= op[1].no; in inet_diag_bc_run()
469 yes = entry->dport >= op[1].no; in inet_diag_bc_run()
472 yes = entry->dport <= op[1].no; in inet_diag_bc_run()
475 yes = !(entry->userlocks & SOCK_BINDPORT_LOCK); in inet_diag_bc_run()
485 entry->sport : entry->dport)) { in inet_diag_bc_run()
491 addr = entry->saddr; in inet_diag_bc_run()
493 addr = entry->daddr; in inet_diag_bc_run()
496 cond->family != entry->family) { in inet_diag_bc_run()
[all …]
Dcipso_ipv4.c214 static void cipso_v4_cache_entry_free(struct cipso_v4_map_cache_entry *entry) in cipso_v4_cache_entry_free() argument
216 if (entry->lsm_data) in cipso_v4_cache_entry_free()
217 netlbl_secattr_cache_free(entry->lsm_data); in cipso_v4_cache_entry_free()
218 kfree(entry->key); in cipso_v4_cache_entry_free()
219 kfree(entry); in cipso_v4_cache_entry_free()
278 struct cipso_v4_map_cache_entry *entry, *tmp_entry; in cipso_v4_cache_invalidate() local
283 list_for_each_entry_safe(entry, in cipso_v4_cache_invalidate()
286 list_del(&entry->list); in cipso_v4_cache_invalidate()
287 cipso_v4_cache_entry_free(entry); in cipso_v4_cache_invalidate()
321 struct cipso_v4_map_cache_entry *entry; in cipso_v4_cache_check() local
[all …]
/net/appletalk/
Daarp.c490 struct aarp_entry *entry; in aarp_proxy_probe_network() local
505 entry = aarp_alloc(); in aarp_proxy_probe_network()
507 if (!entry) in aarp_proxy_probe_network()
510 entry->expires_at = -1; in aarp_proxy_probe_network()
511 entry->status = ATIF_PROBE; in aarp_proxy_probe_network()
512 entry->target_addr.s_node = sa->s_node; in aarp_proxy_probe_network()
513 entry->target_addr.s_net = sa->s_net; in aarp_proxy_probe_network()
514 entry->dev = atif->dev; in aarp_proxy_probe_network()
519 entry->next = proxies[hash]; in aarp_proxy_probe_network()
520 proxies[hash] = entry; in aarp_proxy_probe_network()
[all …]
/net/bluetooth/
D6lowpan.c212 struct lowpan_dev *entry, *tmp; in lookup_peer() local
218 list_for_each_entry_safe(entry, tmp, &bt_6lowpan_devices, list) { in lookup_peer()
219 peer = peer_lookup_conn(entry, conn); in lookup_peer()
231 struct lowpan_dev *entry, *tmp; in lookup_dev() local
237 list_for_each_entry_safe(entry, tmp, &bt_6lowpan_devices, list) { in lookup_dev()
238 if (conn->hcon->hdev == entry->hdev) { in lookup_dev()
239 dev = entry; in lookup_dev()
552 struct lowpan_dev *entry, *tmp; in send_mcast_pkt() local
558 list_for_each_entry_safe(entry, tmp, &bt_6lowpan_devices, list) { in send_mcast_pkt()
562 if (entry->netdev != netdev) in send_mcast_pkt()
[all …]
/net/dccp/ccids/lib/
Dpacket_history.c64 struct tfrc_tx_hist_entry *entry = kmem_cache_alloc(tfrc_tx_hist_slab, gfp_any()); in tfrc_tx_hist_add() local
66 if (entry == NULL) in tfrc_tx_hist_add()
68 entry->seqno = seqno; in tfrc_tx_hist_add()
69 entry->stamp = ktime_get_real(); in tfrc_tx_hist_add()
70 entry->next = *headp; in tfrc_tx_hist_add()
71 *headp = entry; in tfrc_tx_hist_add()
110 static inline void tfrc_rx_hist_entry_from_skb(struct tfrc_rx_hist_entry *entry, in tfrc_rx_hist_entry_from_skb() argument
116 entry->tfrchrx_seqno = DCCP_SKB_CB(skb)->dccpd_seq; in tfrc_rx_hist_entry_from_skb()
117 entry->tfrchrx_ccval = dh->dccph_ccval; in tfrc_rx_hist_entry_from_skb()
118 entry->tfrchrx_type = dh->dccph_type; in tfrc_rx_hist_entry_from_skb()
[all …]
/net/ieee802154/
D6lowpan_rtnl.c139 struct lowpan_dev_record *entry; in lowpan_give_skb_to_devices() local
144 list_for_each_entry_rcu(entry, &lowpan_devices, list) in lowpan_give_skb_to_devices()
145 if (lowpan_dev_info(entry->ldev)->real_dev == skb->dev) { in lowpan_give_skb_to_devices()
152 skb_cp->dev = entry->ldev; in lowpan_give_skb_to_devices()
574 struct lowpan_dev_record *entry; in lowpan_newlink() local
592 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in lowpan_newlink()
593 if (!entry) { in lowpan_newlink()
599 entry->ldev = dev; in lowpan_newlink()
605 INIT_LIST_HEAD(&entry->list); in lowpan_newlink()
606 list_add_tail(&entry->list, &lowpan_devices); in lowpan_newlink()
[all …]
/net/batman-adv/
Dfragmentation.c35 struct batadv_frag_list_entry *entry; in batadv_frag_clear_chain() local
38 hlist_for_each_entry_safe(entry, node, head, list) { in batadv_frag_clear_chain()
39 hlist_del(&entry->list); in batadv_frag_clear_chain()
40 kfree_skb(entry->skb); in batadv_frag_clear_chain()
41 kfree(entry); in batadv_frag_clear_chain()
235 struct batadv_frag_list_entry *entry; in batadv_frag_merge_packets() local
248 entry = hlist_entry(chain->first, struct batadv_frag_list_entry, list); in batadv_frag_merge_packets()
249 hlist_del(&entry->list); in batadv_frag_merge_packets()
250 skb_out = entry->skb; in batadv_frag_merge_packets()
251 kfree(entry); in batadv_frag_merge_packets()
[all …]
/net/wireless/
Dlib80211.c90 struct lib80211_crypt_data *entry, *next; in lib80211_crypt_deinit_entries() local
94 list_for_each_entry_safe(entry, next, &info->crypt_deinit_list, list) { in lib80211_crypt_deinit_entries()
95 if (atomic_read(&entry->refcnt) != 0 && !force) in lib80211_crypt_deinit_entries()
98 list_del(&entry->list); in lib80211_crypt_deinit_entries()
100 if (entry->ops) { in lib80211_crypt_deinit_entries()
101 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries()
102 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries()
104 kfree(entry); in lib80211_crypt_deinit_entries()

1234