162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2016 HGST, a Western Digital Company. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci#ifndef _RDMA_MR_POOL_H 662306a36Sopenharmony_ci#define _RDMA_MR_POOL_H 1 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include <rdma/ib_verbs.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_cistruct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list); 1162306a36Sopenharmony_civoid ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr); 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciint ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr, 1462306a36Sopenharmony_ci enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg); 1562306a36Sopenharmony_civoid ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list); 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#endif /* _RDMA_MR_POOL_H */ 18