Lines Matching refs:ibwq

56 static int _mlx4_ib_modify_wq(struct ib_wq *ibwq, enum ib_wq_state new_state,
1379 to_mcq(qp->ibwq.cq); in get_cqs()
1393 struct ib_wq *ibwq = qp->ibqp.rwq_ind_tbl->ind_tbl[i]; in destroy_qp_rss() local
1394 struct mlx4_ib_qp *wq = to_mqp((struct ib_qp *)ibwq); in destroy_qp_rss()
2036 struct ib_wq *ibwq = ind_tbl->ind_tbl[i]; in bringup_rss_rwqs() local
2037 struct mlx4_ib_qp *wq = to_mqp((struct ib_qp *)ibwq); in bringup_rss_rwqs()
2053 if ((wq->rss_usecnt == 0) && (ibwq->state == IB_WQS_RDY)) { in bringup_rss_rwqs()
2054 err = _mlx4_ib_modify_wq(ibwq, IB_WQS_RDY, udata); in bringup_rss_rwqs()
2069 struct ib_wq *ibwq = ind_tbl->ind_tbl[j]; in bringup_rss_rwqs() local
2070 struct mlx4_ib_qp *wq = to_mqp((struct ib_qp *)ibwq); in bringup_rss_rwqs()
2075 (ibwq->state == IB_WQS_RDY)) in bringup_rss_rwqs()
2076 if (_mlx4_ib_modify_wq(ibwq, IB_WQS_RESET, in bringup_rss_rwqs()
2079 ibwq->wq_num); in bringup_rss_rwqs()
2095 struct ib_wq *ibwq = ind_tbl->ind_tbl[i]; in bring_down_rss_rwqs() local
2096 struct mlx4_ib_qp *wq = to_mqp((struct ib_qp *)ibwq); in bring_down_rss_rwqs()
2100 if ((wq->rss_usecnt == 1) && (ibwq->state == IB_WQS_RDY)) in bring_down_rss_rwqs()
2101 if (_mlx4_ib_modify_wq(ibwq, IB_WQS_RESET, udata)) in bring_down_rss_rwqs()
2103 ibwq->wq_num); in bring_down_rss_rwqs()
2155 struct ib_wq *ibwq; in __mlx4_ib_modify_qp() local
2157 ibwq = (struct ib_wq *)src; in __mlx4_ib_modify_qp()
2161 qp = to_mqp((struct ib_qp *)ibwq); in __mlx4_ib_modify_qp()
2162 dev = to_mdev(ibwq->device); in __mlx4_ib_modify_qp()
2163 pd = to_mpd(ibwq->pd); in __mlx4_ib_modify_qp()
4186 qp->ibwq.event_handler = init_attr->event_handler; in mlx4_ib_create_wq()
4187 qp->ibwq.wq_num = qp->mqp.qpn; in mlx4_ib_create_wq()
4188 qp->ibwq.state = IB_WQS_RESET; in mlx4_ib_create_wq()
4190 return &qp->ibwq; in mlx4_ib_create_wq()
4205 static int _mlx4_ib_modify_wq(struct ib_wq *ibwq, enum ib_wq_state new_state, in _mlx4_ib_modify_wq() argument
4208 struct mlx4_ib_qp *qp = to_mqp((struct ib_qp *)ibwq); in _mlx4_ib_modify_wq()
4229 err = __mlx4_ib_modify_qp(ibwq, MLX4_IB_RWQ_SRC, &attr, in _mlx4_ib_modify_wq()
4234 ibwq->wq_num); in _mlx4_ib_modify_wq()
4242 err = __mlx4_ib_modify_qp(ibwq, MLX4_IB_RWQ_SRC, NULL, attr_mask, in _mlx4_ib_modify_wq()
4247 if (__mlx4_ib_modify_qp(ibwq, MLX4_IB_RWQ_SRC, NULL, in _mlx4_ib_modify_wq()
4251 ibwq->wq_num); in _mlx4_ib_modify_wq()
4261 int mlx4_ib_modify_wq(struct ib_wq *ibwq, struct ib_wq_attr *wq_attr, in mlx4_ib_modify_wq() argument
4264 struct mlx4_ib_qp *qp = to_mqp((struct ib_qp *)ibwq); in mlx4_ib_modify_wq()
4290 ibwq->state; in mlx4_ib_modify_wq()
4312 err = _mlx4_ib_modify_wq(ibwq, new_state, udata); in mlx4_ib_modify_wq()
4315 ibwq->state = new_state; in mlx4_ib_modify_wq()
4322 void mlx4_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) in mlx4_ib_destroy_wq() argument
4324 struct mlx4_ib_dev *dev = to_mdev(ibwq->device); in mlx4_ib_destroy_wq()
4325 struct mlx4_ib_qp *qp = to_mqp((struct ib_qp *)ibwq); in mlx4_ib_destroy_wq()