Lines Matching full:pbl
1385 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local
1403 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1404 if (IS_ERR(pbl)) { in siw_alloc_mr()
1405 rv = PTR_ERR(pbl); in siw_alloc_mr()
1406 siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); in siw_alloc_mr()
1407 pbl = NULL; in siw_alloc_mr()
1415 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1429 kfree(pbl); in siw_alloc_mr()
1452 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local
1457 if (!pbl) { in siw_map_mr_sg()
1458 siw_dbg_mem(mem, "no PBL allocated\n"); in siw_map_mr_sg()
1461 pble = pbl->pbe; in siw_map_mr_sg()
1463 if (pbl->max_buf < num_sle) { in siw_map_mr_sg()
1465 mem->pbl->max_buf, num_sle); in siw_map_mr_sg()
1478 pbl->num_buf = 1; in siw_map_mr_sg()
1480 /* Merge PBL entries if adjacent */ in siw_map_mr_sg()
1485 pbl->num_buf++; in siw_map_mr_sg()
1504 pbl->num_buf); in siw_map_mr_sg()