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()
2821 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_MPT_wrapper()
2858 atomic_dec(&mpt->mtt->ref_count); in mlx4_HW2SW_MPT_wrapper()
3020 atomic_inc(&mtt->ref_count); in mlx4_RST2INIT_QP_wrapper()
3022 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3024 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3031 atomic_inc(&srq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3126 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_EQ_wrapper()
3323 atomic_dec(&eq->mtt->ref_count); in mlx4_HW2SW_EQ_wrapper()
3458 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_CQ_wrapper()
3487 atomic_dec(&cq->mtt->ref_count); in mlx4_HW2SW_CQ_wrapper()
3552 atomic_dec(&orig_mtt->ref_count); in handle_resize()
3554 atomic_inc(&mtt->ref_count); in handle_resize()
3640 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_SRQ_wrapper()
3670 atomic_dec(&srq->mtt->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3672 atomic_dec(&srq->cq->ref_count); in mlx4_HW2SW_SRQ_wrapper()
4001 atomic_dec(&qp->mtt->ref_count); in mlx4_2RST_QP_wrapper()
4002 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
4003 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
4005 atomic_dec(&qp->srq->ref_count); in mlx4_2RST_QP_wrapper()
4469 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4553 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4715 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
4716 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()
4717 atomic_dec(&qp->mtt->ref_count); in rem_slave_qps()
4719 atomic_dec(&qp->srq->ref_count); in rem_slave_qps()
4781 atomic_dec(&srq->mtt->ref_count); in rem_slave_srqs()
4783 atomic_dec(&srq->cq->ref_count); in rem_slave_srqs()
4818 if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { in rem_slave_cqs()
4845 atomic_dec(&cq->mtt->ref_count); in rem_slave_cqs()
4913 atomic_dec(&mpt->mtt->ref_count); in rem_slave_mrs()
5157 atomic_dec(&eq->mtt->ref_count); in rem_slave_eqs()