Lines Matching refs:obj
64 MLX5_ASSERT(!txq_ctrl->obj); in mlx5_txq_start()
65 txq_ctrl->obj = mlx5_malloc(flags, sizeof(struct mlx5_txq_obj), in mlx5_txq_start()
67 if (!txq_ctrl->obj) { in mlx5_txq_start()
76 mlx5_free(txq_ctrl->obj); in mlx5_txq_start()
77 txq_ctrl->obj = NULL; in mlx5_txq_start()
95 dev->data->port_id, i, (void *)&txq_ctrl->obj); in mlx5_txq_start()
96 LIST_INSERT_HEAD(&priv->txqsobj, txq_ctrl->obj, next); in mlx5_txq_start()
182 MLX5_ASSERT(!rxq_ctrl->obj); in mlx5_rxq_ctrl_prepare()
183 rxq_ctrl->obj = mlx5_malloc(MLX5_MEM_RTE | MLX5_MEM_ZERO, in mlx5_rxq_ctrl_prepare()
184 sizeof(*rxq_ctrl->obj), 0, in mlx5_rxq_ctrl_prepare()
186 if (!rxq_ctrl->obj) { in mlx5_rxq_ctrl_prepare()
193 idx, (void *)&rxq_ctrl->obj); in mlx5_rxq_ctrl_prepare()
232 LIST_INSERT_HEAD(&priv->rxqsobj, rxq_ctrl->obj, next); in mlx5_rxq_start()
236 mlx5_free(rxq_ctrl->obj); in mlx5_rxq_start()
237 rxq_ctrl->obj = NULL; in mlx5_rxq_start()
307 if (!txq_ctrl->obj) { in mlx5_hairpin_auto_bind()
314 sq = txq_ctrl->obj->sq; in mlx5_hairpin_auto_bind()
333 rq = rxq_ctrl->obj->rq; in mlx5_hairpin_auto_bind()
422 if (txq_ctrl->obj == NULL || txq_ctrl->obj->sq == NULL) { in mlx5_hairpin_queue_peer_update()
429 peer_info->qp_id = txq_ctrl->obj->sq->id; in mlx5_hairpin_queue_peer_update()
453 if (rxq_ctrl->obj == NULL || rxq_ctrl->obj->rq == NULL) { in mlx5_hairpin_queue_peer_update()
459 peer_info->qp_id = rxq_ctrl->obj->rq->id; in mlx5_hairpin_queue_peer_update()
520 if (txq_ctrl->obj == NULL || txq_ctrl->obj->sq == NULL) { in mlx5_hairpin_queue_peer_bind()
557 ret = mlx5_devx_cmd_modify_sq(txq_ctrl->obj->sq, &sq_attr); in mlx5_hairpin_queue_peer_bind()
579 if (rxq_ctrl->obj == NULL || rxq_ctrl->obj->rq == NULL) { in mlx5_hairpin_queue_peer_bind()
608 ret = mlx5_devx_cmd_modify_rq(rxq_ctrl->obj->rq, &rq_attr); in mlx5_hairpin_queue_peer_bind()
661 if (!txq_ctrl->obj || !txq_ctrl->obj->sq) { in mlx5_hairpin_queue_peer_unbind()
670 ret = mlx5_devx_cmd_modify_sq(txq_ctrl->obj->sq, &sq_attr); in mlx5_hairpin_queue_peer_unbind()
697 if (rxq_ctrl->obj == NULL || rxq_ctrl->obj->rq == NULL) { in mlx5_hairpin_queue_peer_unbind()
705 ret = mlx5_devx_cmd_modify_rq(rxq_ctrl->obj->rq, &rq_attr); in mlx5_hairpin_queue_peer_unbind()
821 cur.qp_id = txq_ctrl->obj->sq->id; in mlx5_hairpin_bind_single_port()