/linux-4.1.27/tools/perf/tests/ |
D | thread-mg-share.c | 46 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 4); in test__thread_mg_share() 62 TEST_ASSERT_VAL("wrong refcnt", other_mg->refcnt == 2); in test__thread_mg_share() 68 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 3); in test__thread_mg_share() 71 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 2); in test__thread_mg_share() 74 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 1); in test__thread_mg_share() 80 TEST_ASSERT_VAL("wrong refcnt", other_mg->refcnt == 1); in test__thread_mg_share()
|
/linux-4.1.27/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.1.27/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.1.27/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() 213 atomic_dec(&dev->refcnt); in __w1_remove_master_device() 215 while (atomic_read(&dev->refcnt)) { in __w1_remove_master_device() 217 dev->name, atomic_read(&dev->refcnt)); in __w1_remove_master_device()
|
D | w1.c | 725 atomic_set(&sl->refcnt, 1); in w1_attach_slave_device() 726 atomic_inc(&sl->master->refcnt); in w1_attach_slave_device() 769 int refcnt; in w1_unref_slave() local 771 refcnt = atomic_sub_return(1, &sl->refcnt); in w1_unref_slave() 772 if (refcnt == 0) { in w1_unref_slave() 792 atomic_dec(&dev->refcnt); in w1_unref_slave() 794 return refcnt; in w1_unref_slave() 820 atomic_inc(&dev->refcnt); in w1_search_master_id() 843 atomic_inc(&dev->refcnt); in w1_search_slave() 844 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.1.27/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 | 251 atomic_inc(&idev->refcnt); in in6_dev_get() 267 if (atomic_dec_and_test(&idev->refcnt)) in in6_dev_put() 273 atomic_dec(&idev->refcnt); in __in6_dev_put() 278 atomic_inc(&idev->refcnt); in in6_dev_hold() 285 if (atomic_dec_and_test(&ifp->refcnt)) in in6_ifa_put() 291 atomic_dec(&ifp->refcnt); in __in6_ifa_put() 296 atomic_inc(&ifp->refcnt); in in6_ifa_hold()
|
D | fib_rules.h | 25 atomic_t refcnt; member 95 atomic_inc(&rule->refcnt); in fib_rule_get() 100 if (atomic_dec_and_test(&rule->refcnt)) in fib_rule_put()
|
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 | inetpeer.h | 59 atomic_t refcnt; member 118 atomic_inc(&peer->refcnt); in inetpeer_transfer_peer() 172 WARN_ON_ONCE(atomic_read(&p->refcnt) <= 0); in inet_peer_refcheck()
|
D | neighbour.h | 79 atomic_t refcnt; member 139 atomic_t refcnt; member 395 atomic_dec(&parms->refcnt); in __neigh_parms_put() 400 atomic_inc(&parms->refcnt); in neigh_parms_clone() 410 if (atomic_dec_and_test(&neigh->refcnt)) in neigh_release() 417 atomic_inc(&neigh->refcnt); in neigh_clone() 421 #define neigh_hold(n) atomic_inc(&(n)->refcnt)
|
D | inet_frag.h | 53 atomic_t refcnt; member 124 if (atomic_dec_and_test(&q->refcnt)) in inet_frag_put()
|
D | ip_vs.h | 536 atomic_t refcnt; /* reference count */ member 656 atomic_t refcnt; /* reference counter */ member 705 atomic_t refcnt; /* reference counter */ member 735 atomic_t refcnt; /* reference counter */ member 759 atomic_t refcnt; /* reference counter */ member 1198 return atomic_inc_not_zero(&cp->refcnt); in __ip_vs_conn_get() 1205 atomic_dec(&cp->refcnt); in __ip_vs_conn_put() 1393 atomic_inc(&dest->refcnt); in ip_vs_dest_hold() 1399 atomic_dec(&dest->refcnt); in ip_vs_dest_put() 1404 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 529 atomic_t refcnt; member 783 atomic_inc(&policy->refcnt); in xfrm_pol_hold() 790 if (atomic_dec_and_test(&policy->refcnt)) in xfrm_pol_put() 805 atomic_dec(&x->refcnt); in __xfrm_state_put() 810 if (atomic_dec_and_test(&x->refcnt)) in xfrm_state_put() 816 atomic_inc(&x->refcnt); in xfrm_state_hold() 979 atomic_t refcnt; member 997 atomic_inc(&sp->refcnt); in secpath_get() 1006 if (sp && atomic_dec_and_test(&sp->refcnt)) in secpath_put()
|
D | geneve.h | 76 int refcnt; member
|
D | af_unix.h | 24 atomic_t refcnt; member
|
D | lapb.h | 104 atomic_t refcnt; member
|
D | vxlan.h | 115 atomic_t refcnt; member
|
D | sch_generic.h | 23 int refcnt; member 43 int refcnt; member 100 atomic_t refcnt; member
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/cpuidle/ |
D | driver.c | 157 drv->refcnt = 0; in __cpuidle_driver_init() 259 if (WARN_ON(drv->refcnt > 0)) in __cpuidle_unregister_driver() 359 drv->refcnt++; in cpuidle_driver_ref() 378 if (drv && !WARN_ON(drv->refcnt <= 0)) in cpuidle_driver_unref() 379 drv->refcnt--; in cpuidle_driver_unref()
|
D | coupled.c | 111 int refcnt; member 661 coupled->refcnt++; in cpuidle_coupled_register_device() 685 if (--coupled->refcnt) in cpuidle_coupled_unregister_device()
|
/linux-4.1.27/drivers/infiniband/hw/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.1.27/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.1.27/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() 475 atomic_set(&mark->refcnt, 1); in fsnotify_init_mark()
|
/linux-4.1.27/include/linux/ |
D | cgroup.h | 45 percpu_ref_get(&css->refcnt); in css_get() 58 percpu_ref_get_many(&css->refcnt, n); in css_get_many() 75 return percpu_ref_tryget(&css->refcnt); in css_tryget() 92 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online() 105 percpu_ref_put(&css->refcnt); in css_put() 118 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
|
D | inetdevice.h | 25 atomic_t refcnt; member 212 atomic_inc(&in_dev->refcnt); in in_dev_get() 233 if (atomic_dec_and_test(&idev->refcnt)) in in_dev_put() 237 #define __in_dev_put(idev) atomic_dec(&(idev)->refcnt) 238 #define in_dev_hold(idev) atomic_inc(&(idev)->refcnt)
|
D | connector.h | 36 atomic_t refcnt; member 52 atomic_t refcnt; member
|
D | bpf.h | 30 atomic_t refcnt; member 121 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 | mempolicy.h | 44 atomic_t refcnt; member 98 atomic_inc(&pol->refcnt); in mpol_get()
|
D | fsnotify_backend.h | 135 atomic_t refcnt; /* things with interest in this group */ member 213 atomic_t refcnt; /* active things looking at this mark */ member
|
D | netpoll.h | 37 atomic_t refcnt; member
|
D | padata.h | 131 atomic_t refcnt; member
|
D | pktcdvd.h | 170 int refcnt; /* Open count */ member
|
D | lru_cache.h | 162 unsigned refcnt; member
|
D | coresight.h | 169 atomic_t *refcnt; member
|
D | igmp.h | 91 atomic_t refcnt; member
|
D | cgroup-defs.h | 93 struct percpu_ref refcnt; member
|
/linux-4.1.27/net/netfilter/ |
D | xt_IDLETIMER.c | 58 unsigned int refcnt; member 147 info->timer->refcnt = 1; in idletimer_tg_create() 206 info->timer->refcnt++; in idletimer_tg_checkentry() 211 info->label, info->timer->refcnt); in idletimer_tg_checkentry() 233 if (--info->timer->refcnt == 0) { in idletimer_tg_destroy() 243 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 | 37 atomic_t refcnt; member 126 atomic_set(&nfacct->refcnt, 1); in nfnl_acct_new() 167 nla_put_be32(skb, NFACCT_USE, htonl(atomic_read(&acct->refcnt)))) in nfnl_acct_fill_info() 323 if (atomic_dec_and_test(&cur->refcnt)) { in nfnl_acct_try_del() 329 atomic_inc(&cur->refcnt); in nfnl_acct_try_del() 409 if (!atomic_inc_not_zero(&cur->refcnt)) { in nfnl_acct_find_get() 425 atomic_dec(&acct->refcnt); in nfnl_acct_put()
|
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() 300 if (atomic_dec_and_test(&timeout->refcnt)) { in ctnl_timeout_try_del() 307 atomic_inc(&timeout->refcnt); in ctnl_timeout_try_del() 497 if (!atomic_inc_not_zero(&timeout->refcnt)) { in ctnl_timeout_find_get() 511 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.1.27/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 111 cl->refcnt = 1; in drr_change_class() 160 BUG_ON(--cl->refcnt == 0); in drr_delete_class() 175 cl->refcnt++; in drr_get_class() 184 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() 838 atomic_inc(&new->refcnt); in qdisc_graft() 849 atomic_inc(&new->refcnt); in qdisc_graft() 1239 atomic_inc(&q->refcnt); in tc_modify_qdisc() 1354 tcm->tcm_info = atomic_read(&q->refcnt); in tc_fill_qdisc()
|
D | sch_generic.c | 618 atomic_set(&sch->refcnt, 1); in qdisc_alloc() 682 !atomic_dec_and_test(&qdisc->refcnt)) in qdisc_destroy() 719 if (oqdisc && atomic_read(&oqdisc->refcnt) <= 1) in dev_graft_qdisc() 763 atomic_inc(&dev->qdisc->refcnt); in attach_default_qdiscs()
|
D | act_connmark.c | 144 .refcnt = ci->tcf_refcnt - ref, in tcf_connmark_dump()
|
/linux-4.1.27/net/ipv4/ |
D | inet_fragment.c | 146 atomic_inc(&fq->refcnt); in inet_evict_bucket() 295 atomic_dec(&fq->refcnt); in inet_frag_kill() 299 atomic_dec(&fq->refcnt); in inet_frag_kill() 356 atomic_inc(&qp->refcnt); in inet_frag_intern() 366 atomic_inc(&qp->refcnt); in inet_frag_intern() 368 atomic_inc(&qp->refcnt); in inet_frag_intern() 397 atomic_set(&q->refcnt, 1); in inet_frag_alloc() 432 atomic_inc(&q->refcnt); in inet_frag_find()
|
D | inet_timewait_sock.c | 74 int refcnt; in inet_twsk_kill() local 79 refcnt = inet_twsk_unhash(tw); in inet_twsk_kill() 87 refcnt += inet_twsk_bind_unhash(tw, hashinfo); in inet_twsk_kill() 90 BUG_ON(refcnt >= atomic_read(&tw->tw_refcnt)); in inet_twsk_kill() 91 atomic_sub(refcnt, &tw->tw_refcnt); in inet_twsk_kill()
|
D | inetpeer.c | 118 if (!atomic_read(&p->refcnt)) { in inetpeer_gc_worker() 223 if (!atomic_add_unless(&u->refcnt, 1, -1)) in lookup_rcu() 401 if (atomic_read(&p->refcnt) == 0) { in inet_peer_gc() 405 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) { in inet_peer_gc() 451 atomic_inc(&p->refcnt); in inet_getpeer() 463 atomic_set(&p->refcnt, 1); in inet_getpeer() 487 atomic_dec(&p->refcnt); in inet_putpeer()
|
D | geneve.c | 352 gs->refcnt = 1; in geneve_socket_create() 385 gs->refcnt++; in geneve_sock_add() 402 if (--gs->refcnt) in geneve_sock_release()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 81 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold() 280 if (atomic_read(&e->refcnt) == 0) in alloc_l2e() 283 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e() 313 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t4_l2e_free() 334 if (atomic_dec_and_test(&e->refcnt)) in cxgb4_l2t_release() 388 if (atomic_read(&e->refcnt) == 1) in cxgb4_l2t_get() 405 atomic_set(&e->refcnt, 1); in cxgb4_l2t_get() 490 if (atomic_read(&e->refcnt)) in t4_l2t_update() 538 atomic_set(&e->refcnt, 1); in t4_l2t_alloc_switching() 574 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 | 68 atomic_t refcnt; /* entry reference count */ member
|
/linux-4.1.27/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 | 86 int refcnt; member 230 if (dev->refcnt > 0) { in ubiblock_open() 258 dev->refcnt++; in ubiblock_open() 272 dev->refcnt--; in ubiblock_release() 273 if (dev->refcnt == 0) { in ubiblock_release() 482 if (dev->refcnt > 0) { in ubiblock_remove()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/usb/gadget/function/ |
D | g_zero.h | 40 int refcnt; member 55 int refcnt; member
|
D | u_ether_configfs.h | 55 if (opts->refcnt) { \ 91 if (opts->refcnt) { \ 127 if (opts->refcnt) { \
|
D | u_ecm.h | 33 int refcnt; member
|
D | u_eem.h | 33 int refcnt; member
|
D | u_ncm.h | 33 int refcnt; member
|
D | u_gether.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 | f_loopback.c | 239 opts->refcnt--; in lb_free_func() 396 lb_opts->refcnt++; in loopback_alloc() 455 if (opts->refcnt) { in f_lb_opts_qlen_store() 494 if (opts->refcnt) { in f_lb_opts_bulk_buflen_store()
|
D | f_sourcesink.c | 485 opts->refcnt--; in sourcesink_free_func() 878 ss_opts->refcnt++; in source_sink_alloc_func() 941 if (opts->refcnt) { in f_ss_opts_pattern_store() 985 if (opts->refcnt) { in f_ss_opts_isoc_interval_store() 1029 if (opts->refcnt) { in f_ss_opts_isoc_maxpacket_store() 1073 if (opts->refcnt) { in f_ss_opts_isoc_mult_store() 1117 if (opts->refcnt) { in f_ss_opts_isoc_maxburst_store() 1161 if (opts->refcnt) { in f_ss_opts_bulk_buflen_store()
|
D | u_uvc.h | 83 int refcnt; member
|
D | u_uac1.h | 74 int refcnt; member
|
D | u_fs.h | 290 unsigned refcnt; member
|
D | uvc_configfs.c | 97 if (ch->linked || opts->refcnt) { \ 593 if (opts->refcnt || class_array[0]) { in uvcg_control_class_allow_link() 634 if (opts->refcnt) { in uvcg_control_class_drop_link() 766 if (ch->linked || opts->refcnt) { in uvcg_format_bma_controls_store() 1075 if (fmt->linked || opts->refcnt) { \ 1205 if (fmt->linked || opts->refcnt) { in uvcg_frame_dw_frame_interval_store() 1384 if (ch->fmt.linked || opts->refcnt) { in uvcg_uncompressed_guid_format_store() 1469 if (u->fmt.linked || opts->refcnt) { \ 1683 if (u->fmt.linked || opts->refcnt) { \ 2139 if (!class_array || *class_array || opts->refcnt) { in uvcg_streaming_class_allow_link() [all …]
|
D | f_mass_storage.h | 94 int refcnt; member
|
D | f_uac1.c | 812 if (opts->refcnt) { \ 858 if (opts->refcnt) \ 948 --opts->refcnt; in f_audio_free() 971 ++opts->refcnt; in f_audio_alloc()
|
D | f_hid.c | 747 if (opts->refcnt) { \ 796 if (opts->refcnt) in f_hid_opts_report_desc_store() 910 --opts->refcnt; in hidg_free() 942 ++opts->refcnt; in hidg_alloc()
|
/linux-4.1.27/tools/perf/util/ |
D | cgroup.c | 118 if (cgrp->refcnt == 0) in add_cgroup() 123 cgrp->refcnt++; in add_cgroup() 134 if (--cgrp->refcnt == 0) { in close_cgroup()
|
D | cgroup.h | 9 int refcnt; member
|
D | thread.c | 87 ++thread->refcnt; in thread__get() 93 if (thread && --thread->refcnt == 0) { in thread__put()
|
D | map.h | 64 int refcnt; member 73 ++mg->refcnt; in map_groups__get()
|
D | thread.h | 24 int refcnt; member
|
D | evlist.c | 703 ++evlist->mmap[idx].refcnt; in perf_evlist__mmap_get() 708 BUG_ON(evlist->mmap[idx].refcnt == 0); in perf_evlist__mmap_put() 710 if (--evlist->mmap[idx].refcnt == 0) in perf_evlist__mmap_put() 724 if (md->refcnt == 1 && perf_mmap__empty(md)) in perf_evlist__mmap_consume() 733 evlist->mmap[idx].refcnt = 0; in __perf_evlist__munmap() 780 evlist->mmap[idx].refcnt = 2; in __perf_evlist__mmap()
|
/linux-4.1.27/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.1.27/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() 655 csdev->refcnt = refcnts; in coresight_register()
|
/linux-4.1.27/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 | 107 atomic_t refcnt; member 166 atomic_t refcnt; member
|
D | iwch_provider.c | 133 atomic_dec(&chp->refcnt); in iwch_destroy_cq() 134 wait_event(chp->wait, !atomic_read(&chp->refcnt)); in iwch_destroy_cq() 194 atomic_set(&chp->refcnt, 1); in iwch_create_cq() 874 atomic_dec(&qhp->refcnt); in iwch_destroy_qp() 875 wait_event(qhp->wait, !atomic_read(&qhp->refcnt)); in iwch_destroy_qp() 985 atomic_set(&qhp->refcnt, 1); in iwch_create_qp() 1088 atomic_inc(&(to_iwch_qp(qp)->refcnt)); in iwch_qp_add_ref() 1094 if (atomic_dec_and_test(&(to_iwch_qp(qp)->refcnt))) in iwch_qp_rem_ref()
|
/linux-4.1.27/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.1.27/drivers/gpio/ |
D | gpio-grgpio.c | 52 u8 refcnt; /* Reference counter to manage requesting/freeing of uirq */ member 263 if (uirq->refcnt == 0) { in grgpio_irq_map() 276 uirq->refcnt++; in grgpio_irq_map() 327 uirq->refcnt--; in grgpio_irq_unmap() 328 if (uirq->refcnt == 0) in grgpio_irq_unmap() 466 if (priv->uirqs[i].refcnt != 0) { in grgpio_remove()
|
/linux-4.1.27/net/netfilter/ipvs/ |
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_sed.c | 114 atomic_read(&least->refcnt), in ip_vs_sed_schedule() 124 .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() 601 cp->flags, atomic_read(&cp->refcnt), in ip_vs_bind_dest() 602 atomic_read(&dest->refcnt)); in ip_vs_bind_dest() 698 cp->flags, atomic_read(&cp->refcnt), in ip_vs_unbind_dest() 699 atomic_read(&dest->refcnt)); in ip_vs_unbind_dest() 843 atomic_read(&cp->refcnt), in ip_vs_conn_expire() 846 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_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() 616 atomic_read(&least->refcnt), in __ip_vs_lblcr_schedule() 727 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_pe_sip.c | 149 .refcnt = ATOMIC_INIT(0),
|
D | ip_vs_lblc.c | 452 atomic_read(&least->refcnt), in __ip_vs_lblc_schedule() 541 .refcnt = ATOMIC_INIT(0),
|
/linux-4.1.27/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()
|
D | blk-cgroup.h | 105 atomic_t refcnt; member 262 WARN_ON_ONCE(atomic_read(&blkg->refcnt) <= 0); in blkg_get() 263 atomic_inc(&blkg->refcnt); in blkg_get() 274 WARN_ON_ONCE(atomic_read(&blkg->refcnt) <= 0); in blkg_put() 275 if (atomic_dec_and_test(&blkg->refcnt)) in blkg_put()
|
/linux-4.1.27/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.1.27/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.1.27/include/linux/ceph/ |
D | pagelist.h | 16 atomic_t refcnt; member 33 atomic_set(&pl->refcnt, 1); in ceph_pagelist_init()
|
/linux-4.1.27/drivers/scsi/cxgbi/ |
D | libcxgbi.h | 128 struct kref refcnt; member 212 struct kref refcnt; member 364 refcnt); in cxgbi_sock_free() 377 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_put() 378 kref_put(&csk->refcnt, cxgbi_sock_free); in __cxgbi_sock_put() 386 fn, csk, atomic_read(&csk->refcnt.refcount)); in __cxgbi_sock_get() 387 kref_get(&csk->refcnt); in __cxgbi_sock_get()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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() 185 if (ask->refcnt | ask->nokey_refcnt) in alg_bind() 234 if (ask->refcnt) in alg_setsockopt() 301 if (nokey || !ask->refcnt++) in af_alg_accept()
|
D | algif_hash.c | 247 if (ask->refcnt) in hash_check_key() 259 if (!pask->refcnt++) in hash_check_key() 262 ask->refcnt = 1; in hash_check_key()
|
/linux-4.1.27/drivers/acpi/ |
D | pci_link.c | 88 int refcnt; member 518 if (link->refcnt == 0) in acpi_pci_link_allocate() 620 link->refcnt++; in acpi_pci_link_allocate_irq() 673 link->refcnt--; in acpi_pci_link_free_irq() 679 if (link->refcnt == 0) in acpi_pci_link_free_irq() 750 if (link->refcnt && link->irq.active && link->irq.initialized) in acpi_pci_link_resume()
|
/linux-4.1.27/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.1.27/kernel/bpf/ |
D | syscall.c | 61 if (atomic_dec_and_test(&map->refcnt)) { in bpf_map_put() 103 atomic_set(&map->refcnt, 1); in map_create() 418 if (atomic_dec_and_test(&prog->aux->refcnt)) { in bpf_prog_put() 467 atomic_inc(&prog->aux->refcnt); in bpf_prog_get() 518 atomic_set(&prog->aux->refcnt, 1); in bpf_prog_load()
|
/linux-4.1.27/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.1.27/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.1.27/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()
|
D | btree.c | 268 if (atomic_read(&node->refcnt)) in hfs_btree_close() 272 atomic_read(&node->refcnt)); in hfs_btree_close()
|
/linux-4.1.27/include/net/netfilter/ |
D | xt_rateest.h | 14 unsigned int refcnt; member
|
D | nf_conntrack_timeout.h | 15 atomic_t refcnt; member
|
/linux-4.1.27/include/uapi/linux/ |
D | pkt_cls.h | 133 int refcnt; member 145 int refcnt; member 153 int refcnt; \
|
/linux-4.1.27/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.1.27/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.1.27/drivers/isdn/gigaset/ |
D | ser-gigaset.c | 48 atomic_t refcnt; member 487 atomic_inc(&cs->hw.ser->refcnt); in cs_get() 493 if (atomic_dec_and_test(&cs->hw.ser->refcnt)) in cs_put() 525 atomic_set(&cs->hw.ser->refcnt, 1); in gigaset_tty_open() 583 if (!atomic_dec_and_test(&cs->hw.ser->refcnt)) in gigaset_tty_close()
|
/linux-4.1.27/arch/ia64/include/asm/sn/ |
D | tioce_provider.h | 49 u32 refcnt; member
|
/linux-4.1.27/drivers/xen/events/ |
D | events_base.c | 384 info->refcnt = -1; in xen_irq_init() 444 WARN_ON(info->refcnt > 0); in xen_free_irq() 614 if (info->refcnt > 0) { in __unbind_from_irq() 615 info->refcnt--; in __unbind_from_irq() 616 if (info->refcnt != 0) in __unbind_from_irq() 1157 WARN_ON(info->refcnt != -1); in evtchn_make_refcounted() 1159 info->refcnt = 1; in evtchn_make_refcounted() 1186 if (info->refcnt <= 0) in evtchn_get() 1189 info->refcnt++; in evtchn_get()
|
D | events_internal.h | 35 int refcnt; member
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_fcoe.h | 79 atomic_t refcnt; member
|
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.h | 75 atomic_t refcnt; member
|
/linux-4.1.27/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.1.27/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.1.27/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() 797 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.1.27/drivers/vfio/platform/ |
D | vfio_platform_private.h | 57 int refcnt; member
|
D | vfio_platform_common.c | 102 if (!(--vdev->refcnt)) { in vfio_platform_release() 122 if (!vdev->refcnt) { in vfio_platform_open() 132 vdev->refcnt++; in vfio_platform_open()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_fcoe.h | 122 atomic_t refcnt; member
|
/linux-4.1.27/drivers/block/xen-blkback/ |
D | common.h | 278 atomic_t refcnt; member 366 #define xen_blkif_get(_b) (atomic_inc(&(_b)->refcnt)) 369 if (atomic_dec_and_test(&(_b)->refcnt)) \
|
/linux-4.1.27/include/crypto/ |
D | if_alg.h | 33 unsigned int refcnt; member
|
/linux-4.1.27/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.1.27/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()
|
D | workqueue.c | 176 int refcnt; /* PL: refcnt for unbound pools */ member 203 int refcnt; /* L: reference count */ member 1077 WARN_ON_ONCE(pwq->refcnt <= 0); in get_pwq() 1078 pwq->refcnt++; in get_pwq() 1091 if (likely(--pwq->refcnt)) in put_pwq() 1406 if (unlikely(!pwq->refcnt)) { in __queue_work() 3165 pool->refcnt = 1; in init_worker_pool() 3215 if (--pool->refcnt) in put_unbound_pool() 3284 pool->refcnt++; in get_unbound_pool() 3428 pwq->refcnt = 1; in init_pwq() [all …]
|
D | cgroup.c | 1660 ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release, 0, in cgroup_setup_root() 1731 percpu_ref_exit(&root_cgrp->self.refcnt); in cgroup_setup_root() 1785 if (!percpu_ref_tryget_live(&ss->root->cgrp.self.refcnt)) { in cgroup_mount() 1840 !percpu_ref_tryget_live(&root->cgrp.self.refcnt)) { in cgroup_mount() 1917 percpu_ref_kill(&root->cgrp.self.refcnt); in cgroup_kill_sb() 4377 percpu_ref_exit(&css->refcnt); in css_free_work_fn() 4465 container_of(ref, struct cgroup_subsys_state, refcnt); in css_release() 4560 err = percpu_ref_init(&css->refcnt, css_release, 0, GFP_KERNEL); in create_css() 4600 percpu_ref_exit(&css->refcnt); in create_css() 4633 ret = percpu_ref_init(&cgrp->self.refcnt, css_release, 0, GFP_KERNEL); in cgroup_mkdir() [all …]
|
/linux-4.1.27/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 | 50 atomic_inc(&box->refcnt); in uncore_pmu_to_box() 267 atomic_set(&box->refcnt, 1); in uncore_alloc_box() 890 atomic_dec(&box->refcnt); in uncore_pci_remove() 894 WARN_ON_ONCE(atomic_read(&box->refcnt) != 1); in uncore_pci_remove() 985 if (box && atomic_dec_and_test(&box->refcnt)) in uncore_cpu_dying() 1014 atomic_inc(&exist->refcnt); in uncore_cpu_starting()
|
D | perf_event.h | 82 int refcnt; /* reference count */ member 125 int refcnt; /* per-core: #HT threads */ member 151 int refcnt; /* per-core: #HT threads */ member
|
D | perf_event_amd.c | 410 cpuc->amd_nb->refcnt++; in amd_pmu_cpu_starting() 425 if (nb->nb_id == -1 || --nb->refcnt == 0) in amd_pmu_cpu_dead()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
D | nv04_fence.c | 61 return atomic_read(&fifo->refcnt); in nv04_fence_read()
|
/linux-4.1.27/drivers/staging/vme/devices/ |
D | vme_user.c | 161 atomic_t refcnt; member 593 atomic_inc(&vma_priv->refcnt); in vme_user_vm_open() 601 if (!atomic_dec_and_test(&vma_priv->refcnt)) in vme_user_vm_close() 631 atomic_set(&vma_priv->refcnt, 1); in vme_user_master_mmap()
|
/linux-4.1.27/net/llc/ |
D | llc_core.c | 44 atomic_set(&sap->refcnt, 1); in llc_sap_alloc()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | nv04.c | 44 atomic_set(&fifo->refcnt, *(u32*)data); in nv04_sw_set_ref()
|
/linux-4.1.27/drivers/vfio/pci/ |
D | vfio_pci_private.h | 59 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() 1119 if (tmp->refcnt) in vfio_pci_try_bus_reset() 1133 if (!tmp->refcnt && !disable_idle_d3) in vfio_pci_try_bus_reset()
|
/linux-4.1.27/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() 1318 if (atomic_read(&xd->refcnt) || xd->node != (void *)xd) in jffs2_release_xattr_datum()
|
/linux-4.1.27/Documentation/ABI/stable/ |
D | sysfs-module | 28 /sys/module/MODULENAME/refcnt
|
/linux-4.1.27/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.1.27/fs/fuse/ |
D | fuse_i.h | 257 struct kref refcnt; member 273 .refcnt = { ATOMIC_INIT(1) }, \
|
/linux-4.1.27/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.1.27/drivers/misc/mei/ |
D | client.c | 37 kref_init(&me_cl->refcnt); in mei_me_cl_init() 51 if (me_cl && kref_get_unless_zero(&me_cl->refcnt)) in mei_me_cl_get() 67 container_of(ref, struct mei_me_client, refcnt); in mei_me_cl_release() 82 kref_put(&me_cl->refcnt, mei_me_cl_release); in mei_me_cl_put()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
D | fifo.h | 13 atomic_t refcnt; /* NV04_NVSW_SET_REF */ member
|
/linux-4.1.27/net/bluetooth/ |
D | hci_conn.c | 321 int refcnt = atomic_read(&conn->refcnt); in hci_conn_timeout() local 325 WARN_ON(refcnt < 0); in hci_conn_timeout() 334 if (refcnt > 0) in hci_conn_timeout() 493 atomic_set(&conn->refcnt, 0); in hci_conn_add()
|
/linux-4.1.27/net/core/ |
D | netpoll.c | 622 atomic_set(&npinfo->refcnt, 1); in __netpoll_setup() 632 atomic_inc(&npinfo->refcnt); in __netpoll_setup() 811 if (atomic_dec_and_test(&npinfo->refcnt)) { in __netpoll_cleanup()
|
/linux-4.1.27/net/ceph/ |
D | pagelist.c | 19 if (!atomic_dec_and_test(&pl->refcnt)) in ceph_pagelist_release()
|
/linux-4.1.27/net/x25/ |
D | x25_route.c | 58 atomic_set(&rt->refcnt, 1); in x25_add_route()
|