162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright(c) 2016 Intel Corporation. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef DEF_RVTQP_H 762306a36Sopenharmony_ci#define DEF_RVTQP_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <rdma/rdmavt_qp.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciint rvt_driver_qp_init(struct rvt_dev_info *rdi); 1262306a36Sopenharmony_civoid rvt_qp_exit(struct rvt_dev_info *rdi); 1362306a36Sopenharmony_ciint rvt_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr, 1462306a36Sopenharmony_ci struct ib_udata *udata); 1562306a36Sopenharmony_ciint rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 1662306a36Sopenharmony_ci int attr_mask, struct ib_udata *udata); 1762306a36Sopenharmony_ciint rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 1862306a36Sopenharmony_ciint rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 1962306a36Sopenharmony_ci int attr_mask, struct ib_qp_init_attr *init_attr); 2062306a36Sopenharmony_ciint rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 2162306a36Sopenharmony_ci const struct ib_recv_wr **bad_wr); 2262306a36Sopenharmony_ciint rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 2362306a36Sopenharmony_ci const struct ib_send_wr **bad_wr); 2462306a36Sopenharmony_ciint rvt_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr, 2562306a36Sopenharmony_ci const struct ib_recv_wr **bad_wr); 2662306a36Sopenharmony_ciint rvt_wss_init(struct rvt_dev_info *rdi); 2762306a36Sopenharmony_civoid rvt_wss_exit(struct rvt_dev_info *rdi); 2862306a36Sopenharmony_ciint rvt_alloc_rq(struct rvt_rq *rq, u32 size, int node, 2962306a36Sopenharmony_ci struct ib_udata *udata); 3062306a36Sopenharmony_ci#endif /* DEF_RVTQP_H */ 31