Lines Matching defs:nesmr

65 	struct nes_mr *nesmr;
92 nesmr = kzalloc(sizeof(*nesmr), GFP_KERNEL);
93 if (!nesmr) {
108 kfree(nesmr);
136 kfree(nesmr);
146 nesmr->ibmw.rkey = stag;
147 nesmr->mode = IWNES_MEMREG_TYPE_MW;
148 ibmw = &nesmr->ibmw;
149 nesmr->pbl_4k = 0;
150 nesmr->pbls_used = 0;
161 struct nes_mr *nesmr = to_nesmw(ibmw);
202 kfree(nesmr);
217 /* struct nes_mr *nesmr = to_nesmw(ibmw); */
392 struct nes_mr *nesmr;
414 nesmr = kzalloc(sizeof(*nesmr), GFP_KERNEL);
415 if (!nesmr) {
430 nesmr->ibmr.rkey = stag;
431 nesmr->ibmr.lkey = stag;
432 nesmr->mode = IWNES_MEMREG_TYPE_FMEM;
433 ibmr = &nesmr->ibmr;
435 kfree(nesmr);
2101 struct nes_mr *nesmr;
2144 nesmr = kzalloc(sizeof(*nesmr), GFP_KERNEL);
2145 if (!nesmr) {
2163 kfree(nesmr);
2173 kfree(nesmr);
2189 kfree(nesmr);
2214 kfree(nesmr);
2248 &nesmr->pbls_used, &nesmr->pbl_4k);
2251 nesmr->ibmr.rkey = stag;
2252 nesmr->ibmr.lkey = stag;
2253 nesmr->mode = IWNES_MEMREG_TYPE_MEM;
2254 ibmr = &nesmr->ibmr;
2256 kfree(nesmr);
2314 struct nes_mr *nesmr;
2377 nesmr = kzalloc(sizeof(*nesmr), GFP_KERNEL);
2378 if (!nesmr) {
2383 nesmr->region = region;
2392 kfree(nesmr);
2402 kfree(nesmr);
2418 kfree(nesmr);
2433 kfree(nesmr);
2447 kfree(nesmr);
2465 kfree(nesmr);
2531 &iova_start, &nesmr->pbls_used, &nesmr->pbl_4k);
2536 nesmr->ibmr.rkey = stag;
2537 nesmr->ibmr.lkey = stag;
2538 nesmr->mode = IWNES_MEMREG_TYPE_MEM;
2539 ibmr = &nesmr->ibmr;
2542 kfree(nesmr);
2578 nesmr = kzalloc(sizeof(*nesmr), GFP_KERNEL);
2579 if (!nesmr) {
2582 nes_debug(NES_DBG_MR, "Unable to allocate nesmr\n");
2585 nesmr->region = region;
2602 kfree(nesmr);
2642 nesmr->ibmr.rkey = -1;
2643 nesmr->ibmr.lkey = -1;
2644 nesmr->mode = req.reg_type;
2645 return &nesmr->ibmr;
2658 struct nes_mr *nesmr = to_nesmr(ib_mr);
2669 if (nesmr->region) {
2670 ib_umem_release(nesmr->region);
2672 if (nesmr->mode != IWNES_MEMREG_TYPE_MEM) {
2673 kfree(nesmr);
2721 if (nesmr->pbls_used != 0) {
2723 if (nesmr->pbl_4k) {
2724 nesadapter->free_4kpbl += nesmr->pbls_used;
2731 nesadapter->free_256pbl += nesmr->pbls_used;
2743 kfree(nesmr);