usecnt 333 drivers/gpu/drm/vc4/vc4_bo.c !refcount_read(&bo->usecnt)) { usecnt 395 drivers/gpu/drm/vc4/vc4_bo.c refcount_set(&bo->usecnt, 0); usecnt 532 drivers/gpu/drm/vc4/vc4_bo.c if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) usecnt 574 drivers/gpu/drm/vc4/vc4_bo.c refcount_set(&bo->usecnt, 0); usecnt 607 drivers/gpu/drm/vc4/vc4_bo.c if (refcount_inc_not_zero(&bo->usecnt)) usecnt 613 drivers/gpu/drm/vc4/vc4_bo.c if (!refcount_inc_not_zero(&bo->usecnt)) usecnt 614 drivers/gpu/drm/vc4/vc4_bo.c refcount_set(&bo->usecnt, 1); usecnt 641 drivers/gpu/drm/vc4/vc4_bo.c if (refcount_dec_not_one(&bo->usecnt)) usecnt 645 drivers/gpu/drm/vc4/vc4_bo.c if (refcount_dec_and_test(&bo->usecnt) && usecnt 276 drivers/gpu/drm/vc4/vc4_drv.h refcount_t usecnt; usecnt 205 drivers/gpu/drm/vc4/vc4_gem.c WARN_ON(!refcount_read(&bo->usecnt)); usecnt 206 drivers/gpu/drm/vc4/vc4_gem.c refcount_inc(&bo->usecnt); usecnt 271 drivers/gpu/drm/vc4/vc4_gem.c refcount_dec(&bo->usecnt); usecnt 1359 drivers/gpu/drm/vc4/vc4_gem.c !refcount_read(&bo->usecnt)) { usecnt 1367 drivers/gpu/drm/vc4/vc4_gem.c !refcount_read(&bo->usecnt)) { usecnt 104 drivers/hsi/clients/hsi_char.c unsigned int usecnt; usecnt 581 drivers/hsi/clients/hsi_char.c BUG_ON(cl_data->usecnt == 0); usecnt 583 drivers/hsi/clients/hsi_char.c if (--cl_data->usecnt == 0) { usecnt 609 drivers/hsi/clients/hsi_char.c if (cl_data->usecnt == 0) { usecnt 615 drivers/hsi/clients/hsi_char.c cl_data->usecnt++; usecnt 351 drivers/infiniband/core/core_priv.h atomic_set(&qp->usecnt, 0); usecnt 202 drivers/infiniband/core/cq.c atomic_set(&cq->usecnt, 0); usecnt 290 drivers/infiniband/core/cq.c if (WARN_ON_ONCE(atomic_read(&cq->usecnt))) usecnt 549 drivers/infiniband/core/nldev.c atomic_read(&cq->usecnt), RDMA_NLDEV_ATTR_PAD)) usecnt 629 drivers/infiniband/core/nldev.c atomic_read(&pd->usecnt), RDMA_NLDEV_ATTR_PAD)) usecnt 82 drivers/infiniband/core/rdma_core.c return atomic_fetch_add_unless(&uobj->usecnt, 1, -1) == -1 ? usecnt 86 drivers/infiniband/core/rdma_core.c return atomic_cmpxchg(&uobj->usecnt, 0, -1) == 0 ? 0 : -EBUSY; usecnt 99 drivers/infiniband/core/rdma_core.c WARN_ON(atomic_read(&uobj->usecnt) <= 0); usecnt 102 drivers/infiniband/core/rdma_core.c WARN_ON(atomic_read(&uobj->usecnt) != -1); usecnt 168 drivers/infiniband/core/rdma_core.c atomic_set(&uobj->usecnt, 0); usecnt 221 drivers/infiniband/core/rdma_core.c atomic_set(&uobj->usecnt, 0); usecnt 298 drivers/infiniband/core/rdma_core.c atomic_set(&uobj->usecnt, -1); usecnt 655 drivers/infiniband/core/rdma_core.c atomic_set(&uobj->usecnt, 0); usecnt 705 drivers/infiniband/core/rdma_core.c atomic_dec(&uobj->usecnt); usecnt 708 drivers/infiniband/core/rdma_core.c atomic_set(&uobj->usecnt, 0); usecnt 857 drivers/infiniband/core/rdma_core.c atomic_set(&obj->usecnt, 0); usecnt 431 drivers/infiniband/core/uverbs_cmd.c atomic_set(&pd->usecnt, 0); usecnt 613 drivers/infiniband/core/uverbs_cmd.c atomic_set(&xrcd->usecnt, 0); usecnt 631 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&xrcd->usecnt); usecnt 649 drivers/infiniband/core/uverbs_cmd.c atomic_dec(&xrcd->usecnt); usecnt 688 drivers/infiniband/core/uverbs_cmd.c if (inode && !atomic_dec_and_test(&xrcd->usecnt)) usecnt 694 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&xrcd->usecnt); usecnt 758 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 845 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 847 drivers/infiniband/core/uverbs_cmd.c atomic_dec(&old_pd->usecnt); usecnt 916 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 1031 drivers/infiniband/core/uverbs_cmd.c atomic_set(&cq->usecnt, 0); usecnt 1434 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 1436 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.send_cq->usecnt); usecnt 1438 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.recv_cq->usecnt); usecnt 1440 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.srq->usecnt); usecnt 1442 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&ind_tbl->usecnt); usecnt 2612 drivers/infiniband/core/uverbs_cmd.c atomic_dec(&uflow_res->collection[i]->usecnt); usecnt 2615 drivers/infiniband/core/uverbs_cmd.c atomic_dec(&uflow_res->counters[i]->usecnt); usecnt 2631 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&((struct ib_flow_action *)ibobj)->usecnt); usecnt 2636 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&((struct ib_counters *)ibobj)->usecnt); usecnt 2949 drivers/infiniband/core/uverbs_cmd.c atomic_set(&wq->usecnt, 0); usecnt 2950 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 2951 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&cq->usecnt); usecnt 3123 drivers/infiniband/core/uverbs_cmd.c atomic_set(&rwq_ind_tbl->usecnt, 0); usecnt 3126 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&wqs[i]->usecnt); usecnt 3322 drivers/infiniband/core/uverbs_cmd.c atomic_dec(&qp->usecnt); usecnt 3435 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.ext.cq->usecnt); usecnt 3440 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&attr.ext.xrc.xrcd->usecnt); usecnt 3443 drivers/infiniband/core/uverbs_cmd.c atomic_inc(&pd->usecnt); usecnt 3444 drivers/infiniband/core/uverbs_cmd.c atomic_set(&srq->usecnt, 0); usecnt 112 drivers/infiniband/core/uverbs_main.c atomic_dec(&pd->usecnt); usecnt 64 drivers/infiniband/core/uverbs_std_types.c atomic_dec(&qp->usecnt); usecnt 197 drivers/infiniband/core/uverbs_std_types.c ret = ib_destroy_usecnt(&pd->usecnt, why, uobject); usecnt 45 drivers/infiniband/core/uverbs_std_types_counters.c ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); usecnt 78 drivers/infiniband/core/uverbs_std_types_counters.c atomic_set(&counters->usecnt, 0); usecnt 98 drivers/infiniband/core/uverbs_std_types_counters.c if (!atomic_read(&counters->usecnt)) usecnt 125 drivers/infiniband/core/uverbs_std_types_cq.c atomic_set(&cq->usecnt, 0); usecnt 44 drivers/infiniband/core/uverbs_std_types_dm.c ret = ib_destroy_usecnt(&dm->usecnt, why, uobject); usecnt 82 drivers/infiniband/core/uverbs_std_types_dm.c atomic_set(&dm->usecnt, 0); usecnt 44 drivers/infiniband/core/uverbs_std_types_flow_action.c ret = ib_destroy_usecnt(&action->usecnt, why, uobject); usecnt 134 drivers/infiniband/core/uverbs_std_types_mr.c atomic_inc(&pd->usecnt); usecnt 135 drivers/infiniband/core/uverbs_std_types_mr.c atomic_inc(&dm->usecnt); usecnt 268 drivers/infiniband/core/verbs.c atomic_set(&pd->usecnt, 0); usecnt 340 drivers/infiniband/core/verbs.c WARN_ON(atomic_read(&pd->usecnt)); usecnt 528 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 956 drivers/infiniband/core/verbs.c atomic_dec(&pd->usecnt); usecnt 988 drivers/infiniband/core/verbs.c atomic_inc(&srq->ext.cq->usecnt); usecnt 992 drivers/infiniband/core/verbs.c atomic_inc(&srq->ext.xrc.xrcd->usecnt); usecnt 994 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 998 drivers/infiniband/core/verbs.c atomic_dec(&srq->pd->usecnt); usecnt 1000 drivers/infiniband/core/verbs.c atomic_dec(&srq->ext.xrc.xrcd->usecnt); usecnt 1002 drivers/infiniband/core/verbs.c atomic_dec(&srq->ext.cq->usecnt); usecnt 1031 drivers/infiniband/core/verbs.c if (atomic_read(&srq->usecnt)) usecnt 1036 drivers/infiniband/core/verbs.c atomic_dec(&srq->pd->usecnt); usecnt 1038 drivers/infiniband/core/verbs.c atomic_dec(&srq->ext.xrc.xrcd->usecnt); usecnt 1040 drivers/infiniband/core/verbs.c atomic_dec(&srq->ext.cq->usecnt); usecnt 1088 drivers/infiniband/core/verbs.c atomic_inc(&real_qp->usecnt); usecnt 1136 drivers/infiniband/core/verbs.c atomic_inc(&qp_init_attr->xrcd->usecnt); usecnt 1202 drivers/infiniband/core/verbs.c atomic_inc(&qp_init_attr->recv_cq->usecnt); usecnt 1205 drivers/infiniband/core/verbs.c atomic_inc(&qp_init_attr->srq->usecnt); usecnt 1211 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 1213 drivers/infiniband/core/verbs.c atomic_inc(&qp_init_attr->send_cq->usecnt); usecnt 1215 drivers/infiniband/core/verbs.c atomic_inc(&qp->rwq_ind_tbl->usecnt); usecnt 1819 drivers/infiniband/core/verbs.c atomic_dec(&real_qp->usecnt); usecnt 1839 drivers/infiniband/core/verbs.c if (atomic_read(&real_qp->usecnt) == 0) usecnt 1848 drivers/infiniband/core/verbs.c atomic_dec(&xrcd->usecnt); usecnt 1869 drivers/infiniband/core/verbs.c if (atomic_read(&qp->usecnt)) usecnt 1896 drivers/infiniband/core/verbs.c atomic_dec(&pd->usecnt); usecnt 1898 drivers/infiniband/core/verbs.c atomic_dec(&scq->usecnt); usecnt 1900 drivers/infiniband/core/verbs.c atomic_dec(&rcq->usecnt); usecnt 1902 drivers/infiniband/core/verbs.c atomic_dec(&srq->usecnt); usecnt 1904 drivers/infiniband/core/verbs.c atomic_dec(&ind_tbl->usecnt); usecnt 1937 drivers/infiniband/core/verbs.c atomic_set(&cq->usecnt, 0); usecnt 1962 drivers/infiniband/core/verbs.c if (atomic_read(&cq->usecnt)) usecnt 1991 drivers/infiniband/core/verbs.c atomic_dec(&pd->usecnt); usecnt 1993 drivers/infiniband/core/verbs.c atomic_dec(&dm->usecnt); usecnt 2031 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 2084 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 2110 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 2137 drivers/infiniband/core/verbs.c atomic_dec(&pd->usecnt); usecnt 2196 drivers/infiniband/core/verbs.c atomic_inc(&qp->usecnt); usecnt 2214 drivers/infiniband/core/verbs.c atomic_dec(&qp->usecnt); usecnt 2230 drivers/infiniband/core/verbs.c atomic_set(&xrcd->usecnt, 0); usecnt 2244 drivers/infiniband/core/verbs.c if (atomic_read(&xrcd->usecnt)) usecnt 2290 drivers/infiniband/core/verbs.c atomic_inc(&pd->usecnt); usecnt 2291 drivers/infiniband/core/verbs.c atomic_inc(&wq_attr->cq->usecnt); usecnt 2292 drivers/infiniband/core/verbs.c atomic_set(&wq->usecnt, 0); usecnt 2308 drivers/infiniband/core/verbs.c if (atomic_read(&wq->usecnt)) usecnt 2312 drivers/infiniband/core/verbs.c atomic_dec(&pd->usecnt); usecnt 2313 drivers/infiniband/core/verbs.c atomic_dec(&cq->usecnt); usecnt 2370 drivers/infiniband/core/verbs.c atomic_set(&rwq_ind_table->usecnt, 0); usecnt 2373 drivers/infiniband/core/verbs.c atomic_inc(&rwq_ind_table->ind_tbl[i]->usecnt); usecnt 2389 drivers/infiniband/core/verbs.c if (atomic_read(&rwq_ind_table->usecnt)) usecnt 2395 drivers/infiniband/core/verbs.c atomic_dec(&ind_tbl[i]->usecnt); usecnt 743 drivers/infiniband/hw/hns/hns_roce_hw_v1.c atomic_set(&free_mr->mr_free_cq->ib_cq.usecnt, 0); usecnt 760 drivers/infiniband/hw/hns/hns_roce_hw_v1.c atomic_set(&free_mr->mr_free_pd->ibpd.usecnt, 0); usecnt 809 drivers/infiniband/hw/hns/hns_roce_hw_v1.c atomic_set(&hr_qp->ibqp.usecnt, 0); usecnt 221 drivers/infiniband/hw/mlx5/flow.c ret = ib_destroy_usecnt(&obj->usecnt, why, uobject); usecnt 321 drivers/infiniband/hw/mlx5/flow.c atomic_set(&obj->usecnt, 0); usecnt 3210 drivers/infiniband/hw/mlx5/main.c atomic_read(&handler->ibcounters->usecnt) == 1) usecnt 3215 drivers/infiniband/hw/mlx5/main.c atomic_dec(&handler->flow_matcher->usecnt); usecnt 3641 drivers/infiniband/hw/mlx5/main.c atomic_read(&handler->ibcounters->usecnt) == 1) usecnt 4158 drivers/infiniband/hw/mlx5/main.c atomic_inc(&fs_matcher->usecnt); usecnt 4947 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->p0->usecnt, 0); usecnt 4960 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->c0->usecnt, 0); usecnt 4973 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->x0->usecnt, 0); usecnt 4984 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->x1->usecnt, 0); usecnt 5010 drivers/infiniband/hw/mlx5/main.c atomic_inc(&devr->s0->ext.xrc.xrcd->usecnt); usecnt 5011 drivers/infiniband/hw/mlx5/main.c atomic_inc(&devr->s0->ext.cq->usecnt); usecnt 5012 drivers/infiniband/hw/mlx5/main.c atomic_inc(&devr->p0->usecnt); usecnt 5013 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->s0->usecnt, 0); usecnt 5034 drivers/infiniband/hw/mlx5/main.c atomic_inc(&devr->p0->usecnt); usecnt 5035 drivers/infiniband/hw/mlx5/main.c atomic_set(&devr->s1->usecnt, 0); usecnt 193 drivers/infiniband/hw/mlx5/mlx5_ib.h atomic_t usecnt; usecnt 114 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c u32 usecnt; usecnt 125 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c usecnt = readl(ioc->ioc_regs.ioc_usage_reg); usecnt 130 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c if (usecnt == 0) { usecnt 156 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c usecnt++; usecnt 157 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c writel(usecnt, ioc->ioc_regs.ioc_usage_reg); usecnt 165 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c u32 usecnt; usecnt 178 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c usecnt = readl(ioc->ioc_regs.ioc_usage_reg); usecnt 179 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c BUG_ON(!(usecnt > 0)); usecnt 181 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c usecnt--; usecnt 182 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c writel(usecnt, ioc->ioc_regs.ioc_usage_reg); usecnt 182 drivers/net/wireless/intersil/hostap/hostap_hw.c if (refcount_dec_and_test(&entry->usecnt) && entry->del_req) usecnt 220 drivers/net/wireless/intersil/hostap/hostap_hw.c refcount_inc(&entry->usecnt); usecnt 342 drivers/net/wireless/intersil/hostap/hostap_hw.c refcount_set(&entry->usecnt, 1); usecnt 508 drivers/net/wireless/intersil/hostap/hostap_hw.c refcount_set(&entry->usecnt, 1); usecnt 658 drivers/net/wireless/intersil/hostap/hostap_hw.c refcount_inc(&entry->usecnt); usecnt 710 drivers/net/wireless/intersil/hostap/hostap_hw.c refcount_inc(&entry->usecnt); usecnt 562 drivers/net/wireless/intersil/hostap/hostap_wlan.h refcount_t usecnt; usecnt 56 drivers/scsi/bfa/bfa_ioc_ct.c u32 usecnt; usecnt 60 drivers/scsi/bfa/bfa_ioc_ct.c usecnt = readl(ioc->ioc_regs.ioc_usage_reg); usecnt 65 drivers/scsi/bfa/bfa_ioc_ct.c if (usecnt == 0) { usecnt 70 drivers/scsi/bfa/bfa_ioc_ct.c bfa_trc(ioc, usecnt); usecnt 89 drivers/scsi/bfa/bfa_ioc_ct.c bfa_trc(ioc, usecnt); usecnt 96 drivers/scsi/bfa/bfa_ioc_ct.c usecnt++; usecnt 97 drivers/scsi/bfa/bfa_ioc_ct.c writel(usecnt, ioc->ioc_regs.ioc_usage_reg); usecnt 100 drivers/scsi/bfa/bfa_ioc_ct.c bfa_trc(ioc, usecnt); usecnt 107 drivers/scsi/bfa/bfa_ioc_ct.c u32 usecnt; usecnt 113 drivers/scsi/bfa/bfa_ioc_ct.c usecnt = readl(ioc->ioc_regs.ioc_usage_reg); usecnt 114 drivers/scsi/bfa/bfa_ioc_ct.c WARN_ON(usecnt <= 0); usecnt 116 drivers/scsi/bfa/bfa_ioc_ct.c usecnt--; usecnt 117 drivers/scsi/bfa/bfa_ioc_ct.c writel(usecnt, ioc->ioc_regs.ioc_usage_reg); usecnt 118 drivers/scsi/bfa/bfa_ioc_ct.c bfa_trc(ioc, usecnt); usecnt 756 include/net/ip_vs.h atomic_t usecnt; /* usage counter */ usecnt 1487 include/rdma/ib_verbs.h atomic_t usecnt; /* protects exclusive access */ usecnt 1505 include/rdma/ib_verbs.h atomic_t usecnt; /* count all resources */ usecnt 1518 include/rdma/ib_verbs.h atomic_t usecnt; /* count all exposed resources */ usecnt 1549 include/rdma/ib_verbs.h atomic_t usecnt; /* count number of work queues */ usecnt 1571 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 1620 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 1656 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 1725 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 1757 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 2120 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 2224 include/rdma/ib_verbs.h atomic_t usecnt; usecnt 2874 include/rdma/ib_verbs.h static inline int ib_destroy_usecnt(atomic_t *usecnt, usecnt 2878 include/rdma/ib_verbs.h if (atomic_read(usecnt) && ib_is_destroy_retryable(-EBUSY, why, uobj)) usecnt 143 include/rdma/uverbs_std_types.h atomic_set(&action->usecnt, 0); usecnt 180 include/rdma/uverbs_std_types.h atomic_inc(&qp->usecnt); usecnt 93 net/netfilter/ipvs/ip_vs_app.c atomic_set(&inc->usecnt, 0); usecnt 154 net/netfilter/ipvs/ip_vs_app.c atomic_inc(&inc->usecnt); usecnt 164 net/netfilter/ipvs/ip_vs_app.c atomic_dec(&inc->usecnt); usecnt 585 net/netfilter/ipvs/ip_vs_app.c atomic_read(&inc->usecnt),