Lines Matching refs:ref_count
58 int ref_count; member
66 int ref_count; member
117 atomic_t ref_count; member
146 atomic_t ref_count; member
182 atomic_t ref_count; member
195 atomic_t ref_count; member
1063 atomic_set(&ret->ref_count, 0); in alloc_qp_tr()
1079 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr()
1123 atomic_set(&ret->ref_count, 0); in alloc_cq_tr()
1138 atomic_set(&ret->ref_count, 0); in alloc_srq_tr()
1338 if (res->com.state == RES_QP_BUSY || atomic_read(&res->ref_count) || in remove_qp_ok()
1341 res->com.state, atomic_read(&res->ref_count)); in remove_qp_ok()
1353 atomic_read(&res->ref_count)) { in remove_mtt_ok()
1357 atomic_read(&res->ref_count)); in remove_mtt_ok()
1688 else if (atomic_read(&r->ref_count)) in cq_res_start_move_to()
1728 else if (atomic_read(&r->ref_count)) in srq_res_start_move_to()
2034 ++res->ref_count; in mac_add_to_slave()
2049 res->ref_count = 1; in mac_add_to_slave()
2066 if (!--res->ref_count) { in mac_del_from_slave()
2088 for (i = 0; i < res->ref_count; i++) in rem_slave_macs()
2141 ++res->ref_count; in vlan_add_to_slave()
2156 res->ref_count = 1; in vlan_add_to_slave()
2174 if (!--res->ref_count) { in vlan_del_from_slave()
2197 for (i = 0; i < res->ref_count; i++) in rem_slave_vlans()
2822 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_MPT_wrapper()
2859 atomic_dec(&mpt->mtt->ref_count); in mlx4_HW2SW_MPT_wrapper()
3021 atomic_inc(&mtt->ref_count); in mlx4_RST2INIT_QP_wrapper()
3023 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3025 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3032 atomic_inc(&srq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3127 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_EQ_wrapper()
3324 atomic_dec(&eq->mtt->ref_count); in mlx4_HW2SW_EQ_wrapper()
3459 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_CQ_wrapper()
3488 atomic_dec(&cq->mtt->ref_count); in mlx4_HW2SW_CQ_wrapper()
3553 atomic_dec(&orig_mtt->ref_count); in handle_resize()
3555 atomic_inc(&mtt->ref_count); in handle_resize()
3641 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_SRQ_wrapper()
3671 atomic_dec(&srq->mtt->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3673 atomic_dec(&srq->cq->ref_count); in mlx4_HW2SW_SRQ_wrapper()
4002 atomic_dec(&qp->mtt->ref_count); in mlx4_2RST_QP_wrapper()
4003 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
4004 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
4006 atomic_dec(&qp->srq->ref_count); in mlx4_2RST_QP_wrapper()
4470 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4554 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4716 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
4717 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()
4718 atomic_dec(&qp->mtt->ref_count); in rem_slave_qps()
4720 atomic_dec(&qp->srq->ref_count); in rem_slave_qps()
4782 atomic_dec(&srq->mtt->ref_count); in rem_slave_srqs()
4784 atomic_dec(&srq->cq->ref_count); in rem_slave_srqs()
4819 if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { in rem_slave_cqs()
4846 atomic_dec(&cq->mtt->ref_count); in rem_slave_cqs()
4914 atomic_dec(&mpt->mtt->ref_count); in rem_slave_mrs()
5159 atomic_dec(&eq->mtt->ref_count); in rem_slave_eqs()