Lines Matching refs:qp_index
173 int qp_index; in mlx5_ib_destroy_gsi() local
185 for (qp_index = 0; qp_index < gsi->num_qps; ++qp_index) { in mlx5_ib_destroy_gsi()
186 if (!gsi->tx_qps[qp_index]) in mlx5_ib_destroy_gsi()
188 WARN_ON_ONCE(ib_destroy_qp(gsi->tx_qps[qp_index])); in mlx5_ib_destroy_gsi()
189 gsi->tx_qps[qp_index] = NULL; in mlx5_ib_destroy_gsi()
259 static void setup_qp(struct mlx5_ib_gsi_qp *gsi, u16 qp_index) in setup_qp() argument
263 int pkey_index = qp_index; in setup_qp()
276 gsi->port_num, qp_index); in setup_qp()
282 gsi->port_num, qp_index); in setup_qp()
287 qp = gsi->tx_qps[qp_index]; in setup_qp()
291 gsi->port_num, qp_index); in setup_qp()
304 mqp->gsi_lag_port = qp_index + 1; in setup_qp()
310 WARN_ON_ONCE(gsi->tx_qps[qp_index]); in setup_qp()
311 gsi->tx_qps[qp_index] = qp; in setup_qp()
326 u16 qp_index; in mlx5_ib_gsi_modify_qp() local
340 for (qp_index = 0; qp_index < gsi->num_qps; ++qp_index) in mlx5_ib_gsi_modify_qp()
341 setup_qp(gsi, qp_index); in mlx5_ib_gsi_modify_qp()
415 int qp_index = wr->pkey_index; in get_tx_qp() local
421 qp_index = ah->xmit_port - 1; in get_tx_qp()
423 if (qp_index >= gsi->num_qps) in get_tx_qp()
426 return gsi->tx_qps[qp_index]; in get_tx_qp()
485 u16 qp_index; in mlx5_ib_gsi_pkey_change() local
487 for (qp_index = 0; qp_index < gsi->num_qps; ++qp_index) in mlx5_ib_gsi_pkey_change()
488 setup_qp(gsi, qp_index); in mlx5_ib_gsi_pkey_change()