Lines Matching refs:usecnt
151 atomic_set(&pd->usecnt, 0); in ib_alloc_pd()
160 if (atomic_read(&pd->usecnt)) in ib_dealloc_pd()
179 atomic_inc(&pd->usecnt); in ib_create_ah()
256 atomic_dec(&pd->usecnt); in ib_destroy_ah()
284 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq()
285 atomic_inc(&srq->ext.xrc.cq->usecnt); in ib_create_srq()
287 atomic_inc(&pd->usecnt); in ib_create_srq()
288 atomic_set(&srq->usecnt, 0); in ib_create_srq()
321 if (atomic_read(&srq->usecnt)) in ib_destroy_srq()
333 atomic_dec(&pd->usecnt); in ib_destroy_srq()
335 atomic_dec(&xrcd->usecnt); in ib_destroy_srq()
336 atomic_dec(&cq->usecnt); in ib_destroy_srq()
373 atomic_inc(&real_qp->usecnt); in __ib_open_qp()
424 atomic_set(&qp->usecnt, 0); in ib_create_qp()
432 atomic_inc(&qp_init_attr->xrcd->usecnt); in ib_create_qp()
450 atomic_inc(&qp_init_attr->recv_cq->usecnt); in ib_create_qp()
453 atomic_inc(&qp_init_attr->srq->usecnt); in ib_create_qp()
460 atomic_inc(&pd->usecnt); in ib_create_qp()
461 atomic_inc(&qp_init_attr->send_cq->usecnt); in ib_create_qp()
835 atomic_dec(&real_qp->usecnt); in ib_close_qp()
853 if (atomic_read(&real_qp->usecnt) == 0) in __ib_destroy_shared_qp()
862 atomic_dec(&xrcd->usecnt); in __ib_destroy_shared_qp()
877 if (atomic_read(&qp->usecnt)) in ib_destroy_qp()
891 atomic_dec(&pd->usecnt); in ib_destroy_qp()
893 atomic_dec(&scq->usecnt); in ib_destroy_qp()
895 atomic_dec(&rcq->usecnt); in ib_destroy_qp()
897 atomic_dec(&srq->usecnt); in ib_destroy_qp()
921 atomic_set(&cq->usecnt, 0); in ib_create_cq()
937 if (atomic_read(&cq->usecnt)) in ib_destroy_cq()
963 atomic_inc(&pd->usecnt); in ib_get_dma_mr()
964 atomic_set(&mr->usecnt, 0); in ib_get_dma_mr()
989 atomic_inc(&pd->usecnt); in ib_reg_phys_mr()
990 atomic_set(&mr->usecnt, 0); in ib_reg_phys_mr()
1011 if (atomic_read(&mr->usecnt)) in ib_rereg_phys_mr()
1021 atomic_dec(&old_pd->usecnt); in ib_rereg_phys_mr()
1022 atomic_inc(&pd->usecnt); in ib_rereg_phys_mr()
1041 if (atomic_read(&mr->usecnt)) in ib_dereg_mr()
1047 atomic_dec(&pd->usecnt); in ib_dereg_mr()
1066 atomic_inc(&pd->usecnt); in ib_alloc_fast_reg_mr()
1067 atomic_set(&mr->usecnt, 0); in ib_alloc_fast_reg_mr()
1113 atomic_inc(&pd->usecnt); in ib_alloc_mw()
1128 atomic_dec(&pd->usecnt); in ib_dealloc_mw()
1149 atomic_inc(&pd->usecnt); in ib_alloc_fmr()
1176 atomic_dec(&pd->usecnt); in ib_dealloc_fmr()
1217 atomic_set(&xrcd->usecnt, 0); in ib_alloc_xrcd()
1231 if (atomic_read(&xrcd->usecnt)) in ib_dealloc_xrcd()