Home
last modified time | relevance | path

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

1234

/net/atm/
Dmpoa_caches.c38 in_cache_entry *entry; in in_cache_get() local
41 entry = client->in_cache; in in_cache_get()
42 while (entry != NULL) { in in_cache_get()
43 if (entry->ctrl_info.in_dst_ip == dst_ip) { in in_cache_get()
44 refcount_inc(&entry->use); in in_cache_get()
46 return entry; in in_cache_get()
48 entry = entry->next; in in_cache_get()
59 in_cache_entry *entry; in in_cache_get_with_mask() local
62 entry = client->in_cache; in in_cache_get_with_mask()
63 while (entry != NULL) { in in_cache_get_with_mask()
[all …]
Dlec.c106 static inline void lec_arp_hold(struct lec_arp_table *entry) in lec_arp_hold() argument
108 refcount_inc(&entry->usage); in lec_arp_hold()
111 static inline void lec_arp_put(struct lec_arp_table *entry) in lec_arp_put() argument
113 if (refcount_dec_and_test(&entry->usage)) in lec_arp_put()
114 kfree(entry); in lec_arp_put()
211 struct lec_arp_table *entry; in lec_start_xmit() local
282 entry = NULL; in lec_start_xmit()
283 vcc = lec_arp_resolve(priv, dst, is_rdesc, &entry); in lec_start_xmit()
285 dev->name, vcc, vcc ? vcc->flags : 0, entry); in lec_start_xmit()
287 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) { in lec_start_xmit()
[all …]
Dmpc.c87 static void purge_egress_shortcut(struct atm_vcc *vcc, eg_cache_entry *entry);
179 struct atm_mpoa_qos *entry; in atm_mpoa_add_qos() local
181 entry = atm_mpoa_search_qos(dst_ip); in atm_mpoa_add_qos()
182 if (entry != NULL) { in atm_mpoa_add_qos()
183 entry->qos = *qos; in atm_mpoa_add_qos()
184 return entry; in atm_mpoa_add_qos()
187 entry = kmalloc(sizeof(struct atm_mpoa_qos), GFP_KERNEL); in atm_mpoa_add_qos()
188 if (entry == NULL) { in atm_mpoa_add_qos()
190 return entry; in atm_mpoa_add_qos()
193 entry->ipaddr = dst_ip; in atm_mpoa_add_qos()
[all …]
Dclip.c76 static void link_vcc(struct clip_vcc *clip_vcc, struct atmarp_entry *entry) in link_vcc() argument
78 pr_debug("%p to entry %p (neigh %p)\n", clip_vcc, entry, entry->neigh); in link_vcc()
79 clip_vcc->entry = entry; in link_vcc()
81 clip_vcc->next = entry->vccs; in link_vcc()
82 entry->vccs = clip_vcc; in link_vcc()
83 entry->neigh->used = jiffies; in link_vcc()
88 struct atmarp_entry *entry = clip_vcc->entry; in unlink_clip_vcc() local
91 if (!entry) { in unlink_clip_vcc()
95 netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */ in unlink_clip_vcc()
96 entry->neigh->used = jiffies; in unlink_clip_vcc()
[all …]
/net/netlabel/
Dnetlabel_domainhash.c64 static void netlbl_domhsh_free_entry(struct rcu_head *entry) in netlbl_domhsh_free_entry() argument
74 ptr = container_of(entry, struct netlbl_dom_map, rcu); in netlbl_domhsh_free_entry()
173 struct netlbl_dom_map *entry; in netlbl_domhsh_search_def() local
175 entry = netlbl_domhsh_search(domain, family); in netlbl_domhsh_search_def()
176 if (entry != NULL) in netlbl_domhsh_search_def()
177 return entry; in netlbl_domhsh_search_def()
179 entry = netlbl_domhsh_rcu_deref(netlbl_domhsh_def_ipv4); in netlbl_domhsh_search_def()
180 if (entry != NULL && entry->valid) in netlbl_domhsh_search_def()
181 return entry; in netlbl_domhsh_search_def()
184 entry = netlbl_domhsh_rcu_deref(netlbl_domhsh_def_ipv6); in netlbl_domhsh_search_def()
[all …]
Dnetlabel_addrlist.c148 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()
[all …]
Dnetlabel_kapi.c102 struct netlbl_dom_map *entry; in netlbl_cfg_unlbl_map_add() local
107 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
108 if (entry == NULL) in netlbl_cfg_unlbl_map_add()
111 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
112 if (entry->domain == NULL) in netlbl_cfg_unlbl_map_add()
115 entry->family = family; in netlbl_cfg_unlbl_map_add()
118 entry->def.type = NETLBL_NLTYPE_UNLABELED; in netlbl_cfg_unlbl_map_add()
169 entry->def.addrsel = addrmap; in netlbl_cfg_unlbl_map_add()
170 entry->def.type = NETLBL_NLTYPE_ADDRSELECT; in netlbl_cfg_unlbl_map_add()
176 ret_val = netlbl_domhsh_add(entry, audit_info); in netlbl_cfg_unlbl_map_add()
[all …]
Dnetlabel_mgmt.c86 struct netlbl_dom_map *entry = kzalloc(sizeof(*entry), GFP_KERNEL); in netlbl_mgmt_add_common() local
88 if (!entry) in netlbl_mgmt_add_common()
90 entry->def.type = nla_get_u32(info->attrs[NLBL_MGMT_A_PROTOCOL]); in netlbl_mgmt_add_common()
93 entry->domain = kmalloc(tmp_size, GFP_KERNEL); in netlbl_mgmt_add_common()
94 if (entry->domain == NULL) { in netlbl_mgmt_add_common()
98 nla_strlcpy(entry->domain, in netlbl_mgmt_add_common()
107 switch (entry->def.type) { in netlbl_mgmt_add_common()
110 entry->family = in netlbl_mgmt_add_common()
113 entry->family = AF_UNSPEC; in netlbl_mgmt_add_common()
123 entry->family = AF_INET; in netlbl_mgmt_add_common()
[all …]
Dnetlabel_unlabeled.c147 static void netlbl_unlhsh_free_iface(struct rcu_head *entry) in netlbl_unlhsh_free_iface() argument
157 iface = container_of(entry, struct netlbl_unlhsh_iface, rcu); in netlbl_unlhsh_free_iface()
236 struct netlbl_unlhsh_addr4 *entry; in netlbl_unlhsh_add_addr4() local
238 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_unlhsh_add_addr4()
239 if (entry == NULL) in netlbl_unlhsh_add_addr4()
242 entry->list.addr = addr->s_addr & mask->s_addr; in netlbl_unlhsh_add_addr4()
243 entry->list.mask = mask->s_addr; in netlbl_unlhsh_add_addr4()
244 entry->list.valid = 1; in netlbl_unlhsh_add_addr4()
245 entry->secid = secid; in netlbl_unlhsh_add_addr4()
248 ret_val = netlbl_af4list_add(&entry->list, &iface->addr4_list); in netlbl_unlhsh_add_addr4()
[all …]
/net/netfilter/
Dnf_queue.c67 void nf_queue_entry_release_refs(struct nf_queue_entry *entry) in nf_queue_entry_release_refs() argument
69 struct nf_hook_state *state = &entry->state; in nf_queue_entry_release_refs()
79 nf_queue_entry_release_br_nf_refs(entry->skb); in nf_queue_entry_release_refs()
102 void nf_queue_entry_get_refs(struct nf_queue_entry *entry) in nf_queue_entry_get_refs() argument
104 struct nf_hook_state *state = &entry->state; in nf_queue_entry_get_refs()
113 nf_queue_entry_get_br_nf_refs(entry->skb); in nf_queue_entry_get_refs()
130 struct nf_queue_entry *entry) in nf_ip_saveroute() argument
132 struct ip_rt_info *rt_info = nf_queue_entry_reroute(entry); in nf_ip_saveroute()
134 if (entry->state.hook == NF_INET_LOCAL_OUT) { in nf_ip_saveroute()
145 struct nf_queue_entry *entry) in nf_ip6_saveroute() argument
[all …]
Dnfnetlink_queue.c191 __enqueue_entry(struct nfqnl_instance *queue, struct nf_queue_entry *entry) in __enqueue_entry() argument
193 list_add_tail(&entry->list, &queue->queue_list); in __enqueue_entry()
198 __dequeue_entry(struct nfqnl_instance *queue, struct nf_queue_entry *entry) in __dequeue_entry() argument
200 list_del(&entry->list); in __dequeue_entry()
207 struct nf_queue_entry *entry = NULL, *i; in find_dequeue_entry() local
213 entry = i; in find_dequeue_entry()
218 if (entry) in find_dequeue_entry()
219 __dequeue_entry(queue, entry); in find_dequeue_entry()
223 return entry; in find_dequeue_entry()
226 static void nfqnl_reinject(struct nf_queue_entry *entry, unsigned int verdict) in nfqnl_reinject() argument
[all …]
/net/bridge/
Dbr_mdb.c67 static void __mdb_entry_to_br_ip(struct br_mdb_entry *entry, struct br_ip *ip) in __mdb_entry_to_br_ip() argument
70 ip->vid = entry->vid; in __mdb_entry_to_br_ip()
71 ip->proto = entry->addr.proto; in __mdb_entry_to_br_ip()
73 ip->u.ip4 = entry->addr.u.ip4; in __mdb_entry_to_br_ip()
76 ip->u.ip6 = entry->addr.u.ip6; in __mdb_entry_to_br_ip()
266 struct br_mdb_entry *entry, u32 pid, in nlmsg_populate_mdb_fill() argument
288 if (nla_put(skb, MDBA_MDB_ENTRY_INFO, sizeof(*entry), entry)) in nlmsg_populate_mdb_fill()
344 struct br_mdb_entry *entry, int type) in br_mdb_switchdev_host_port() argument
351 .vid = entry->vid, in br_mdb_switchdev_host_port()
354 if (entry->addr.proto == htons(ETH_P_IP)) in br_mdb_switchdev_host_port()
[all …]
/net/dccp/
Dfeat.c277 static void dccp_feat_print_entry(struct dccp_feat_entry const *entry) in dccp_feat_print_entry() argument
279 dccp_debug(" * %s %s = ", entry->is_local ? "local" : "remote", in dccp_feat_print_entry()
280 dccp_feat_fname(entry->feat_num)); in dccp_feat_print_entry()
281 dccp_feat_printval(entry->feat_num, &entry->val); in dccp_feat_print_entry()
282 dccp_pr_debug_cat(", state=%s %s\n", dccp_feat_sname[entry->state], in dccp_feat_print_entry()
283 entry->needs_confirm ? "(Confirm pending)" : ""); in dccp_feat_print_entry()
409 static void dccp_feat_entry_destructor(struct dccp_feat_entry *entry) in dccp_feat_entry_destructor() argument
411 if (entry != NULL) { in dccp_feat_entry_destructor()
412 dccp_feat_val_destructor(entry->feat_num, &entry->val); in dccp_feat_entry_destructor()
413 kfree(entry); in dccp_feat_entry_destructor()
[all …]
/net/sched/
Dsch_taprio.c113 struct sched_entry *entry, *n; in taprio_free_sched_cb() local
118 list_for_each_entry_safe(entry, n, &sched->entries, list) { in taprio_free_sched_cb()
119 list_del(&entry->list); in taprio_free_sched_cb()
120 kfree(entry); in taprio_free_sched_cb()
154 struct sched_entry *entry, in get_interval_end_time() argument
161 intv_end = ktime_add_ns(intv_start, entry->interval); in get_interval_end_time()
194 struct sched_entry *entry = NULL, *entry_found = NULL; in find_entry_to_transmit() local
215 list_for_each_entry(entry, &sched->entries, list) { in find_entry_to_transmit()
217 curr_intv_end = get_interval_end_time(sched, admin, entry, in find_entry_to_transmit()
223 if (!(entry->gate_mask & BIT(tc)) || in find_entry_to_transmit()
[all …]
Dcls_api.c3387 struct flow_action_entry *entry; in tc_cleanup_flow_action() local
3390 flow_action_for_each(i, entry, flow_action) in tc_cleanup_flow_action()
3391 if (entry->destructor) in tc_cleanup_flow_action()
3392 entry->destructor(entry->destructor_priv); in tc_cleanup_flow_action()
3396 static void tcf_mirred_get_dev(struct flow_action_entry *entry, in tcf_mirred_get_dev() argument
3400 entry->dev = act->ops->get_dev(act, &entry->destructor); in tcf_mirred_get_dev()
3401 if (!entry->dev) in tcf_mirred_get_dev()
3403 entry->destructor_priv = entry->dev; in tcf_mirred_get_dev()
3414 static int tcf_tunnel_encap_get_tunnel(struct flow_action_entry *entry, in tcf_tunnel_encap_get_tunnel() argument
3417 entry->tunnel = tcf_tunnel_info_copy(act); in tcf_tunnel_encap_get_tunnel()
[all …]
/net/x25/
Dx25_route.c30 struct list_head *entry; in x25_add_route() local
35 list_for_each(entry, &x25_route_list) { in x25_add_route()
36 rt = list_entry(entry, struct x25_route, node); in x25_add_route()
81 struct list_head *entry; in x25_del_route() local
86 list_for_each(entry, &x25_route_list) { in x25_del_route()
87 rt = list_entry(entry, struct x25_route, node); in x25_del_route()
107 struct list_head *entry, *tmp; in x25_route_device_down() local
111 list_for_each_safe(entry, tmp, &x25_route_list) { in x25_route_device_down()
112 rt = list_entry(entry, struct x25_route, node); in x25_route_device_down()
152 struct list_head *entry; in x25_get_route() local
[all …]
Dx25_forward.c22 struct list_head *entry; in x25_forward_call() local
49 list_for_each(entry, &x25_forward_list) { in x25_forward_call()
50 x25_frwd = list_entry(entry, struct x25_forward, node); in x25_forward_call()
95 struct list_head *entry; in x25_forward_data() local
102 list_for_each(entry, &x25_forward_list) { in x25_forward_data()
103 frwd = list_entry(entry, struct x25_forward, node); in x25_forward_data()
135 struct list_head *entry, *tmp; in x25_clear_forward_by_lci() local
139 list_for_each_safe(entry, tmp, &x25_forward_list) { in x25_clear_forward_by_lci()
140 fwd = list_entry(entry, struct x25_forward, node); in x25_clear_forward_by_lci()
153 struct list_head *entry, *tmp; in x25_clear_forward_by_dev() local
[all …]
/net/ipv6/
Dcalipso.c98 static void calipso_cache_entry_free(struct calipso_map_cache_entry *entry) in calipso_cache_entry_free() argument
100 if (entry->lsm_data) in calipso_cache_entry_free()
101 netlbl_secattr_cache_free(entry->lsm_data); in calipso_cache_entry_free()
102 kfree(entry->key); in calipso_cache_entry_free()
103 kfree(entry); in calipso_cache_entry_free()
158 struct calipso_map_cache_entry *entry, *tmp_entry; in calipso_cache_invalidate() local
163 list_for_each_entry_safe(entry, in calipso_cache_invalidate()
166 list_del(&entry->list); in calipso_cache_invalidate()
167 calipso_cache_entry_free(entry); in calipso_cache_invalidate()
201 struct calipso_map_cache_entry *entry; in calipso_cache_check() local
[all …]
/net/appletalk/
Daarp.c484 struct aarp_entry *entry; in aarp_proxy_probe_network() local
499 entry = aarp_alloc(); in aarp_proxy_probe_network()
501 if (!entry) in aarp_proxy_probe_network()
504 entry->expires_at = -1; in aarp_proxy_probe_network()
505 entry->status = ATIF_PROBE; in aarp_proxy_probe_network()
506 entry->target_addr.s_node = sa->s_node; in aarp_proxy_probe_network()
507 entry->target_addr.s_net = sa->s_net; in aarp_proxy_probe_network()
508 entry->dev = atif->dev; in aarp_proxy_probe_network()
513 entry->next = proxies[hash]; in aarp_proxy_probe_network()
514 proxies[hash] = entry; in aarp_proxy_probe_network()
[all …]
/net/bluetooth/
D6lowpan.c228 struct lowpan_btle_dev *entry; in lookup_peer() local
233 list_for_each_entry_rcu(entry, &bt_6lowpan_devices, list) { in lookup_peer()
234 peer = __peer_lookup_conn(entry, conn); in lookup_peer()
246 struct lowpan_btle_dev *entry; in lookup_dev() local
251 list_for_each_entry_rcu(entry, &bt_6lowpan_devices, list) { in lookup_dev()
252 if (conn->hcon->hdev == entry->hdev) { in lookup_dev()
253 dev = entry; in lookup_dev()
490 struct lowpan_btle_dev *entry; in send_mcast_pkt() local
495 list_for_each_entry_rcu(entry, &bt_6lowpan_devices, list) { in send_mcast_pkt()
499 if (entry->netdev != netdev) in send_mcast_pkt()
[all …]
/net/dccp/ccids/lib/
Dpacket_history.c51 struct tfrc_tx_hist_entry *entry = kmem_cache_alloc(tfrc_tx_hist_slab, gfp_any()); in tfrc_tx_hist_add() local
53 if (entry == NULL) in tfrc_tx_hist_add()
55 entry->seqno = seqno; in tfrc_tx_hist_add()
56 entry->stamp = ktime_get_real(); in tfrc_tx_hist_add()
57 entry->next = *headp; in tfrc_tx_hist_add()
58 *headp = entry; in tfrc_tx_hist_add()
97 static inline void tfrc_rx_hist_entry_from_skb(struct tfrc_rx_hist_entry *entry, in tfrc_rx_hist_entry_from_skb() argument
103 entry->tfrchrx_seqno = DCCP_SKB_CB(skb)->dccpd_seq; in tfrc_rx_hist_entry_from_skb()
104 entry->tfrchrx_ccval = dh->dccph_ccval; in tfrc_rx_hist_entry_from_skb()
105 entry->tfrchrx_type = dh->dccph_type; in tfrc_rx_hist_entry_from_skb()
[all …]
/net/ipv4/
Dcipso_ipv4.c132 static void cipso_v4_cache_entry_free(struct cipso_v4_map_cache_entry *entry) in cipso_v4_cache_entry_free() argument
134 if (entry->lsm_data) in cipso_v4_cache_entry_free()
135 netlbl_secattr_cache_free(entry->lsm_data); in cipso_v4_cache_entry_free()
136 kfree(entry->key); in cipso_v4_cache_entry_free()
137 kfree(entry); in cipso_v4_cache_entry_free()
196 struct cipso_v4_map_cache_entry *entry, *tmp_entry; in cipso_v4_cache_invalidate() local
201 list_for_each_entry_safe(entry, in cipso_v4_cache_invalidate()
204 list_del(&entry->list); in cipso_v4_cache_invalidate()
205 cipso_v4_cache_entry_free(entry); in cipso_v4_cache_invalidate()
239 struct cipso_v4_map_cache_entry *entry; in cipso_v4_cache_check() local
[all …]
Dinet_diag.c555 const struct inet_diag_entry *entry) in inet_diag_bc_run() argument
571 yes = entry->sport == op[1].no; in inet_diag_bc_run()
574 yes = entry->sport >= op[1].no; in inet_diag_bc_run()
577 yes = entry->sport <= op[1].no; in inet_diag_bc_run()
580 yes = entry->dport == op[1].no; in inet_diag_bc_run()
583 yes = entry->dport >= op[1].no; in inet_diag_bc_run()
586 yes = entry->dport <= op[1].no; in inet_diag_bc_run()
589 yes = !(entry->userlocks & SOCK_BINDPORT_LOCK); in inet_diag_bc_run()
599 entry->sport : entry->dport)) { in inet_diag_bc_run()
605 addr = entry->saddr; in inet_diag_bc_run()
[all …]
/net/batman-adv/
Dfragmentation.c41 struct batadv_frag_list_entry *entry; in batadv_frag_clear_chain() local
44 hlist_for_each_entry_safe(entry, node, head, list) { in batadv_frag_clear_chain()
45 hlist_del(&entry->list); in batadv_frag_clear_chain()
48 kfree_skb(entry->skb); in batadv_frag_clear_chain()
50 consume_skb(entry->skb); in batadv_frag_clear_chain()
52 kfree(entry); in batadv_frag_clear_chain()
252 struct batadv_frag_list_entry *entry; in batadv_frag_merge_packets() local
260 entry = hlist_entry(chain->first, struct batadv_frag_list_entry, list); in batadv_frag_merge_packets()
261 hlist_del(&entry->list); in batadv_frag_merge_packets()
262 skb_out = entry->skb; in batadv_frag_merge_packets()
[all …]
/net/wireless/
Dlib80211.c91 struct lib80211_crypt_data *entry, *next; in lib80211_crypt_deinit_entries() local
95 list_for_each_entry_safe(entry, next, &info->crypt_deinit_list, list) { in lib80211_crypt_deinit_entries()
96 if (atomic_read(&entry->refcnt) != 0 && !force) in lib80211_crypt_deinit_entries()
99 list_del(&entry->list); in lib80211_crypt_deinit_entries()
101 if (entry->ops) { in lib80211_crypt_deinit_entries()
102 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries()
103 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries()
105 kfree(entry); in lib80211_crypt_deinit_entries()

1234