Lines Matching full:pbl
1414 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local
1432 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1433 if (IS_ERR(pbl)) { in siw_alloc_mr()
1434 rv = PTR_ERR(pbl); in siw_alloc_mr()
1435 siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); in siw_alloc_mr()
1436 pbl = NULL; in siw_alloc_mr()
1444 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1458 kfree(pbl); in siw_alloc_mr()
1481 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local
1486 if (!pbl) { in siw_map_mr_sg()
1487 siw_dbg_mem(mem, "no PBL allocated\n"); in siw_map_mr_sg()
1490 pble = pbl->pbe; in siw_map_mr_sg()
1492 if (pbl->max_buf < num_sle) { in siw_map_mr_sg()
1494 num_sle, pbl->max_buf); in siw_map_mr_sg()
1507 pbl->num_buf = 1; in siw_map_mr_sg()
1509 /* Merge PBL entries if adjacent */ in siw_map_mr_sg()
1514 pbl->num_buf++; in siw_map_mr_sg()
1533 pbl->num_buf); in siw_map_mr_sg()