/linux-4.4.14/tools/perf/tests/ |
D | thread-mg-share.c | 46 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&mg->refcnt), 4); in test__thread_mg_share() 74 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&other_mg->refcnt), 2); in test__thread_mg_share() 80 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&mg->refcnt), 3); in test__thread_mg_share() 83 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&mg->refcnt), 2); in test__thread_mg_share() 86 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&mg->refcnt), 1); in test__thread_mg_share() 92 TEST_ASSERT_EQUAL("wrong refcnt", atomic_read(&other_mg->refcnt), 1); in test__thread_mg_share()
|
D | thread-map.c | 24 atomic_read(&map->refcnt) == 1); in test__thread_map() 39 atomic_read(&map->refcnt) == 1); in test__thread_map()
|
/linux-4.4.14/fs/btrfs/ |
D | reada.c | 71 int refcnt; member 89 struct kref refcnt; member 129 re->refcnt++; in __readahead_hook() 216 kref_get(&rc->refcnt); in __readahead_hook() 218 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 221 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 264 kref_get(&zone->refcnt); in reada_find_zone() 271 kref_put(&zone->refcnt, reada_zone_release); in reada_find_zone() 292 kref_init(&zone->refcnt); in reada_find_zone() 311 kref_get(&zone->refcnt); in reada_find_zone() [all …]
|
/linux-4.4.14/drivers/connector/ |
D | cn_queue.c | 48 atomic_set(&cbq->refcnt, 1); in cn_queue_alloc_callback_entry() 50 atomic_inc(&dev->refcnt); in cn_queue_alloc_callback_entry() 61 if (!atomic_dec_and_test(&cbq->refcnt)) in cn_queue_release_callback() 64 atomic_dec(&cbq->pdev->refcnt); in cn_queue_release_callback() 135 atomic_set(&dev->refcnt, 0); in cn_queue_alloc_dev() 153 while (atomic_read(&dev->refcnt)) { in cn_queue_free_dev() 155 dev->name, atomic_read(&dev->refcnt)); in cn_queue_free_dev()
|
/linux-4.4.14/include/linux/ |
D | backing-dev-defs.h | 53 atomic_t refcnt; /* nr of attached wb's and blkg */ member 122 struct percpu_ref refcnt; /* used only for !root wb's */ member 202 return percpu_ref_tryget(&wb->refcnt); in wb_tryget() 213 percpu_ref_get(&wb->refcnt); in wb_get() 223 percpu_ref_put(&wb->refcnt); in wb_put() 234 return percpu_ref_is_dying(&wb->refcnt); in wb_dying()
|
D | cgroup.h | 291 percpu_ref_get(&css->refcnt); in css_get() 304 percpu_ref_get_many(&css->refcnt, n); in css_get_many() 321 return percpu_ref_tryget(&css->refcnt); in css_tryget() 338 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online() 351 percpu_ref_put(&css->refcnt); in css_put() 364 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
|
D | inetdevice.h | 25 atomic_t refcnt; member 215 atomic_inc(&in_dev->refcnt); in in_dev_get() 236 if (atomic_dec_and_test(&idev->refcnt)) in in_dev_put() 240 #define __in_dev_put(idev) atomic_dec(&(idev)->refcnt) 241 #define in_dev_hold(idev) atomic_inc(&(idev)->refcnt)
|
D | connector.h | 36 atomic_t refcnt; member 52 atomic_t refcnt; member
|
D | atmdev.h | 161 atomic_t refcnt; /* reference count */ member 264 atomic_inc(&dev->refcnt); in atm_dev_hold() 270 if (atomic_dec_and_test(&dev->refcnt)) { in atm_dev_put()
|
D | blk-cgroup.h | 125 atomic_t refcnt; member 366 WARN_ON_ONCE(atomic_read(&blkg->refcnt) <= 0); in blkg_get() 367 atomic_inc(&blkg->refcnt); in blkg_get() 378 WARN_ON_ONCE(atomic_read(&blkg->refcnt) <= 0); in blkg_put() 379 if (atomic_dec_and_test(&blkg->refcnt)) in blkg_put()
|
D | bpf.h | 34 atomic_t refcnt; member 129 atomic_t refcnt; member
|
D | mempolicy.h | 44 atomic_t refcnt; member 98 atomic_inc(&pol->refcnt); in mpol_get()
|
D | fsnotify_backend.h | 133 atomic_t refcnt; /* things with interest in this group */ member 216 atomic_t refcnt; member
|
D | netpoll.h | 37 atomic_t refcnt; member
|
D | padata.h | 131 atomic_t refcnt; member
|
D | lru_cache.h | 162 unsigned refcnt; member
|
D | pktcdvd.h | 170 int refcnt; /* Open count */ member
|
D | backing-dev.h | 424 atomic_inc(&bdi->wb_congested->refcnt); in wb_congested_get_create() 430 if (atomic_dec_and_test(&congested->refcnt)) in wb_congested_put()
|
D | igmp.h | 92 atomic_t refcnt; member
|
D | coresight.h | 170 atomic_t *refcnt; member
|
/linux-4.4.14/drivers/w1/ |
D | w1_family.c | 55 atomic_set(&newf->refcnt, 0); in w1_register_family() 89 while (atomic_read(&fent->refcnt)) { in w1_unregister_family() 91 fent->fid, atomic_read(&fent->refcnt)); in w1_unregister_family() 121 atomic_dec(&f->refcnt); in __w1_family_put() 143 atomic_inc(&f->refcnt); in __w1_family_get()
|
D | w1_int.c | 74 atomic_set(&dev->refcnt, 2); in w1_alloc_dev() 212 atomic_dec(&dev->refcnt); in __w1_remove_master_device() 214 while (atomic_read(&dev->refcnt)) { in __w1_remove_master_device() 216 dev->name, atomic_read(&dev->refcnt)); in __w1_remove_master_device()
|
D | w1.c | 739 atomic_set(&sl->refcnt, 1); in w1_attach_slave_device() 740 atomic_inc(&sl->master->refcnt); in w1_attach_slave_device() 783 int refcnt; in w1_unref_slave() local 785 refcnt = atomic_sub_return(1, &sl->refcnt); in w1_unref_slave() 786 if (refcnt == 0) { in w1_unref_slave() 806 atomic_dec(&dev->refcnt); in w1_unref_slave() 808 return refcnt; in w1_unref_slave() 834 atomic_inc(&dev->refcnt); in w1_search_master_id() 857 atomic_inc(&dev->refcnt); in w1_search_slave() 858 atomic_inc(&sl->refcnt); in w1_search_slave() [all …]
|
D | w1_netlink.c | 39 atomic_t refcnt; member 83 if (atomic_sub_return(1, &block->refcnt) == 0) { in w1_unref_block() 506 atomic_dec(&dev->refcnt); in w1_process_cb() 549 atomic_dec(&dev->refcnt); in w1_list_count_cmds() 631 atomic_set(&block->refcnt, 1); in w1_cn_callback() 697 atomic_inc(&block->refcnt); in w1_cn_callback()
|
D | w1.h | 92 atomic_t refcnt; member 239 atomic_t refcnt; member
|
D | w1_family.h | 80 atomic_t refcnt; member
|
/linux-4.4.14/include/net/ |
D | ipx.h | 57 atomic_t refcnt; member 83 atomic_t refcnt; member 142 atomic_inc(&intrfc->refcnt); in ipxitf_hold() 160 if (atomic_dec_and_test(&intrfc->refcnt)) in ipxitf_put() 166 atomic_inc(&rt->refcnt); in ipxrtr_hold() 171 if (atomic_dec_and_test(&rt->refcnt)) in ipxrtr_put()
|
D | x25.h | 132 atomic_t refcnt; member 144 atomic_t refcnt; member 174 atomic_t refcnt; member 245 atomic_inc(&nb->refcnt); in x25_neigh_hold() 250 if (atomic_dec_and_test(&nb->refcnt)) in x25_neigh_put() 268 atomic_inc(&rt->refcnt); in x25_route_hold() 273 if (atomic_dec_and_test(&rt->refcnt)) in x25_route_put()
|
D | addrconf.h | 282 atomic_inc(&idev->refcnt); in in6_dev_get() 298 if (atomic_dec_and_test(&idev->refcnt)) in in6_dev_put() 304 atomic_dec(&idev->refcnt); in __in6_dev_put() 309 atomic_inc(&idev->refcnt); in in6_dev_hold() 316 if (atomic_dec_and_test(&ifp->refcnt)) in in6_ifa_put() 322 atomic_dec(&ifp->refcnt); in __in6_ifa_put() 327 atomic_inc(&ifp->refcnt); in in6_ifa_hold()
|
D | llc.h | 58 atomic_t refcnt; member 116 atomic_inc(&sap->refcnt); in llc_sap_hold() 123 if (atomic_dec_and_test(&sap->refcnt)) in llc_sap_put()
|
D | fib_rules.h | 26 atomic_t refcnt; member 96 atomic_inc(&rule->refcnt); in fib_rule_get() 101 if (atomic_dec_and_test(&rule->refcnt)) in fib_rule_put()
|
D | lwtunnel.h | 20 atomic_t refcnt; member 49 atomic_inc(&lws->refcnt); in lwtstate_get() 59 if (atomic_dec_and_test(&lws->refcnt)) in lwtstate_put()
|
D | neighbour.h | 79 atomic_t refcnt; member 140 atomic_t refcnt; member 396 atomic_dec(&parms->refcnt); in __neigh_parms_put() 401 atomic_inc(&parms->refcnt); in neigh_parms_clone() 411 if (atomic_dec_and_test(&neigh->refcnt)) in neigh_release() 418 atomic_inc(&neigh->refcnt); in neigh_clone() 422 #define neigh_hold(n) atomic_inc(&(n)->refcnt)
|
D | inet_frag.h | 52 atomic_t refcnt; member 132 if (atomic_dec_and_test(&q->refcnt)) in inet_frag_put()
|
D | ip_vs.h | 528 atomic_t refcnt; /* reference count */ member 621 atomic_t refcnt; /* reference counter */ member 670 atomic_t refcnt; /* reference counter */ member 700 atomic_t refcnt; /* reference counter */ member 724 atomic_t refcnt; /* reference counter */ member 1201 return atomic_inc_not_zero(&cp->refcnt); in __ip_vs_conn_get() 1208 atomic_dec(&cp->refcnt); in __ip_vs_conn_put() 1396 atomic_inc(&dest->refcnt); in ip_vs_dest_hold() 1402 atomic_dec(&dest->refcnt); in ip_vs_dest_put() 1407 if (atomic_dec_return(&dest->refcnt) < 0) in ip_vs_dest_put_and_free()
|
D | if_inet6.h | 48 atomic_t refcnt; member 189 atomic_t refcnt; member
|
D | arp.h | 31 if (n && !atomic_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
|
D | lib80211.h | 96 atomic_t refcnt; member
|
D | xfrm.h | 137 atomic_t refcnt; member 531 atomic_t refcnt; member 786 atomic_inc(&policy->refcnt); in xfrm_pol_hold() 793 if (atomic_dec_and_test(&policy->refcnt)) in xfrm_pol_put() 808 atomic_dec(&x->refcnt); in __xfrm_state_put() 813 if (atomic_dec_and_test(&x->refcnt)) in xfrm_state_put() 819 atomic_inc(&x->refcnt); in xfrm_state_hold() 982 atomic_t refcnt; member 1000 atomic_inc(&sp->refcnt); in secpath_get() 1009 if (sp && atomic_dec_and_test(&sp->refcnt)) in secpath_put()
|
D | af_unix.h | 24 atomic_t refcnt; member
|
D | lapb.h | 104 atomic_t refcnt; member
|
D | inetpeer.h | 63 atomic_t refcnt; member
|
D | sch_generic.h | 23 int refcnt; member 43 int refcnt; member 100 atomic_t refcnt; member
|
D | vxlan.h | 114 atomic_t refcnt; member
|
D | ndisc.h | 168 if (n && !atomic_inc_not_zero(&n->refcnt)) in __ipv6_neigh_lookup()
|
/linux-4.4.14/drivers/infiniband/hw/mlx5/ |
D | doorbell.c | 43 int refcnt; member 65 page->refcnt = 0; in mlx5_ib_db_map_user() 79 ++page->refcnt; in mlx5_ib_db_map_user() 91 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | doorbell.c | 41 int refcnt; member 63 page->refcnt = 0; in mlx4_ib_db_map_user() 77 ++page->refcnt; in mlx4_ib_db_map_user() 89 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
|
/linux-4.4.14/include/trace/events/ |
D | module.h | 77 __field( int, refcnt ) 83 __entry->refcnt = atomic_read(&mod->refcnt); 88 __get_str(name), (void *)__entry->ip, __entry->refcnt)
|
/linux-4.4.14/tools/perf/util/ |
D | thread_map.c | 68 atomic_set(&threads->refcnt, 1); in thread_map__new_by_pid() 85 atomic_set(&threads->refcnt, 1); in thread_map__new_by_tid() 107 atomic_set(&threads->refcnt, 1); in thread_map__new_by_uid() 237 atomic_set(&threads->refcnt, 1); in thread_map__new_by_pid_str() 257 atomic_set(&threads->refcnt, 1); in thread_map__new_dummy() 302 atomic_set(&threads->refcnt, 1); in thread_map__new_by_tid_str() 327 WARN_ONCE(atomic_read(&threads->refcnt) != 0, in thread_map__delete() 338 atomic_inc(&map->refcnt); in thread_map__get() 344 if (map && atomic_dec_and_test(&map->refcnt)) in thread_map__put()
|
D | comm.c | 10 atomic_t refcnt; member 19 atomic_inc(&cs->refcnt); in comm_str__get() 25 if (cs && atomic_dec_and_test(&cs->refcnt)) { in comm_str__put() 46 atomic_set(&cs->refcnt, 0); in comm_str__alloc()
|
D | cpumap.c | 26 atomic_set(&cpus->refcnt, 1); in cpu_map__default_new() 40 atomic_set(&cpus->refcnt, 1); in cpu_map__trim_new() 200 atomic_set(&cpus->refcnt, 1); in cpu_map__dummy_new() 217 atomic_set(&cpus->refcnt, 1); in cpu_map__empty_new() 226 WARN_ONCE(atomic_read(&map->refcnt) != 0, in cpu_map__delete() 235 atomic_inc(&map->refcnt); in cpu_map__get() 241 if (map && atomic_dec_and_test(&map->refcnt)) in cpu_map__put() 305 atomic_set(&c->refcnt, 1); in cpu_map__build_map()
|
D | cgroup.c | 118 if (atomic_read(&cgrp->refcnt) == 0) in add_cgroup() 123 atomic_inc(&cgrp->refcnt); in add_cgroup() 130 if (cgrp && atomic_dec_and_test(&cgrp->refcnt)) { in close_cgroup()
|
D | map.h | 54 atomic_t refcnt; member 70 atomic_t refcnt; member 80 atomic_inc(&mg->refcnt); in map_groups__get() 156 atomic_inc(&map->refcnt); in map__get()
|
D | thread.c | 56 atomic_set(&thread->refcnt, 0); in thread__new() 91 atomic_inc(&thread->refcnt); in thread__get() 97 if (thread && atomic_dec_and_test(&thread->refcnt)) { in thread__put()
|
D | cgroup.h | 11 atomic_t refcnt; member
|
D | thread_map.h | 14 atomic_t refcnt; member
|
D | cpumap.h | 12 atomic_t refcnt; member
|
D | map.c | 141 atomic_set(&map->refcnt, 1); in map__init() 255 if (map && atomic_dec_and_test(&map->refcnt)) in map__put() 356 atomic_set(&map->refcnt, 1); in map__clone() 473 atomic_set(&mg->refcnt, 1); in map_groups__init() 535 if (mg && atomic_dec_and_test(&mg->refcnt)) in map_groups__put()
|
D | thread.h | 25 atomic_t refcnt; member
|
D | evlist.c | 723 if (!atomic_read(&md->refcnt)) in perf_evlist__mmap_read() 788 atomic_inc(&evlist->mmap[idx].refcnt); in perf_evlist__mmap_get() 793 BUG_ON(atomic_read(&evlist->mmap[idx].refcnt) == 0); in perf_evlist__mmap_put() 795 if (atomic_dec_and_test(&evlist->mmap[idx].refcnt)) in perf_evlist__mmap_put() 809 if (atomic_read(&md->refcnt) == 1 && perf_mmap__empty(md)) in perf_evlist__mmap_consume() 846 atomic_set(&evlist->mmap[idx].refcnt, 0); in __perf_evlist__munmap() 895 atomic_set(&evlist->mmap[idx].refcnt, 2); in __perf_evlist__mmap()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | hvapi.c | 21 unsigned int refcnt; member 69 p->refcnt++; in __get_ref() 74 if (--p->refcnt == 0) { in __put_ref() 104 if (p->refcnt) { in sun4v_hvapi_register() 168 if (p && p->refcnt) { in sun4v_hvapi_get()
|
D | mdesc.c | 73 atomic_t refcnt; member 87 atomic_set(&hp->refcnt, 1); in mdesc_handle_init() 117 BUG_ON(atomic_read(&hp->refcnt) != 0); in mdesc_memblock_free() 157 BUG_ON(atomic_read(&hp->refcnt) != 0); in mdesc_kfree() 196 atomic_inc(&hp->refcnt); in mdesc_grab() 208 if (atomic_dec_and_test(&hp->refcnt)) { in mdesc_release() 347 atomic_dec(&hp->refcnt); in mdesc_update() 360 if (atomic_dec_and_test(&orig_hp->refcnt)) in mdesc_update()
|
/linux-4.4.14/drivers/cpuidle/ |
D | driver.c | 157 drv->refcnt = 0; in __cpuidle_driver_init() 263 if (WARN_ON(drv->refcnt > 0)) in __cpuidle_unregister_driver() 363 drv->refcnt++; in cpuidle_driver_ref() 382 if (drv && !WARN_ON(drv->refcnt <= 0)) in cpuidle_driver_unref() 383 drv->refcnt--; in cpuidle_driver_unref()
|
D | coupled.c | 111 int refcnt; member 683 coupled->refcnt++; in cpuidle_coupled_register_device() 707 if (--coupled->refcnt) in cpuidle_coupled_unregister_device()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2_vq.c | 114 atomic_set(&r->refcnt, 1); in vq_req_alloc() 127 if (atomic_dec_and_test(&r->refcnt)) { in vq_req_free() 137 atomic_inc(&r->refcnt); in vq_req_get() 153 if (atomic_dec_and_test(&r->refcnt)) { in vq_req_put()
|
D | c2_vq.h | 44 atomic_t refcnt; /* used to cancel WRs... */ member
|
/linux-4.4.14/lib/ |
D | lru_cache.c | 312 return e && e->refcnt; in lc_is_used() 327 BUG_ON(e->refcnt); in lc_del() 400 ++e->refcnt; in __lc_get() 406 if (e->refcnt++ == 0) in __lc_get() 447 BUG_ON(++e->refcnt != 1); in __lc_get() 577 BUG_ON(e->refcnt == 0); in lc_put() 579 if (--e->refcnt == 0) { in lc_put() 585 RETURN(e->refcnt); in lc_put() 630 BUG_ON(e->refcnt != 0); in lc_set() 664 i, e->lc_number, e->lc_new_number, e->refcnt); in lc_seq_dump_details() [all …]
|
/linux-4.4.14/fs/notify/ |
D | group.c | 73 atomic_inc(&group->refcnt); in fsnotify_get_group() 81 if (atomic_dec_and_test(&group->refcnt)) in fsnotify_put_group() 97 atomic_set(&group->refcnt, 1); in fsnotify_alloc_group()
|
D | mark.c | 101 atomic_inc(&mark->refcnt); in fsnotify_get_mark() 106 if (atomic_dec_and_test(&mark->refcnt)) { in fsnotify_put_mark() 492 atomic_set(&mark->refcnt, 1); in fsnotify_init_mark()
|
/linux-4.4.14/net/netfilter/ |
D | xt_IDLETIMER.c | 58 unsigned int refcnt; member 148 info->timer->refcnt = 1; in idletimer_tg_create() 207 info->timer->refcnt++; in idletimer_tg_checkentry() 212 info->label, info->timer->refcnt); in idletimer_tg_checkentry() 234 if (--info->timer->refcnt == 0) { in idletimer_tg_destroy() 244 info->label, info->timer->refcnt); in idletimer_tg_destroy()
|
D | xt_LED.c | 47 int refcnt; member 122 ledinternal->refcnt++; in led_tg_check() 135 ledinternal->refcnt = 1; in led_tg_check() 177 if (--ledinternal->refcnt) { in led_tg_destroy()
|
D | nfnetlink_acct.c | 35 atomic_t refcnt; member 125 atomic_set(&nfacct->refcnt, 1); in nfnl_acct_new() 166 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt)))) in nfnl_acct_fill_info() 324 if (atomic_dec_and_test(&cur->refcnt)) { in nfnl_acct_try_del() 330 atomic_inc(&cur->refcnt); in nfnl_acct_try_del() 411 if (!atomic_inc_not_zero(&cur->refcnt)) { in nfnl_acct_find_get() 427 if (atomic_dec_and_test(&acct->refcnt)) in nfnl_acct_put() 499 if (atomic_dec_and_test(&cur->refcnt)) in nfnl_acct_net_exit()
|
D | xt_RATEEST.c | 52 est->refcnt++; in xt_rateest_lookup() 65 if (--est->refcnt == 0) { in xt_rateest_put() 130 est->refcnt = 1; in xt_rateest_tg_checkentry()
|
D | nfnetlink_cttimeout.c | 147 atomic_set(&timeout->refcnt, 1); in cttimeout_new_timeout() 181 htonl(atomic_read(&timeout->refcnt)))) in ctnl_timeout_fill_info() 328 if (atomic_dec_and_test(&timeout->refcnt)) { in ctnl_timeout_try_del() 336 atomic_inc(&timeout->refcnt); in ctnl_timeout_try_del() 526 if (!atomic_inc_not_zero(&timeout->refcnt)) { in ctnl_timeout_find_get() 540 atomic_dec(&timeout->refcnt); in ctnl_timeout_put()
|
D | xt_recent.c | 84 unsigned int refcnt; member 388 t->refcnt++; in recent_mt_check() 402 t->refcnt = 1; in recent_mt_check() 462 if (--t->refcnt == 0) { in recent_mt_destroy()
|
/linux-4.4.14/net/sched/ |
D | cls_u32.c | 79 int refcnt; member 91 int refcnt; member 332 root_ht->refcnt++; in u32_init() 346 tp_c->refcnt++; in u32_init() 362 n->ht_down->refcnt--; in u32_destroy_key() 448 WARN_ON(ht->refcnt); in u32_destroy_hnode() 486 if (root_ht->refcnt > 1) in u32_destroy() 488 if (root_ht->refcnt == 1) { in u32_destroy() 494 if (tp_c->refcnt > 1) in u32_destroy() 497 if (tp_c->refcnt == 1) { in u32_destroy() [all …]
|
D | sch_drr.c | 23 unsigned int refcnt; member 112 cl->refcnt = 1; in drr_change_class() 161 BUG_ON(--cl->refcnt == 0); in drr_delete_class() 176 cl->refcnt++; in drr_get_class() 185 if (--cl->refcnt == 0) in drr_put_class()
|
D | sch_api.c | 401 rtab->refcnt++; in qdisc_get_rtab() 409 rtab->refcnt = 1; in qdisc_get_rtab() 424 if (!tab || --tab->refcnt) in qdisc_put_rtab() 481 stab->refcnt++; in qdisc_get_stab() 492 stab->refcnt = 1; in qdisc_get_stab() 516 if (--tab->refcnt == 0) { in qdisc_put_stab() 840 atomic_inc(&new->refcnt); in qdisc_graft() 851 atomic_inc(&new->refcnt); in qdisc_graft() 1241 atomic_inc(&q->refcnt); in tc_modify_qdisc() 1356 tcm->tcm_info = atomic_read(&q->refcnt); in tc_fill_qdisc()
|
D | sch_generic.c | 613 atomic_set(&sch->refcnt, 1); in qdisc_alloc() 677 !atomic_dec_and_test(&qdisc->refcnt)) in qdisc_destroy() 714 if (oqdisc && atomic_read(&oqdisc->refcnt) <= 1) in dev_graft_qdisc() 760 atomic_inc(&dev->qdisc->refcnt); in attach_default_qdiscs()
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | gluebi.c | 58 int refcnt; member 110 if (gluebi->refcnt > 0) { in gluebi_get_device() 119 gluebi->refcnt += 1; in gluebi_get_device() 135 gluebi->refcnt += 1; in gluebi_get_device() 153 gluebi->refcnt -= 1; in gluebi_put_device() 154 if (gluebi->refcnt == 0) in gluebi_put_device() 381 } else if (gluebi->refcnt) in gluebi_remove()
|
D | block.c | 87 int refcnt; member 231 if (dev->refcnt > 0) { in ubiblock_open() 259 dev->refcnt++; in ubiblock_open() 273 dev->refcnt--; in ubiblock_release() 274 if (dev->refcnt == 0) { in ubiblock_release() 494 if (dev->refcnt > 0) { in ubiblock_remove()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.h | 69 atomic_t refcnt; /* entry reference count */ member 137 if (atomic_dec_and_test(&e->refcnt) && d) in l2t_release() 145 if (d && atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold()
|
D | l2t.c | 227 if (atomic_read(&e->refcnt) == 0) in alloc_l2e() 230 for (e = &d->l2tab[1]; atomic_read(&e->refcnt); ++e) ; in alloc_l2e() 266 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t3_l2e_free() 337 if (atomic_read(&e->refcnt) == 1) in t3_l2t_get() 352 atomic_set(&e->refcnt, 1); in t3_l2t_get() 420 if (atomic_read(&e->refcnt)) { in t3_l2t_update() 461 atomic_set(&d->l2tab[i].refcnt, 0); in t3_init_l2t()
|
/linux-4.4.14/net/ipv4/ |
D | inet_fragment.c | 279 atomic_dec(&fq->refcnt); in inet_frag_kill() 283 atomic_dec(&fq->refcnt); in inet_frag_kill() 340 atomic_inc(&qp->refcnt); in inet_frag_intern() 350 atomic_inc(&qp->refcnt); in inet_frag_intern() 352 atomic_inc(&qp->refcnt); in inet_frag_intern() 381 atomic_set(&q->refcnt, 1); in inet_frag_alloc() 416 atomic_inc(&q->refcnt); in inet_frag_find()
|
D | inetpeer.c | 118 if (!atomic_read(&p->refcnt)) { in inetpeer_gc_worker() 207 if (!atomic_add_unless(&u->refcnt, 1, -1)) in lookup_rcu() 385 if (atomic_read(&p->refcnt) == 0) { in inet_peer_gc() 389 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) { in inet_peer_gc() 435 atomic_inc(&p->refcnt); in inet_getpeer() 447 atomic_set(&p->refcnt, 1); in inet_getpeer() 471 atomic_dec(&p->refcnt); in inet_putpeer()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 74 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold() 283 if (atomic_read(&e->refcnt) == 0) in alloc_l2e() 286 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e() 316 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t4_l2e_free() 337 if (atomic_dec_and_test(&e->refcnt)) in cxgb4_l2t_release() 391 if (atomic_read(&e->refcnt) == 1) in cxgb4_l2t_get() 408 atomic_set(&e->refcnt, 1); in cxgb4_l2t_get() 493 if (atomic_read(&e->refcnt)) in t4_l2t_update() 541 atomic_set(&e->refcnt, 1); in t4_l2t_alloc_switching() 587 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t() [all …]
|
D | clip_tbl.c | 111 atomic_set(&ce->refcnt, 0); in cxgb4_clip_get() 134 atomic_inc(&ce->refcnt); in cxgb4_clip_get() 171 if (atomic_dec_and_test(&ce->refcnt)) { in cxgb4_clip_release() 258 atomic_read(&ce->refcnt)); in clip_tbl_show()
|
D | clip_tbl.h | 15 atomic_t refcnt; member
|
D | l2t.h | 82 atomic_t refcnt; /* entry reference count */ member
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | g_zero.h | 40 int refcnt; member 55 int refcnt; member
|
D | u_ether_configfs.h | 52 if (opts->refcnt) { \ 87 if (opts->refcnt) { \ 122 if (opts->refcnt) { \
|
D | u_gether.h | 33 int refcnt; member
|
D | u_eem.h | 33 int refcnt; member
|
D | u_ncm.h | 33 int refcnt; member
|
D | u_ecm.h | 33 int refcnt; member
|
D | u_printer.h | 34 int refcnt; member
|
D | u_midi.h | 36 int refcnt; member
|
D | u_hid.h | 36 int refcnt; member
|
D | u_uac2.h | 39 int refcnt; member
|
D | u_rndis.h | 39 int refcnt; member
|
D | u_uvc.h | 83 int refcnt; member
|
D | f_sourcesink.c | 472 opts->refcnt--; in sourcesink_free_func() 863 ss_opts->refcnt++; in source_sink_alloc_func() 923 if (opts->refcnt) { in f_ss_opts_pattern_store() 966 if (opts->refcnt) { in f_ss_opts_isoc_interval_store() 1009 if (opts->refcnt) { in f_ss_opts_isoc_maxpacket_store() 1052 if (opts->refcnt) { in f_ss_opts_isoc_mult_store() 1095 if (opts->refcnt) { in f_ss_opts_isoc_maxburst_store() 1138 if (opts->refcnt) { in f_ss_opts_bulk_buflen_store()
|
D | u_uac1.h | 72 int refcnt; member
|
D | f_loopback.c | 232 opts->refcnt--; in lb_free_func() 443 lb_opts->refcnt++; in loopback_alloc() 499 if (opts->refcnt) { in f_lb_opts_qlen_store() 537 if (opts->refcnt) { in f_lb_opts_bulk_buflen_store()
|
D | uvc_configfs.c | 93 if (ch->linked || opts->refcnt) { \ 554 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link() 595 if (opts->refcnt) { in uvcg_control_class_drop_link() 727 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store() 1024 if (fmt->linked || opts->refcnt) { \ 1152 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store() 1320 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store() 1402 if (u->fmt.linked || opts->refcnt) { \ 1603 if (u->fmt.linked || opts->refcnt) { \ 2045 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link() [all …]
|
D | u_fs.h | 290 unsigned refcnt; member
|
D | f_mass_storage.h | 94 int refcnt; member
|
D | f_uac1.c | 805 if (opts->refcnt) { \ 850 if (opts->refcnt) \ 937 --opts->refcnt; in f_audio_free() 960 ++opts->refcnt; in f_audio_alloc()
|
D | f_hid.c | 740 if (opts->refcnt) { \ 789 if (opts->refcnt) in f_hid_opts_report_desc_store() 900 --opts->refcnt; in hidg_free() 932 ++opts->refcnt; in hidg_alloc()
|
/linux-4.4.14/drivers/uio/ |
D | uio_dmem_genirq.c | 43 unsigned int refcnt; member 56 while (!priv->refcnt && uiomem < &priv->uioinfo->mem[MAX_UIO_MAPS]) { in uio_dmem_genirq_open() 69 priv->refcnt++; in uio_dmem_genirq_open() 90 priv->refcnt--; in uio_dmem_genirq_release() 91 while (!priv->refcnt && uiomem < &priv->uioinfo->mem[MAX_UIO_MAPS]) { in uio_dmem_genirq_release()
|
/linux-4.4.14/kernel/bpf/ |
D | syscall.c | 98 if (atomic_dec_and_test(&map->refcnt)) { in bpf_map_put() 150 atomic_set(&map->refcnt, 1); in map_create() 189 if (atomic_inc_return(&map->refcnt) > BPF_MAX_REFCNT) { in bpf_map_inc() 190 atomic_dec(&map->refcnt); in bpf_map_inc() 549 if (atomic_dec_and_test(&prog->aux->refcnt)) in bpf_prog_put_rcu() 555 if (atomic_dec_and_test(&prog->aux->refcnt)) in bpf_prog_put() 592 if (atomic_inc_return(&prog->aux->refcnt) > BPF_MAX_REFCNT) { in bpf_prog_inc() 593 atomic_dec(&prog->aux->refcnt); in bpf_prog_inc() 670 atomic_set(&prog->aux->refcnt, 1); in bpf_prog_load()
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
D | coresight.c | 126 atomic_inc(csdev->refcnt); in coresight_enable_sink() 133 if (atomic_dec_return(csdev->refcnt) == 0) { in coresight_disable_sink() 158 if (atomic_inc_return(&csdev->refcnt[refport]) == 1) { in coresight_enable_link() 192 if (atomic_dec_return(&csdev->refcnt[refport]) == 0) { in coresight_disable_link() 198 if (atomic_read(&csdev->refcnt[i]) != 0) in coresight_disable_link() 223 atomic_inc(csdev->refcnt); in coresight_enable_source() 230 if (atomic_dec_return(csdev->refcnt) == 0) { in coresight_disable_source() 660 csdev->refcnt = refcnts; in coresight_register()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | iwch_ev.c | 77 atomic_inc(&qhp->refcnt); in post_qp_event() 102 if (atomic_dec_and_test(&qhp->refcnt)) in post_qp_event() 130 atomic_inc(&chp->refcnt); in iwch_ev_dispatch() 227 if (atomic_dec_and_test(&chp->refcnt)) in iwch_ev_dispatch()
|
D | iwch_provider.h | 109 atomic_t refcnt; member 168 atomic_t refcnt; member
|
D | iwch_provider.c | 137 atomic_dec(&chp->refcnt); in iwch_destroy_cq() 138 wait_event(chp->wait, !atomic_read(&chp->refcnt)); in iwch_destroy_cq() 203 atomic_set(&chp->refcnt, 1); in iwch_create_cq() 903 atomic_dec(&qhp->refcnt); in iwch_destroy_qp() 904 wait_event(qhp->wait, !atomic_read(&qhp->refcnt)); in iwch_destroy_qp() 1014 atomic_set(&qhp->refcnt, 1); in iwch_create_qp() 1117 atomic_inc(&(to_iwch_qp(qp)->refcnt)); in iwch_qp_add_ref() 1123 if (atomic_dec_and_test(&(to_iwch_qp(qp)->refcnt))) in iwch_qp_rem_ref()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | ev.c | 154 atomic_inc(&chp->refcnt); in c4iw_ev_dispatch() 216 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_dispatch() 231 atomic_inc(&chp->refcnt); in c4iw_ev_handler() 237 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_handler()
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-grgpio.c | 52 u8 refcnt; /* Reference counter to manage requesting/freeing of uirq */ member 268 if (uirq->refcnt == 0) { in grgpio_irq_map() 281 uirq->refcnt++; in grgpio_irq_map() 324 uirq->refcnt--; in grgpio_irq_unmap() 325 if (uirq->refcnt == 0) in grgpio_irq_unmap() 463 if (priv->uirqs[i].refcnt != 0) { in grgpio_remove()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sed.c | 114 atomic_read(&least->refcnt), in ip_vs_sed_schedule() 124 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_wlc.c | 86 atomic_read(&least->refcnt), in ip_vs_wlc_schedule() 96 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_nq.c | 113 atomic_read(&least->refcnt), in ip_vs_nq_schedule() 123 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_rr.c | 100 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); in ip_vs_rr_schedule() 108 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_conn.c | 183 atomic_inc(&cp->refcnt); in ip_vs_conn_hash() 217 atomic_dec(&cp->refcnt); in ip_vs_conn_unhash() 244 if (atomic_cmpxchg(&cp->refcnt, 1, 0) == 1) { in ip_vs_conn_unlink() 250 ret = atomic_read(&cp->refcnt) ? false : true; in ip_vs_conn_unlink() 603 cp->flags, atomic_read(&cp->refcnt), in ip_vs_bind_dest() 604 atomic_read(&dest->refcnt)); in ip_vs_bind_dest() 700 cp->flags, atomic_read(&cp->refcnt), in ip_vs_unbind_dest() 701 atomic_read(&dest->refcnt)); in ip_vs_unbind_dest() 844 atomic_read(&cp->refcnt), in ip_vs_conn_expire() 847 atomic_inc(&cp->refcnt); in ip_vs_conn_expire() [all …]
|
D | ip_vs_wrr.c | 221 atomic_read(&dest->refcnt), in ip_vs_wrr_schedule() 246 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_fo.c | 60 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_ovf.c | 67 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_lc.c | 73 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_lblcr.c | 207 atomic_read(&least->refcnt), in ip_vs_dest_set_min() 252 atomic_read(&most->refcnt), in ip_vs_dest_set_max() 615 atomic_read(&least->refcnt), in __ip_vs_lblcr_schedule() 726 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_pe_sip.c | 149 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_lblc.c | 451 atomic_read(&least->refcnt), in __ip_vs_lblc_schedule() 540 .refcnt = ATOMIC_INIT(0),
|
/linux-4.4.14/block/ |
D | blk-tag.c | 38 if (atomic_dec_and_test(&bqt->refcnt)) { in blk_free_tags() 133 atomic_set(&tags->refcnt, 1); in __blk_queue_init_tags() 183 atomic_inc(&tags->refcnt); in blk_queue_init_tags() 228 if (atomic_read(&bqt->refcnt) != 1) in blk_queue_resize_tags()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | wusbhc.h | 97 struct kref refcnt; member 118 kref_init(&wusb_dev->refcnt); in wusb_dev_init() 126 kref_get(&wusb_dev->refcnt); in wusb_dev_get() 132 kref_put(&wusb_dev->refcnt, wusb_dev_destroy); in wusb_dev_put()
|
D | wa-hc.h | 114 struct kref refcnt; member 325 kref_get(&rpipe->refcnt); in __rpipe_get() 331 kref_put(&rpipe->refcnt, rpipe_destroy); in rpipe_put()
|
/linux-4.4.14/drivers/char/ |
D | mspec.c | 92 atomic_t refcnt; /* Number of vmas sharing the data. */ member 150 atomic_inc(&vdata->refcnt); in mspec_open() 168 if (!atomic_dec_and_test(&vdata->refcnt)) in mspec_close() 286 atomic_set(&vdata->refcnt, 1); in mspec_mmap()
|
/linux-4.4.14/drivers/w1/slaves/ |
D | w1_therm.c | 64 atomic_t refcnt; member 69 (&((struct w1_therm_family_data*)family_data)->refcnt) 83 int refcnt = atomic_sub_return(1, THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave() local 84 while(refcnt) { in w1_therm_remove_slave() 86 refcnt = atomic_read(THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave()
|
/linux-4.4.14/mm/ |
D | backing-dev.c | 438 atomic_set(&new_congested->refcnt, 0); in wb_congested_get_create() 444 atomic_inc(&congested->refcnt); in wb_congested_get_create() 461 if (!atomic_dec_and_lock(&congested->refcnt, &cgwb_lock)) { in wb_congested_put() 493 percpu_ref_exit(&wb->refcnt); in cgwb_release_workfn() 501 static void cgwb_release(struct percpu_ref *refcnt) in cgwb_release() argument 503 struct bdi_writeback *wb = container_of(refcnt, struct bdi_writeback, in cgwb_release() 504 refcnt); in cgwb_release() 515 percpu_ref_kill(&wb->refcnt); in cgwb_kill() 555 ret = percpu_ref_init(&wb->refcnt, cgwb_release, 0, gfp); in cgwb_create() 600 percpu_ref_exit(&wb->refcnt); in cgwb_create()
|
/linux-4.4.14/include/linux/ceph/ |
D | pagelist.h | 16 atomic_t refcnt; member 33 atomic_set(&pl->refcnt, 1); in ceph_pagelist_init()
|
/linux-4.4.14/drivers/scsi/cxgbi/ |
D | libcxgbi.h | 128 struct kref refcnt; member 212 struct kref refcnt; member 366 refcnt); in cxgbi_sock_free() 379 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_put() 380 kref_put(&csk->refcnt, cxgbi_sock_free); in __cxgbi_sock_put() 388 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_get() 389 kref_get(&csk->refcnt); in __cxgbi_sock_get()
|
/linux-4.4.14/fs/hfs/ |
D | bnode.c | 260 atomic_set(&node->refcnt, 1); in __hfs_bnode_create() 305 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash() 449 atomic_inc(&node->refcnt); in hfs_bnode_get() 452 atomic_read(&node->refcnt)); in hfs_bnode_get() 465 atomic_read(&node->refcnt)); in hfs_bnode_put() 466 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put() 467 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
|
D | btree.h | 60 atomic_t refcnt; member
|
D | btree.c | 147 if (atomic_read(&node->refcnt)) in hfs_btree_close() 150 atomic_read(&node->refcnt)); in hfs_btree_close()
|
/linux-4.4.14/net/caif/ |
D | cffrml.c | 192 int i, refcnt = 0; in cffrml_refcnt_read() local 195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i); in cffrml_refcnt_read() 196 return refcnt; in cffrml_refcnt_read()
|
D | caif_dev.c | 85 int i, refcnt = 0; in caifd_refcnt_read() local 87 refcnt += *per_cpu_ptr(e->pcpu_refcnt, i); in caifd_refcnt_read() 88 return refcnt; in caifd_refcnt_read()
|
/linux-4.4.14/include/net/sctp/ |
D | auth.h | 56 atomic_t refcnt; member 79 atomic_inc(&key->refcnt); in sctp_auth_key_hold()
|
D | structs.h | 526 atomic_t refcnt; member 555 atomic_t refcnt; member 758 atomic_t refcnt; member 1160 atomic_t refcnt; member
|
/linux-4.4.14/arch/ia64/kernel/ |
D | iosapic.c | 133 int refcnt; /* reference counter */ member 579 rte->refcnt++; in register_intr() 584 else if (rte->refcnt == NO_REF_RTE) { in register_intr() 593 rte->refcnt++; in register_intr() 739 } else if (rte->refcnt != NO_REF_RTE) { in iosapic_register_intr() 740 rte->refcnt++; in iosapic_register_intr() 815 if (--rte->refcnt > 0) in iosapic_unregister_intr() 818 rte->refcnt = NO_REF_RTE; in iosapic_unregister_intr() 1021 if (rte->refcnt) in iosapic_delete_rte()
|
/linux-4.4.14/net/ipv6/ |
D | xfrm6_tunnel.c | 62 atomic_t refcnt; member 163 atomic_set(&x6spi->refcnt, 1); in __xfrm6_tunnel_alloc_spi() 181 atomic_inc(&x6spi->refcnt); in xfrm6_tunnel_alloc_spi() 210 if (atomic_dec_and_test(&x6spi->refcnt)) { in xfrm6_tunnel_free_spi()
|
D | addrlabel.c | 39 atomic_t refcnt; member 140 return atomic_inc_not_zero(&p->refcnt); in ip6addrlbl_hold() 145 if (atomic_dec_and_test(&p->refcnt)) in ip6addrlbl_put() 239 atomic_set(&newp->refcnt, 1); in ip6addrlbl_alloc()
|
D | xfrm6_input.c | 66 if (!skb->sp || atomic_read(&skb->sp->refcnt) != 1) { in xfrm6_input_addr()
|
/linux-4.4.14/crypto/ |
D | af_alg.c | 134 bool last = nokey && !ask->refcnt; in af_alg_release_parent() 142 last = !--ask->refcnt; in af_alg_release_parent() 188 if (ask->refcnt | ask->nokey_refcnt) in alg_bind() 237 if (ask->refcnt) in alg_setsockopt() 304 if (nokey || !ask->refcnt++) in af_alg_accept()
|
D | algif_hash.c | 255 if (ask->refcnt) in hash_check_key() 267 if (!pask->refcnt++) in hash_check_key() 270 ask->refcnt = 1; in hash_check_key()
|
/linux-4.4.14/drivers/acpi/ |
D | pci_link.c | 84 int refcnt; member 513 if (link->refcnt == 0) in acpi_pci_link_allocate() 622 link->refcnt++; in acpi_pci_link_allocate_irq() 675 link->refcnt--; in acpi_pci_link_free_irq() 681 if (link->refcnt == 0) in acpi_pci_link_free_irq() 752 if (link->refcnt && link->irq.active && link->irq.initialized) in acpi_pci_link_resume()
|
/linux-4.4.14/drivers/net/ppp/ |
D | ppp_synctty.c | 75 atomic_t refcnt; member 144 atomic_inc(&ap->refcnt); in sp_get() 151 if (atomic_dec_and_test(&ap->refcnt)) in sp_put() 185 atomic_set(&ap->refcnt, 1); in ppp_sync_open() 235 if (!atomic_dec_and_test(&ap->refcnt)) in ppp_sync_close()
|
D | ppp_async.c | 72 atomic_t refcnt; member 143 atomic_inc(&ap->refcnt); in ap_get() 150 if (atomic_dec_and_test(&ap->refcnt)) in ap_put() 188 atomic_set(&ap->refcnt, 1); in ppp_asynctty_open() 237 if (!atomic_dec_and_test(&ap->refcnt)) in ppp_asynctty_close()
|
/linux-4.4.14/include/net/bluetooth/ |
D | rfcomm.h | 177 atomic_t refcnt; member 250 atomic_inc(&d->refcnt); in rfcomm_dlc_hold() 255 if (atomic_dec_and_test(&d->refcnt)) in rfcomm_dlc_put()
|
/linux-4.4.14/include/uapi/linux/ |
D | pkt_cls.h | 117 int refcnt; member 129 int refcnt; member 137 int refcnt; \
|
/linux-4.4.14/net/sctp/ |
D | chunk.c | 52 atomic_set(&msg->refcnt, 1); in sctp_datamsg_init() 140 atomic_inc(&msg->refcnt); in sctp_datamsg_hold() 146 if (atomic_dec_and_test(&msg->refcnt)) in sctp_datamsg_put()
|
D | endpointola.c | 117 atomic_set(&ep->base.refcnt, 1); in sctp_endpoint_init() 287 atomic_inc(&ep->base.refcnt); in sctp_endpoint_hold() 295 if (atomic_dec_and_test(&ep->base.refcnt)) in sctp_endpoint_put()
|
D | transport.c | 100 atomic_set(&peer->refcnt, 1); in sctp_transport_init() 301 atomic_inc(&transport->refcnt); in sctp_transport_hold() 309 if (atomic_dec_and_test(&transport->refcnt)) in sctp_transport_put()
|
/linux-4.4.14/fs/hfsplus/ |
D | bnode.c | 425 atomic_set(&node->refcnt, 1); in __hfs_bnode_create() 471 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash() 617 atomic_inc(&node->refcnt); in hfs_bnode_get() 620 atomic_read(&node->refcnt)); in hfs_bnode_get() 633 atomic_read(&node->refcnt)); in hfs_bnode_put() 634 BUG_ON(!atomic_read(&node->refcnt)); in hfs_bnode_put() 635 if (!atomic_dec_and_lock(&node->refcnt, &tree->hash_lock)) in hfs_bnode_put()
|
/linux-4.4.14/include/net/netfilter/ |
D | xt_rateest.h | 14 unsigned int refcnt; member
|
D | nf_conntrack_timeout.h | 15 atomic_t refcnt; member
|
/linux-4.4.14/drivers/uwb/ |
D | uwb-internal.h | 279 struct kref refcnt; member 296 kref_get(&bce->refcnt); in uwb_bce_get() 300 kref_put(&bce->refcnt, uwb_bce_kfree); in uwb_bce_put()
|
/linux-4.4.14/Documentation/RCU/ |
D | rculist_nulls.txt | 88 * or obj->refcnt 91 atomic_set(&obj->refcnt, 1); 164 * changes to obj->key must be visible before refcnt one 167 atomic_set(&obj->refcnt, 1);
|
/linux-4.4.14/drivers/isdn/gigaset/ |
D | ser-gigaset.c | 48 atomic_t refcnt; member 486 atomic_inc(&cs->hw.ser->refcnt); in cs_get() 492 if (atomic_dec_and_test(&cs->hw.ser->refcnt)) in cs_put() 524 atomic_set(&cs->hw.ser->refcnt, 1); in gigaset_tty_open() 582 if (!atomic_dec_and_test(&cs->hw.ser->refcnt)) in gigaset_tty_close()
|
/linux-4.4.14/arch/ia64/include/asm/sn/ |
D | tioce_provider.h | 49 u32 refcnt; member
|
/linux-4.4.14/drivers/xen/events/ |
D | events_base.c | 385 info->refcnt = -1; in xen_irq_init() 445 WARN_ON(info->refcnt > 0); in xen_free_irq() 615 if (info->refcnt > 0) { in __unbind_from_irq() 616 info->refcnt--; in __unbind_from_irq() 617 if (info->refcnt != 0) in __unbind_from_irq() 1158 WARN_ON(info->refcnt != -1); in evtchn_make_refcounted() 1160 info->refcnt = 1; in evtchn_make_refcounted() 1187 if (info->refcnt <= 0) in evtchn_get() 1190 info->refcnt++; in evtchn_get()
|
D | events_internal.h | 35 int refcnt; member
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_fcoe.h | 79 atomic_t refcnt; member
|
/linux-4.4.14/net/lapb/ |
D | lapb_iface.c | 57 atomic_inc(&lapb->refcnt); in lapb_hold() 62 if (atomic_dec_and_test(&lapb->refcnt)) in lapb_put() 139 atomic_set(&lapb->refcnt, 1); in lapb_create_cb()
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_actlog.c | 575 rv = (al_ext->refcnt == 0); in _try_lc_del() 906 if (bm_ext->lce.refcnt == 1) in _bme_get() 1056 bm_ext->lce.refcnt--; in drbd_try_rs_begin_io() 1057 D_ASSERT(device, bm_ext->lce.refcnt > 0); in drbd_try_rs_begin_io() 1083 D_ASSERT(device, bm_ext->lce.refcnt == 1); in drbd_try_rs_begin_io() 1134 if (bm_ext->lce.refcnt == 0) { in drbd_rs_complete_io() 1201 if (bm_ext->lce.refcnt != 0) { in drbd_rs_del_all() 1203 "refcnt=%d\n", bm_ext->lce.refcnt); in drbd_rs_del_all()
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.h | 75 atomic_t refcnt; member
|
/linux-4.4.14/Documentation/cgroups/ |
D | memcg_test.txt | 36 Called when swp_entry's refcnt goes down to 0. A charge against swap 69 swp_entry's refcnt += 1. 71 swp_entry's refcnt += # of ptes. 74 swp_entry's refcnt -= 1. 78 (e) zap_pte() is called and swp_entry's refcnt -=1 -> 0.
|
/linux-4.4.14/fs/kernfs/ |
D | file.c | 36 atomic_t refcnt; member 554 atomic_inc(&on->refcnt); in kernfs_get_open_node() 571 atomic_set(&new_on->refcnt, 0); in kernfs_get_open_node() 601 if (atomic_dec_and_test(&on->refcnt)) in kernfs_put_open_node() 753 atomic_inc(&on->refcnt); in kernfs_unmap_bin_file()
|
/linux-4.4.14/drivers/net/hamradio/ |
D | mkiss.c | 84 atomic_t refcnt; member 682 atomic_inc(&ax->refcnt); in mkiss_get() 690 if (atomic_dec_and_test(&ax->refcnt)) in mkiss_put() 718 atomic_set(&ax->refcnt, 1); in mkiss_open() 798 if (!atomic_dec_and_test(&ax->refcnt)) in mkiss_close()
|
D | 6pack.c | 123 atomic_t refcnt; member 384 atomic_inc(&sp->refcnt); in sp_get() 392 if (atomic_dec_and_test(&sp->refcnt)) in sp_put() 587 atomic_set(&sp->refcnt, 1); in sixpack_open() 683 if (!atomic_dec_and_test(&sp->refcnt)) in sixpack_close()
|
/linux-4.4.14/fs/ |
D | pnode.c | 345 int propagate_mount_busy(struct mount *mnt, int refcnt) in propagate_mount_busy() argument 352 return do_refcount_check(mnt, refcnt); in propagate_mount_busy() 359 if (!list_empty(&mnt->mnt_mounts) || do_refcount_check(mnt, refcnt)) in propagate_mount_busy()
|
/linux-4.4.14/include/crypto/ |
D | if_alg.h | 33 unsigned int refcnt; member
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_fcoe.h | 122 atomic_t refcnt; member
|
/linux-4.4.14/drivers/staging/vme/devices/ |
D | vme_user.c | 120 atomic_t refcnt; member 432 atomic_inc(&vma_priv->refcnt); in vme_user_vm_open() 440 if (!atomic_dec_and_test(&vma_priv->refcnt)) in vme_user_vm_close() 475 atomic_set(&vma_priv->refcnt, 1); in vme_user_master_mmap()
|
/linux-4.4.14/kernel/ |
D | padata.c | 128 if (atomic_read(&pd->refcnt) >= MAX_OBJ_NUM) in padata_do_parallel() 132 atomic_inc(&pd->refcnt); in padata_do_parallel() 315 atomic_dec(&pd->refcnt); in padata_serial_worker() 433 atomic_set(&pd->refcnt, 0); in padata_alloc_pd() 480 BUG_ON(atomic_read(&pd->refcnt) != 0); in padata_flush_queues()
|
/linux-4.4.14/fs/nfs/blocklayout/ |
D | blocklayout.c | 68 struct kref refcnt; member 80 kref_init(&rv->refcnt); in alloc_parallel() 87 kref_get(&p->refcnt); in get_parallel() 92 struct parallel_io *p = container_of(kref, struct parallel_io, refcnt); in destroy_parallel() 101 kref_put(&p->refcnt, destroy_parallel); in put_parallel()
|
/linux-4.4.14/drivers/block/xen-blkback/ |
D | common.h | 288 atomic_t refcnt; member 377 #define xen_blkif_get(_b) (atomic_inc(&(_b)->refcnt)) 380 if (atomic_dec_and_test(&(_b)->refcnt)) \
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_amd_uncore.c | 34 int refcnt; member 353 this->refcnt++; in amd_uncore_find_online_sibling() 448 if (!--uncore->refcnt) in uncore_dead()
|
D | perf_event_intel_uncore.c | 104 atomic_inc(&box->refcnt); in uncore_pmu_to_box() 320 atomic_set(&box->refcnt, 1); in uncore_alloc_box() 944 atomic_dec(&box->refcnt); in uncore_pci_remove() 948 WARN_ON_ONCE(atomic_read(&box->refcnt) != 1); in uncore_pci_remove() 1045 if (box && atomic_dec_and_test(&box->refcnt)) in uncore_cpu_dying() 1074 atomic_inc(&exist->refcnt); in uncore_cpu_starting()
|
D | perf_event.h | 85 int refcnt; /* reference count */ member 140 int refcnt; /* per-core: #HT threads */ member 165 int refcnt; /* per-core: #HT threads */ member
|
/linux-4.4.14/net/llc/ |
D | llc_core.c | 44 atomic_set(&sap->refcnt, 1); in llc_sap_alloc()
|
/linux-4.4.14/drivers/vfio/platform/ |
D | vfio_platform_private.h | 57 int refcnt; member
|
D | vfio_platform_common.c | 143 if (!(--vdev->refcnt)) { in vfio_platform_release() 169 if (!vdev->refcnt) { in vfio_platform_open() 186 vdev->refcnt++; in vfio_platform_open()
|
/linux-4.4.14/drivers/vfio/pci/ |
D | vfio_pci_private.h | 61 int refcnt; member
|
D | vfio_pci.c | 246 if (!(--vdev->refcnt)) { in vfio_pci_release() 266 if (!vdev->refcnt) { in vfio_pci_open() 273 vdev->refcnt++; in vfio_pci_open() 1121 if (tmp->refcnt) in vfio_pci_try_bus_reset() 1135 if (!tmp->refcnt && !disable_idle_d3) in vfio_pci_try_bus_reset()
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp.h | 140 int refcnt; member
|
/linux-4.4.14/net/bridge/ |
D | br_vlan.c | 158 atomic_inc(&masterv->refcnt); in br_vlan_get_master() 171 if (atomic_dec_and_test(&masterv->refcnt)) { in br_vlan_put_master() 531 atomic_inc(&vlan->refcnt); in br_vlan_add() 548 atomic_set(&vlan->refcnt, 1); in br_vlan_add()
|
/linux-4.4.14/fs/jffs2/ |
D | xattr.h | 32 atomic_t refcnt; /* # of xattr_ref refers this */ member
|
D | xattr.c | 355 atomic_inc(&xd->refcnt); in create_xattr_datum() 375 atomic_set(&xd->refcnt, 1); in create_xattr_datum() 407 if (atomic_dec_and_lock(&xd->refcnt, &c->erase_completion_lock)) { in unrefer_xattr_datum() 624 if (atomic_dec_and_test(&xd->refcnt)) { in jffs2_xattr_free_inode() 854 atomic_inc(&xd->refcnt); in jffs2_build_xattr_subsystem() 865 if (!atomic_read(&xd->refcnt)) { in jffs2_build_xattr_subsystem() 1319 if (atomic_read(&xd->refcnt) || xd->node != (void *)xd) in jffs2_release_xattr_datum()
|
/linux-4.4.14/Documentation/ABI/stable/ |
D | sysfs-module | 28 /sys/module/MODULENAME/refcnt
|
/linux-4.4.14/fs/fuse/ |
D | fuse_i.h | 247 struct kref refcnt; member 263 .refcnt = { ATOMIC_INIT(1) }, \
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
D | libipw_tx.c | 164 atomic_inc(&crypt->refcnt); in libipw_encrypt_fragment() 169 atomic_dec(&crypt->refcnt); in libipw_encrypt_fragment()
|
/linux-4.4.14/net/xfrm/ |
D | xfrm_input.c | 121 atomic_set(&sp->refcnt, 1); in secpath_dup() 222 if (!skb->sp || atomic_read(&skb->sp->refcnt) != 1) { in xfrm_input()
|
/linux-4.4.14/net/core/ |
D | netpoll.c | 629 atomic_set(&npinfo->refcnt, 1); in __netpoll_setup() 639 atomic_inc(&npinfo->refcnt); in __netpoll_setup() 818 if (atomic_dec_and_test(&npinfo->refcnt)) { in __netpoll_cleanup()
|
/linux-4.4.14/net/ceph/ |
D | pagelist.c | 19 if (!atomic_dec_and_test(&pl->refcnt)) in ceph_pagelist_release()
|