Lines Matching refs:ref_count
55 int ref_count; member
63 int ref_count; member
113 atomic_t ref_count; member
142 atomic_t ref_count; member
178 atomic_t ref_count; member
191 atomic_t ref_count; member
832 atomic_set(&ret->ref_count, 0); in alloc_qp_tr()
848 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr()
892 atomic_set(&ret->ref_count, 0); in alloc_cq_tr()
907 atomic_set(&ret->ref_count, 0); in alloc_srq_tr()
1059 if (res->com.state == RES_QP_BUSY || atomic_read(&res->ref_count) || in remove_qp_ok()
1062 res->com.state, atomic_read(&res->ref_count)); in remove_qp_ok()
1074 atomic_read(&res->ref_count)) { in remove_mtt_ok()
1078 atomic_read(&res->ref_count)); in remove_mtt_ok()
1414 else if (atomic_read(&r->ref_count)) in cq_res_start_move_to()
1468 else if (atomic_read(&r->ref_count)) in srq_res_start_move_to()
1778 ++res->ref_count; in mac_add_to_slave()
1793 res->ref_count = 1; in mac_add_to_slave()
1811 if (!--res->ref_count) { in mac_del_from_slave()
1833 for (i = 0; i < res->ref_count; i++) in rem_slave_macs()
1881 ++res->ref_count; in vlan_add_to_slave()
1896 res->ref_count = 1; in vlan_add_to_slave()
1914 if (!--res->ref_count) { in vlan_del_from_slave()
1937 for (i = 0; i < res->ref_count; i++) in rem_slave_vlans()
2532 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_MPT_wrapper()
2569 atomic_dec(&mpt->mtt->ref_count); in mlx4_HW2SW_MPT_wrapper()
2701 atomic_inc(&mtt->ref_count); in mlx4_RST2INIT_QP_wrapper()
2703 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2705 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2712 atomic_inc(&srq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2804 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_EQ_wrapper()
2959 atomic_dec(&eq->mtt->ref_count); in mlx4_HW2SW_EQ_wrapper()
3094 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_CQ_wrapper()
3123 atomic_dec(&cq->mtt->ref_count); in mlx4_HW2SW_CQ_wrapper()
3188 atomic_dec(&orig_mtt->ref_count); in handle_resize()
3190 atomic_inc(&mtt->ref_count); in handle_resize()
3276 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_SRQ_wrapper()
3306 atomic_dec(&srq->mtt->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3308 atomic_dec(&srq->cq->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3591 atomic_dec(&qp->mtt->ref_count); in mlx4_2RST_QP_wrapper()
3592 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
3593 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
3595 atomic_dec(&qp->srq->ref_count); in mlx4_2RST_QP_wrapper()
3910 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
3945 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4111 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
4112 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()
4113 atomic_dec(&qp->mtt->ref_count); in rem_slave_qps()
4115 atomic_dec(&qp->srq->ref_count); in rem_slave_qps()
4180 atomic_dec(&srq->mtt->ref_count); in rem_slave_srqs()
4182 atomic_dec(&srq->cq->ref_count); in rem_slave_srqs()
4218 if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { in rem_slave_cqs()
4247 atomic_dec(&cq->mtt->ref_count); in rem_slave_cqs()
4318 atomic_dec(&mpt->mtt->ref_count); in rem_slave_mrs()
4487 atomic_dec(&eq->mtt->ref_count); in rem_slave_eqs()