34 #include <linux/slab.h>
38 static u32 convert_access(
int acc)
57 ~0ull, convert_access(acc), 0, 0, &mr->
mmr);
96 for (j = 0; j < chunk->
nmap; ++
j) {
98 for (k = 0; k < len; ++
k) {
125 u64 virt_addr,
int access_flags,
140 if (IS_ERR(mr->
umem)) {
141 err = PTR_ERR(mr->
umem);
149 convert_access(access_flags), n, shift, &mr->
mmr);
190 int max_page_list_len)
201 max_page_list_len, 0, &mr->
mmr);
227 int size = page_list_len *
sizeof (
u64);
237 if (!mfrpl->
ibfrpl.page_list)
319 if (mdev && to_mdev(ibfmr->
device)->dev != mdev)
321 mdev = to_mdev(ibfmr->
device)->dev;
341 pr_warn(
"SYNC_TPT error %d when "
342 "unmapping FMRs\n", err);