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()
168 int mlx5_ib_destroy_gsi(struct mlx5_ib_qp *mqp) in mlx5_ib_destroy_gsi() argument
170 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi()
171 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_destroy_gsi()
264 struct mlx5_ib_qp *mqp; in setup_qp() local
302 mqp = to_mqp(qp); in setup_qp()
304 mqp->gsi_lag_port = qp_index + 1; in setup_qp()
324 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_modify_qp() local
325 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_modify_qp()
349 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_query_qp() local
350 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_query_qp()
359 static int mlx5_ib_add_outstanding_wr(struct mlx5_ib_qp *mqp, in mlx5_ib_add_outstanding_wr() argument
362 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_add_outstanding_wr()
391 static int mlx5_ib_gsi_silent_drop(struct mlx5_ib_qp *mqp, struct ib_ud_wr *wr) in mlx5_ib_gsi_silent_drop() argument
397 .qp = &mqp->ibqp, in mlx5_ib_gsi_silent_drop()
401 ret = mlx5_ib_add_outstanding_wr(mqp, wr, &wc); in mlx5_ib_gsi_silent_drop()
405 generate_completions(mqp); in mlx5_ib_gsi_silent_drop()
432 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_post_send() local
433 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_post_send()
446 ret = mlx5_ib_gsi_silent_drop(mqp, &cur_wr); in mlx5_ib_gsi_post_send()
453 ret = mlx5_ib_add_outstanding_wr(mqp, &cur_wr, NULL); in mlx5_ib_gsi_post_send()
477 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_gsi_post_recv() local
478 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_post_recv()