18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2016 HGST, a Western Digital Company. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci#ifndef _RDMA_MR_POOL_H 68c2ecf20Sopenharmony_ci#define _RDMA_MR_POOL_H 1 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include <rdma/ib_verbs.h> 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct ib_mr *ib_mr_pool_get(struct ib_qp *qp, struct list_head *list); 118c2ecf20Sopenharmony_civoid ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr); 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciint ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr, 148c2ecf20Sopenharmony_ci enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg); 158c2ecf20Sopenharmony_civoid ib_mr_pool_destroy(struct ib_qp *qp, struct list_head *list); 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#endif /* _RDMA_MR_POOL_H */ 18