/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | verbs.c | 272 atomic_set(&pd->usecnt, 0); in __ib_alloc_pd() 345 WARN_ON(atomic_read(&pd->usecnt)); in ib_dealloc_pd_user() 542 atomic_inc(&pd->usecnt); in _rdma_create_ah() 982 atomic_dec(&pd->usecnt); in rdma_destroy_ah_user() 1029 atomic_inc(&srq->ext.cq->usecnt); in ib_create_srq_user() 1033 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user() 1035 atomic_inc(&pd->usecnt); in ib_create_srq_user() 1039 atomic_dec(&srq->pd->usecnt); in ib_create_srq_user() 1041 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user() 1043 atomic_dec(&srq->ext.cq->usecnt); in ib_create_srq_user() [all …]
|
D | rdma_core.c | 77 return atomic_fetch_add_unless(&uobj->usecnt, 1, -1) == -1 ? in uverbs_try_lock_object() 81 return atomic_cmpxchg(&uobj->usecnt, 0, -1) == 0 ? 0 : -EBUSY; in uverbs_try_lock_object() 94 WARN_ON(atomic_read(&uobj->usecnt) <= 0); in assert_uverbs_usecnt() 97 WARN_ON(atomic_read(&uobj->usecnt) != -1); in assert_uverbs_usecnt() 161 atomic_set(&uobj->usecnt, 0); in uverbs_destroy_uobject() 214 atomic_set(&uobj->usecnt, 0); in uobj_destroy() 296 atomic_set(&uobj->usecnt, -1); in alloc_uobj() 648 atomic_set(&uobj->usecnt, 0); in rdma_alloc_commit_uobject() 716 atomic_dec(&uobj->usecnt); in rdma_lookup_put_uobject() 719 atomic_set(&uobj->usecnt, 0); in rdma_lookup_put_uobject() [all …]
|
D | uverbs_std_types_counters.c | 45 ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); in uverbs_free_counters() 80 atomic_set(&counters->usecnt, 0); in UVERBS_HANDLER() 101 if (!atomic_read(&counters->usecnt)) in UVERBS_HANDLER()
|
D | uverbs_std_types.c | 64 atomic_dec(&qp->usecnt); in uverbs_free_flow() 87 if (atomic_read(&rwq_ind_tbl->usecnt)) in uverbs_free_rwq_ind_tbl() 95 atomic_dec(&ind_tbl[i]->usecnt); in uverbs_free_rwq_ind_tbl() 129 ret = ib_destroy_usecnt(&pd->usecnt, why, uobject); in uverbs_free_pd()
|
D | uverbs_std_types_qp.c | 263 atomic_inc(&pd->usecnt); in UVERBS_HANDLER() 265 atomic_inc(&attr.send_cq->usecnt); in UVERBS_HANDLER() 267 atomic_inc(&attr.recv_cq->usecnt); in UVERBS_HANDLER() 269 atomic_inc(&attr.srq->usecnt); in UVERBS_HANDLER() 271 atomic_inc(&attr.rwq_ind_tbl->usecnt); in UVERBS_HANDLER()
|
D | uverbs_std_types_dm.c | 44 ret = ib_destroy_usecnt(&dm->usecnt, why, uobject); in uverbs_free_dm() 82 atomic_set(&dm->usecnt, 0); in UVERBS_HANDLER()
|
D | uverbs_std_types_wq.c | 86 atomic_set(&wq->usecnt, 0); in UVERBS_HANDLER() 87 atomic_inc(&pd->usecnt); in UVERBS_HANDLER() 88 atomic_inc(&cq->usecnt); in UVERBS_HANDLER()
|
D | uverbs_std_types_mr.c | 135 atomic_inc(&pd->usecnt); in UVERBS_HANDLER() 136 atomic_inc(&dm->usecnt); in UVERBS_HANDLER()
|
D | uverbs_cmd.c | 444 atomic_set(&pd->usecnt, 0); in ib_uverbs_alloc_pd() 632 atomic_inc(&xrcd->usecnt); in ib_uverbs_open_xrcd() 680 if (inode && !atomic_dec_and_test(&xrcd->usecnt)) in ib_uverbs_dealloc_xrcd() 686 atomic_inc(&xrcd->usecnt); in ib_uverbs_dealloc_xrcd() 750 atomic_inc(&pd->usecnt); in ib_uverbs_reg_mr() 830 atomic_inc(&pd->usecnt); in ib_uverbs_rereg_mr() 832 atomic_dec(&old_pd->usecnt); in ib_uverbs_rereg_mr() 910 atomic_inc(&pd->usecnt); in ib_uverbs_alloc_mw() 1012 atomic_set(&cq->usecnt, 0); in create_cq() 1417 atomic_inc(&pd->usecnt); in create_qp() [all …]
|
D | cq.c | 231 atomic_set(&cq->usecnt, 0); in __ib_alloc_cq() 323 if (WARN_ON_ONCE(atomic_read(&cq->usecnt))) in ib_free_cq()
|
D | uverbs_std_types_cq.c | 126 atomic_set(&cq->usecnt, 0); in UVERBS_HANDLER()
|
D | uverbs_std_types_flow_action.c | 44 ret = ib_destroy_usecnt(&action->usecnt, why, uobject); in uverbs_free_flow_action()
|
D | core_priv.h | 351 atomic_set(&qp->usecnt, 0); in _ib_create_qp()
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
D | bfa_ioc_ct.c | 56 u32 usecnt; in bfa_ioc_ct_firmware_lock() local 60 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock() 65 if (usecnt == 0) { in bfa_ioc_ct_firmware_lock() 70 bfa_trc(ioc, usecnt); in bfa_ioc_ct_firmware_lock() 89 bfa_trc(ioc, usecnt); in bfa_ioc_ct_firmware_lock() 96 usecnt++; in bfa_ioc_ct_firmware_lock() 97 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock() 100 bfa_trc(ioc, usecnt); in bfa_ioc_ct_firmware_lock() 107 u32 usecnt; in bfa_ioc_ct_firmware_unlock() local 113 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_unlock() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc_ct.c | 114 u32 usecnt; in bfa_ioc_ct_firmware_lock() local 125 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock() 130 if (usecnt == 0) { in bfa_ioc_ct_firmware_lock() 156 usecnt++; in bfa_ioc_ct_firmware_lock() 157 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock() 165 u32 usecnt; in bfa_ioc_ct_firmware_unlock() local 178 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_unlock() 179 BUG_ON(!(usecnt > 0)); in bfa_ioc_ct_firmware_unlock() 181 usecnt--; in bfa_ioc_ct_firmware_unlock() 182 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_unlock()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_bo.c | 333 !refcount_read(&bo->usecnt)) { in vc4_bo_userspace_cache_purge() 395 refcount_set(&bo->usecnt, 0); in vc4_create_object() 532 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) in vc4_free_object() 574 refcount_set(&bo->usecnt, 0); in vc4_free_object() 607 if (refcount_inc_not_zero(&bo->usecnt)) in vc4_bo_inc_usecnt() 613 if (!refcount_inc_not_zero(&bo->usecnt)) in vc4_bo_inc_usecnt() 614 refcount_set(&bo->usecnt, 1); in vc4_bo_inc_usecnt() 641 if (refcount_dec_not_one(&bo->usecnt)) in vc4_bo_dec_usecnt() 645 if (refcount_dec_and_test(&bo->usecnt) && in vc4_bo_dec_usecnt()
|
D | vc4_gem.c | 205 WARN_ON(!refcount_read(&bo->usecnt)); in vc4_save_hang_state() 206 refcount_inc(&bo->usecnt); in vc4_save_hang_state() 271 refcount_dec(&bo->usecnt); in vc4_save_hang_state() 1359 !refcount_read(&bo->usecnt)) { in vc4_gem_madvise_ioctl() 1367 !refcount_read(&bo->usecnt)) { in vc4_gem_madvise_ioctl()
|
D | vc4_drv.h | 282 refcount_t usecnt; member
|
/kernel/linux/linux-5.10/include/rdma/ |
D | uverbs_std_types.h | 119 atomic_set(&action->usecnt, 0); in uverbs_flow_action_fill_action() 156 atomic_inc(&qp->usecnt); in ib_set_flow()
|
D | ib_verbs.h | 1505 atomic_t usecnt; /* protects exclusive access */ member 1523 atomic_t usecnt; /* count all resources */ member 1536 atomic_t usecnt; /* count all exposed resources */ member 1569 atomic_t usecnt; /* count number of work queues */ member 1599 atomic_t usecnt; member 1648 atomic_t usecnt; member 1685 atomic_t usecnt; member 1754 atomic_t usecnt; member 1786 atomic_t usecnt; member 2130 atomic_t usecnt; member [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
D | ip_vs_app.c | 93 atomic_set(&inc->usecnt, 0); in ip_vs_app_inc_new() 154 atomic_inc(&inc->usecnt); in ip_vs_app_inc_get() 164 atomic_dec(&inc->usecnt); in ip_vs_app_inc_put() 585 atomic_read(&inc->usecnt), in ip_vs_app_seq_show()
|
/kernel/linux/linux-5.10/drivers/hsi/clients/ |
D | hsi_char.c | 104 unsigned int usecnt; member 581 BUG_ON(cl_data->usecnt == 0); in __hsc_port_release() 583 if (--cl_data->usecnt == 0) { in __hsc_port_release() 609 if (cl_data->usecnt == 0) { in hsc_open() 615 cl_data->usecnt++; in hsc_open()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/ |
D | hostap_hw.c | 182 if (refcount_dec_and_test(&entry->usecnt) && entry->del_req) in __hostap_cmd_queue_free() 220 refcount_inc(&entry->usecnt); in prism2_clear_cmd_queue() 336 refcount_set(&entry->usecnt, 1); in hfa384x_cmd() 502 refcount_set(&entry->usecnt, 1); in hfa384x_cmd_callback() 652 refcount_inc(&entry->usecnt); in prism2_cmd_ev() 704 refcount_inc(&entry->usecnt); in prism2_cmd_ev()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | fs.c | 717 atomic_dec(&handler->flow_matcher->usecnt); in mlx5_ib_destroy_flow() 1541 atomic_inc(&fs_matcher->usecnt); in raw_fs_rule_add() 2041 ret = ib_destroy_usecnt(&obj->usecnt, why, uobject); in flow_matcher_cleanup() 2148 atomic_set(&obj->usecnt, 0); in UVERBS_HANDLER()
|
D | main.c | 3048 atomic_set(&devr->p0->usecnt, 0); in mlx5_ib_dev_res_init() 3061 atomic_set(&devr->c0->usecnt, 0); in mlx5_ib_dev_res_init() 3095 atomic_inc(&devr->s0->ext.cq->usecnt); in mlx5_ib_dev_res_init() 3096 atomic_inc(&devr->p0->usecnt); in mlx5_ib_dev_res_init() 3097 atomic_set(&devr->s0->usecnt, 0); in mlx5_ib_dev_res_init() 3118 atomic_inc(&devr->p0->usecnt); in mlx5_ib_dev_res_init() 3119 atomic_set(&devr->s1->usecnt, 0); in mlx5_ib_dev_res_init()
|