Lines Matching full:pbl
1373 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local
1391 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1392 if (IS_ERR(pbl)) { in siw_alloc_mr()
1393 rv = PTR_ERR(pbl); in siw_alloc_mr()
1394 siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); in siw_alloc_mr()
1395 pbl = NULL; in siw_alloc_mr()
1403 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1417 kfree(pbl); in siw_alloc_mr()
1440 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local
1445 if (!pbl) { in siw_map_mr_sg()
1446 siw_dbg_mem(mem, "no PBL allocated\n"); in siw_map_mr_sg()
1449 pble = pbl->pbe; in siw_map_mr_sg()
1451 if (pbl->max_buf < num_sle) { in siw_map_mr_sg()
1453 mem->pbl->max_buf, num_sle); in siw_map_mr_sg()
1466 pbl->num_buf = 1; in siw_map_mr_sg()
1468 /* Merge PBL entries if adjacent */ in siw_map_mr_sg()
1473 pbl->num_buf++; in siw_map_mr_sg()
1492 pbl->num_buf); in siw_map_mr_sg()