/linux-6.1.9/drivers/infiniband/core/ |
D | verbs.c | 539 atomic_inc(&pd->usecnt); in _rdma_create_ah() 979 atomic_dec(&pd->usecnt); in rdma_destroy_ah_user() 1026 atomic_inc(&srq->ext.cq->usecnt); in ib_create_srq_user() 1031 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user() 1033 atomic_inc(&pd->usecnt); in ib_create_srq_user() 1041 atomic_dec(&pd->usecnt); in ib_create_srq_user() 1043 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq_user() 1045 atomic_dec(&srq->ext.cq->usecnt); in ib_create_srq_user() 1078 if (atomic_read(&srq->usecnt)) in ib_destroy_srq_user() 1085 atomic_dec(&srq->pd->usecnt); in ib_destroy_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() 155 atomic_set(&uobj->usecnt, 0); in uverbs_destroy_uobject() 208 atomic_set(&uobj->usecnt, 0); in uobj_destroy() 290 atomic_set(&uobj->usecnt, -1); in alloc_uobj() 655 atomic_set(&uobj->usecnt, 0); in rdma_alloc_commit_uobject() 752 atomic_dec(&uobj->usecnt); in rdma_lookup_put_uobject() 755 atomic_set(&uobj->usecnt, 0); in rdma_lookup_put_uobject() [all …]
|
D | uverbs_std_types_counters.c | 45 if (atomic_read(&counters->usecnt)) in uverbs_free_counters() 79 atomic_set(&counters->usecnt, 0); in UVERBS_HANDLER() 100 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() 127 if (atomic_read(&pd->usecnt)) in uverbs_free_pd()
|
D | uverbs_std_types_dm.c | 43 if (atomic_read(&dm->usecnt)) in uverbs_free_dm() 80 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 | 136 atomic_inc(&pd->usecnt); in UVERBS_HANDLER() 137 atomic_inc(&dm->usecnt); in UVERBS_HANDLER() 250 atomic_inc(&pd->usecnt); in UVERBS_HANDLER()
|
D | uverbs_std_types_flow_action.c | 43 if (atomic_read(&action->usecnt)) in uverbs_free_flow_action()
|
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() 685 atomic_inc(&xrcd->usecnt); in ib_uverbs_dealloc_xrcd() 740 atomic_inc(&pd->usecnt); in ib_uverbs_reg_mr() 842 atomic_inc(&new_pd->usecnt); in ib_uverbs_rereg_mr() 861 atomic_dec(&orig_pd->usecnt); in ib_uverbs_rereg_mr() 863 atomic_inc(&new_pd->usecnt); in ib_uverbs_rereg_mr() 947 atomic_inc(&pd->usecnt); in ib_uverbs_alloc_mw() 1049 atomic_set(&cq->usecnt, 0); in create_cq() [all …]
|
D | cq.c | 230 atomic_set(&cq->usecnt, 0); in __ib_alloc_cq() 322 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()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/vc4/ |
D | vc4_bo.c | 344 !refcount_read(&bo->usecnt)) { in vc4_bo_userspace_cache_purge() 407 refcount_set(&bo->usecnt, 0); in vc4_create_object() 552 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) in vc4_free_object() 594 refcount_set(&bo->usecnt, 0); in vc4_free_object() 631 if (refcount_inc_not_zero(&bo->usecnt)) in vc4_bo_inc_usecnt() 637 if (!refcount_inc_not_zero(&bo->usecnt)) in vc4_bo_inc_usecnt() 638 refcount_set(&bo->usecnt, 1); in vc4_bo_inc_usecnt() 670 if (refcount_dec_not_one(&bo->usecnt)) in vc4_bo_dec_usecnt() 674 if (refcount_dec_and_test(&bo->usecnt) && in vc4_bo_dec_usecnt()
|
D | vc4_gem.c | 208 WARN_ON(!refcount_read(&bo->usecnt)); in vc4_save_hang_state() 209 refcount_inc(&bo->usecnt); in vc4_save_hang_state() 274 refcount_dec(&bo->usecnt); in vc4_save_hang_state() 1413 !refcount_read(&bo->usecnt)) { in vc4_gem_madvise_ioctl() 1421 !refcount_read(&bo->usecnt)) { in vc4_gem_madvise_ioctl()
|
D | vc4_drv.h | 281 refcount_t usecnt; member
|
/linux-6.1.9/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 | 1525 atomic_t usecnt; /* protects exclusive access */ member 1543 atomic_t usecnt; /* count all resources */ member 1556 atomic_t usecnt; /* count all exposed resources */ member 1589 atomic_t usecnt; /* count number of work queues */ member 1619 atomic_t usecnt; member 1677 atomic_t usecnt; member 1714 atomic_t usecnt; member 1783 atomic_t usecnt; member 1815 atomic_t usecnt; member 2159 atomic_t usecnt; member [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | fs.c | 660 atomic_dec(&handler->flow_matcher->usecnt); in mlx5_ib_destroy_flow() 1673 atomic_inc(&fs_matcher->usecnt); in raw_fs_rule_add() 2022 if (atomic_read(&obj->usecnt)) in flow_matcher_cleanup() 2035 if (atomic_read(&obj->usecnt)) in steering_anchor_cleanup() 2142 atomic_set(&obj->usecnt, 0); in UVERBS_HANDLER() 2205 atomic_set(&obj->usecnt, 0); in UVERBS_HANDLER()
|
D | mlx5_ib.h | 258 atomic_t usecnt; member 265 atomic_t usecnt; member
|
D | counters.c | 818 if (!counters || atomic_read(&counters->usecnt) != 1) in mlx5_ib_counters_clear_description()
|
/linux-6.1.9/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()
|
D | hostap_wlan.h | 564 refcount_t usecnt; member
|