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
875 atomic_set(&ret->ref_count, 0); in alloc_qp_tr()
891 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr()
935 atomic_set(&ret->ref_count, 0); in alloc_cq_tr()
950 atomic_set(&ret->ref_count, 0); in alloc_srq_tr()
1100 if (res->com.state == RES_QP_BUSY || atomic_read(&res->ref_count) || in remove_qp_ok()
1103 res->com.state, atomic_read(&res->ref_count)); in remove_qp_ok()
1115 atomic_read(&res->ref_count)) { in remove_mtt_ok()
1119 atomic_read(&res->ref_count)); in remove_mtt_ok()
1449 else if (atomic_read(&r->ref_count)) in cq_res_start_move_to()
1489 else if (atomic_read(&r->ref_count)) in srq_res_start_move_to()
1795 ++res->ref_count; in mac_add_to_slave()
1810 res->ref_count = 1; in mac_add_to_slave()
1827 if (!--res->ref_count) { in mac_del_from_slave()
1849 for (i = 0; i < res->ref_count; i++) in rem_slave_macs()
1902 ++res->ref_count; in vlan_add_to_slave()
1917 res->ref_count = 1; in vlan_add_to_slave()
1935 if (!--res->ref_count) { in vlan_del_from_slave()
1958 for (i = 0; i < res->ref_count; i++) in rem_slave_vlans()
2580 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_MPT_wrapper()
2617 atomic_dec(&mpt->mtt->ref_count); in mlx4_HW2SW_MPT_wrapper()
2771 atomic_inc(&mtt->ref_count); in mlx4_RST2INIT_QP_wrapper()
2773 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2775 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2782 atomic_inc(&srq->ref_count); in mlx4_RST2INIT_QP_wrapper()
2874 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_EQ_wrapper()
3070 atomic_dec(&eq->mtt->ref_count); in mlx4_HW2SW_EQ_wrapper()
3205 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_CQ_wrapper()
3234 atomic_dec(&cq->mtt->ref_count); in mlx4_HW2SW_CQ_wrapper()
3299 atomic_dec(&orig_mtt->ref_count); in handle_resize()
3301 atomic_inc(&mtt->ref_count); in handle_resize()
3387 atomic_inc(&mtt->ref_count); in mlx4_SW2HW_SRQ_wrapper()
3417 atomic_dec(&srq->mtt->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3419 atomic_dec(&srq->cq->ref_count); in mlx4_HW2SW_SRQ_wrapper()
3749 atomic_dec(&qp->mtt->ref_count); in mlx4_2RST_QP_wrapper()
3750 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
3751 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
3753 atomic_dec(&qp->srq->ref_count); in mlx4_2RST_QP_wrapper()
4162 atomic_inc(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4201 atomic_dec(&rqp->ref_count); in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
4363 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
4364 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()
4365 atomic_dec(&qp->mtt->ref_count); in rem_slave_qps()
4367 atomic_dec(&qp->srq->ref_count); in rem_slave_qps()
4430 atomic_dec(&srq->mtt->ref_count); in rem_slave_srqs()
4432 atomic_dec(&srq->cq->ref_count); in rem_slave_srqs()
4468 if (cq->com.owner == slave && !atomic_read(&cq->ref_count)) { in rem_slave_cqs()
4495 atomic_dec(&cq->mtt->ref_count); in rem_slave_cqs()
4564 atomic_dec(&mpt->mtt->ref_count); in rem_slave_mrs()
4724 atomic_dec(&eq->mtt->ref_count); in rem_slave_eqs()