Lines Matching refs:mqp

47 static void generate_completions(struct mlx5_ib_qp *mqp)  in generate_completions()  argument
49 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in generate_completions()
50 struct ib_cq *gsi_cq = mqp->ibqp.send_cq; in generate_completions()
73 struct mlx5_ib_qp *mqp = container_of(gsi, struct mlx5_ib_qp, gsi); in handle_single_completion() local
82 wr->wc.qp = &mqp->ibqp; in handle_single_completion()
84 generate_completions(mqp); in handle_single_completion()
88 int mlx5_ib_create_gsi(struct ib_pd *pd, struct mlx5_ib_qp *mqp, in mlx5_ib_create_gsi() argument
106 gsi = &mqp->gsi; in mlx5_ib_create_gsi()
185 int mlx5_ib_destroy_gsi(struct mlx5_ib_qp *mqp) in mlx5_ib_destroy_gsi() argument
187 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi()
188 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_destroy_gsi()
216 kfree(mqp); in mlx5_ib_destroy_gsi()
286 struct mlx5_ib_qp *mqp; in setup_qp() local
324 mqp = to_mqp(qp); in setup_qp()
326 mqp->gsi_lag_port = qp_index + 1; in setup_qp()
357 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_modify_qp() local
358 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_modify_qp()
378 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_query_qp() local
379 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_query_qp()
388 static int mlx5_ib_add_outstanding_wr(struct mlx5_ib_qp *mqp, in mlx5_ib_add_outstanding_wr() argument
391 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_add_outstanding_wr()
420 static int mlx5_ib_gsi_silent_drop(struct mlx5_ib_qp *mqp, struct ib_ud_wr *wr) in mlx5_ib_gsi_silent_drop() argument
426 .qp = &mqp->ibqp, in mlx5_ib_gsi_silent_drop()
430 ret = mlx5_ib_add_outstanding_wr(mqp, wr, &wc); in mlx5_ib_gsi_silent_drop()
434 generate_completions(mqp); in mlx5_ib_gsi_silent_drop()
461 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_post_send() local
462 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_post_send()
475 ret = mlx5_ib_gsi_silent_drop(mqp, &cur_wr); in mlx5_ib_gsi_post_send()
482 ret = mlx5_ib_add_outstanding_wr(mqp, &cur_wr, NULL); in mlx5_ib_gsi_post_send()
506 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_post_recv() local
507 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_post_recv()