Lines Matching refs:ref_count
58 int ref_count; member
66 int ref_count; member
116 atomic_t ref_count; member
145 atomic_t ref_count; member
181 atomic_t ref_count; member
194 atomic_t ref_count; member
986 atomic_set(&ret->ref_count, 0); in alloc_qp_tr()
1002 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr()
1046 atomic_set(&ret->ref_count, 0); in alloc_cq_tr()
1061 atomic_set(&ret->ref_count, 0); in alloc_srq_tr()
1261 if (res->com.state == RES_QP_BUSY || atomic_read(&res->ref_count) || in remove_qp_ok()
1264 res->com.state, atomic_read(&res->ref_count)); in remove_qp_ok()
1276 atomic_read(&res->ref_count)) { in remove_mtt_ok()
1280 atomic_read(&res->ref_count)); in remove_mtt_ok()
1610 else if (atomic_read(&r->ref_count)) in cq_res_start_move_to()
1650 else if (atomic_read(&r->ref_count)) in srq_res_start_move_to()
1956 ++res->ref_count; in mac_add_to_slave()
1971 res->ref_count = 1; in mac_add_to_slave()
1988 if (!--res->ref_count) { in mac_del_from_slave()
2010 for (i = 0; i < res->ref_count; i++) in rem_slave_macs()
2063 ++res->ref_count; in vlan_add_to_slave()
2078 res->ref_count = 1; in vlan_add_to_slave()
2096 if (!--res->ref_count) { in vlan_del_from_slave()
2119 for (i = 0; i < res->ref_count; i++) in rem_slave_vlans()
2744 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_MPT_wrapper()
2781 atomic_dec(&mpt->mtt->ref_count); in mlx4_HW2SW_MPT_wrapper()
2943 atomic_inc(&mtt->ref_count); in mlx4_RST2INIT_QP_wrapper()
2945 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2947 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2954 atomic_inc(&srq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3046 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_EQ_wrapper()
3243 atomic_dec(&eq->mtt->ref_count); in mlx4_HW2SW_EQ_wrapper()
3378 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_CQ_wrapper()
3407 atomic_dec(&cq->mtt->ref_count); in mlx4_HW2SW_CQ_wrapper()
3472 atomic_dec(&orig_mtt->ref_count); in handle_resize()
3474 atomic_inc(&mtt->ref_count); in handle_resize()
3560 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_SRQ_wrapper()
3590 atomic_dec(&srq->mtt->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3592 atomic_dec(&srq->cq->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3923 atomic_dec(&qp->mtt->ref_count); in mlx4_2RST_QP_wrapper()
3924 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
3925 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
3927 atomic_dec(&qp->srq->ref_count); in mlx4_2RST_QP_wrapper()
4372 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4411 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4573 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
4574 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()
4575 atomic_dec(&qp->mtt->ref_count); in rem_slave_qps()
4577 atomic_dec(&qp->srq->ref_count); in rem_slave_qps()
4640 atomic_dec(&srq->mtt->ref_count); in rem_slave_srqs()
4642 atomic_dec(&srq->cq->ref_count); in rem_slave_srqs()
4678 if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { in rem_slave_cqs()
4705 atomic_dec(&cq->mtt->ref_count); in rem_slave_cqs()
4774 atomic_dec(&mpt->mtt->ref_count); in rem_slave_mrs()
4934 atomic_dec(&eq->mtt->ref_count); in rem_slave_eqs()