Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 50) sorted by relevance

12

/net/batman-adv/
Doriginator.c75 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
122 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
163 kref_init(&vlan->refcount); in batadv_orig_node_vlan_new()
166 kref_get(&vlan->refcount); in batadv_orig_node_vlan_new()
184 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release()
228 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
246 refcount); in batadv_hardif_neigh_release()
267 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
307 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
335 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
[all …]
Dtypes.h190 struct kref refcount; member
274 struct kref refcount; member
344 struct kref refcount; member
497 struct kref refcount; member
572 struct kref refcount; member
631 struct kref refcount; member
666 struct kref refcount; member
735 struct kref refcount; member
1482 struct kref refcount; member
1510 struct kref refcount; member
[all …]
Doriginator.h96 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put()
110 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
124 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
137 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
151 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
164 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
Dtvlv.c42 tvlv_handler = container_of(ref, struct batadv_tvlv_handler, refcount); in batadv_tvlv_handler_release()
56 kref_put(&tvlv_handler->refcount, batadv_tvlv_handler_release); in batadv_tvlv_handler_put()
82 if (!kref_get_unless_zero(&tvlv_handler_tmp->refcount)) in batadv_tvlv_handler_get()
101 tvlv = container_of(ref, struct batadv_tvlv_container, refcount); in batadv_tvlv_container_release()
115 kref_put(&tvlv->refcount, batadv_tvlv_container_release); in batadv_tvlv_container_put()
144 kref_get(&tvlv_tmp->refcount); in batadv_tvlv_container_get()
250 kref_init(&tvlv_new->refcount); in batadv_tvlv_container_register()
256 kref_get(&tvlv_new->refcount); in batadv_tvlv_container_register()
545 kref_init(&tvlv_handler->refcount); in batadv_tvlv_handler_register()
548 kref_get(&tvlv_handler->refcount); in batadv_tvlv_handler_register()
Dgateway_client.c66 gw_node = container_of(ref, struct batadv_gw_node, refcount); in batadv_gw_node_release()
88 if (!kref_get_unless_zero(&gw_node->refcount)) in batadv_gw_get_selected_gw_node()
117 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()
135 kref_get(&new_gw_node->refcount); in batadv_gw_select()
339 kref_init(&gw_node->refcount); in batadv_gw_node_add()
341 kref_get(&orig_node->refcount); in batadv_gw_node_add()
346 kref_get(&gw_node->refcount); in batadv_gw_node_add()
380 if (!kref_get_unless_zero(&gw_node_tmp->refcount)) in batadv_gw_node_get()
Dhard-interface.c51 hard_iface = container_of(ref, struct batadv_hard_iface, refcount); in batadv_hardif_release()
71 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_by_netdev()
447 kref_get_unless_zero(&hard_iface->refcount)) in batadv_hardif_get_active()
481 kref_get(&new_hard_iface->refcount); in batadv_primary_if_select()
716 kref_get(&hard_iface->refcount); in batadv_hardif_enable_interface()
733 kref_get(&hard_iface->refcount); in batadv_hardif_enable_interface()
883 kref_init(&hard_iface->refcount); in batadv_hardif_add_interface()
895 kref_get(&hard_iface->refcount); in batadv_hardif_add_interface()
Dtp_meter.c276 if (unlikely(!kref_get_unless_zero(&pos->refcount))) in batadv_tp_list_find()
318 if (unlikely(!kref_get_unless_zero(&pos->refcount))) in batadv_tp_list_find_session()
339 tp_vars = container_of(ref, struct batadv_tp_vars, refcount); in batadv_tp_vars_release()
364 kref_put(&tp_vars->refcount, batadv_tp_vars_release); in batadv_tp_vars_put()
907 kref_get(&tp_vars->refcount); in batadv_tp_start_kthread()
983 kref_init(&tp_vars->refcount); in batadv_tp_start()
1013 kref_get(&tp_vars->refcount); in batadv_tp_start()
1029 kref_get(&tp_vars->refcount); in batadv_tp_start()
1355 kref_init(&tp_vars->refcount); in batadv_tp_init_recv()
1360 kref_get(&tp_vars->refcount); in batadv_tp_init_recv()
[all …]
Drouting.c76 kref_get(&neigh_node->refcount); in _batadv_update_route()
484 kref_get(&last_bonding_candidate->refcount); in batadv_last_bonding_get()
505 kref_get(&new_candidate->refcount); in batadv_last_bonding_replace()
565 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router()
572 if (!kref_get_unless_zero(&cand_router->refcount)) { in batadv_find_router()
591 kref_get(&cand_router->refcount); in batadv_find_router()
592 kref_get(&cand->refcount); in batadv_find_router()
627 kref_get(&next_candidate_router->refcount); in batadv_find_router()
633 kref_get(&first_candidate_router->refcount); in batadv_find_router()
Dhard-interface.h95 kref_put(&hard_iface->refcount, batadv_hardif_release); in batadv_hardif_put()
114 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_primary_if_get_selected()
Dnetwork-coding.c209 nc_node = container_of(ref, struct batadv_nc_node, refcount); in batadv_nc_node_release()
225 kref_put(&nc_node->refcount, batadv_nc_node_release); in batadv_nc_node_put()
237 nc_path = container_of(ref, struct batadv_nc_path, refcount); in batadv_nc_path_release()
252 kref_put(&nc_path->refcount, batadv_nc_path_release); in batadv_nc_path_put()
562 if (!kref_get_unless_zero(&nc_path->refcount)) in batadv_nc_hash_find()
817 if (!kref_get_unless_zero(&nc_node->refcount)) in batadv_nc_find_nc_node()
874 kref_init(&nc_node->refcount); in batadv_nc_get_nc_node()
876 kref_get(&orig_neigh_node->refcount); in batadv_nc_get_nc_node()
883 kref_get(&nc_node->refcount); in batadv_nc_get_nc_node()
983 kref_init(&nc_path->refcount); in batadv_nc_get_path()
[all …]
Dbridge_loop_avoidance.c153 refcount); in batadv_backbone_gw_release()
168 kref_put(&backbone_gw->refcount, batadv_backbone_gw_release); in batadv_backbone_gw_put()
181 claim = container_of(ref, struct batadv_bla_claim, refcount); in batadv_claim_release()
206 kref_put(&claim->refcount, batadv_claim_release); in batadv_claim_put()
237 if (!kref_get_unless_zero(&claim->refcount)) in batadv_claim_hash_find()
281 if (!kref_get_unless_zero(&backbone_gw->refcount)) in batadv_backbone_hash_find()
520 kref_init(&entry->refcount); in batadv_bla_get_backbone_gw()
522 kref_get(&entry->refcount); in batadv_bla_get_backbone_gw()
709 kref_get(&backbone_gw->refcount); in batadv_bla_add_claim()
711 kref_init(&claim->refcount); in batadv_bla_add_claim()
[all …]
Dtranslation-table.c150 if (!kref_get_unless_zero(&tt->refcount)) in batadv_tt_hash_find()
235 common.refcount); in batadv_tt_local_entry_release()
253 kref_put(&tt_local_entry->common.refcount, in batadv_tt_local_entry_put()
281 common.refcount); in batadv_tt_global_entry_release()
433 refcount); in batadv_tt_orig_list_entry_release()
450 kref_put(&orig_entry->refcount, batadv_tt_orig_list_entry_release); in batadv_tt_orig_list_entry_put()
734 kref_init(&tt_local->common.refcount); in batadv_tt_local_add()
746 kref_get(&tt_local->common.refcount); in batadv_tt_local_add()
1452 if (!kref_get_unless_zero(&tmp_orig_entry->refcount)) in batadv_tt_global_orig_entry_find()
1551 kref_get(&orig_node->refcount); in batadv_tt_global_orig_entry_add()
[all …]
Dsoft-interface.c512 vlan = container_of(ref, struct batadv_softif_vlan, refcount); in batadv_softif_vlan_release()
539 if (!kref_get_unless_zero(&vlan_tmp->refcount)) in batadv_softif_vlan_get()
578 kref_init(&vlan->refcount); in batadv_softif_create_vlan()
582 kref_get(&vlan->refcount); in batadv_softif_create_vlan()
Dsoft-interface.h39 kref_put(&vlan->refcount, batadv_softif_vlan_release); in batadv_softif_vlan_put()
Ddistributed-arp-table.c117 dat_entry = container_of(ref, struct batadv_dat_entry, refcount); in batadv_dat_entry_release()
132 kref_put(&dat_entry->refcount, batadv_dat_entry_release); in batadv_dat_entry_put()
348 if (!kref_get_unless_zero(&dat_entry->refcount)) in batadv_dat_entry_hash_find()
393 kref_init(&dat_entry->refcount); in batadv_dat_entry_add()
395 kref_get(&dat_entry->refcount); in batadv_dat_entry_add()
594 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_choose_next_candidate()
Dgateway_client.h52 kref_put(&gw_node->refcount, batadv_gw_node_release); in batadv_gw_node_put()
/net/core/
Ddev_addr_lists.c34 ha->refcount = 1; in __hw_addr_create()
88 ha->refcount++; in __hw_addr_add_ex()
138 if (--ha->refcount) in __hw_addr_del_entry()
217 ha->refcount++; in __hw_addr_sync_one()
247 if (ha->sync_cnt == ha->refcount) { in __hw_addr_sync_multiple()
275 } else if (ha->refcount == 1) in __hw_addr_sync()
319 if (!ha->sync_cnt || ha->refcount != 1) in __hw_addr_sync_dev()
340 ha->refcount++; in __hw_addr_sync_dev()
376 if ((ha->sync_cnt << 1) <= ha->refcount) in __hw_addr_ref_sync_dev()
380 ref_cnt = ha->refcount - ha->sync_cnt; in __hw_addr_ref_sync_dev()
[all …]
/net/dsa/
Dswitch.c225 refcount_inc(&a->refcount); in dsa_switch_do_mdb_add()
241 refcount_set(&a->refcount, 1); in dsa_switch_do_mdb_add()
262 if (!refcount_dec_and_test(&a->refcount)) in dsa_switch_do_mdb_del()
267 refcount_set(&a->refcount, 1); in dsa_switch_do_mdb_del()
290 refcount_inc(&a->refcount); in dsa_switch_do_fdb_add()
306 refcount_set(&a->refcount, 1); in dsa_switch_do_fdb_add()
327 if (!refcount_dec_and_test(&a->refcount)) in dsa_switch_do_fdb_del()
332 refcount_set(&a->refcount, 1); in dsa_switch_do_fdb_del()
Dtag_8021q.c156 refcount_inc(&v->refcount); in dsa_switch_do_tag_8021q_vlan_add()
172 refcount_set(&v->refcount, 1); in dsa_switch_do_tag_8021q_vlan_add()
194 if (!refcount_dec_and_test(&v->refcount)) in dsa_switch_do_tag_8021q_vlan_del()
199 refcount_inc(&v->refcount); in dsa_switch_do_tag_8021q_vlan_del()
/net/rds/
Dib.c123 BUG_ON(refcount_read(&rds_ibdev->refcount) == 0); in rds_ib_dev_put()
124 if (refcount_dec_and_test(&rds_ibdev->refcount)) in rds_ib_dev_put()
147 refcount_set(&rds_ibdev->refcount, 1); in rds_ib_add_one()
218 refcount_inc(&rds_ibdev->refcount); in rds_ib_add_one()
253 refcount_inc(&rds_ibdev->refcount); in rds_ib_get_client_data()
/net/ipv6/
Dcalipso.c219 refcount_inc(&entry->lsm_data->refcount); in calipso_cache_check()
288 refcount_inc(&secattr->cache->refcount); in calipso_cache_add()
330 if (iter->doi == doi && refcount_read(&iter->refcount)) in calipso_doi_search()
362 refcount_set(&doi_def->refcount, 1); in calipso_doi_add()
486 if (!refcount_inc_not_zero(&doi_def->refcount)) in calipso_doi_getdef()
507 if (!refcount_dec_and_test(&doi_def->refcount)) in calipso_doi_putdef()
538 if (refcount_read(&iter_doi->refcount) > 0) { in calipso_doi_walk()
/net/psample/
Dpsample.c56 ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_REFCOUNT, group->refcount); in psample_group_nl_fill()
187 group->refcount++; in psample_group_get()
198 group->refcount++; in psample_group_take()
207 if (--group->refcount == 0) in psample_group_put()
/net/8021q/
Dvlan_core.c166 int refcount; member
340 vid_info->refcount++; in vlan_vid_add()
385 vid_info->refcount--; in vlan_vid_del()
386 if (vid_info->refcount == 0) { in vlan_vid_del()
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c40 refcount_t refcount; /* reference count */ member
96 refcount_inc(&c->refcount); in clusterip_config_get()
116 if (refcount_dec_and_test(&c->refcount)) in clusterip_config_put()
174 if (unlikely(!refcount_inc_not_zero(&c->refcount))) in clusterip_config_find_get()
274 refcount_set(&c->refcount, 1); in clusterip_config_init()
/net/ipv4/
Dcipso_ipv4.c253 refcount_inc(&entry->lsm_data->refcount); in cipso_v4_cache_check()
321 refcount_inc(&secattr->cache->refcount); in cipso_v4_cache_add()
364 if (iter->doi == doi && refcount_read(&iter->refcount)) in cipso_v4_doi_search()
418 refcount_set(&doi_def->refcount, 1); in cipso_v4_doi_add()
560 if (!refcount_inc_not_zero(&doi_def->refcount)) in cipso_v4_doi_getdef()
581 if (!refcount_dec_and_test(&doi_def->refcount)) in cipso_v4_doi_putdef()
611 if (refcount_read(&iter_doi->refcount) > 0) { in cipso_v4_doi_walk()

12