Lines Matching full:pbl
1378 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local
1396 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1397 if (IS_ERR(pbl)) { in siw_alloc_mr()
1398 rv = PTR_ERR(pbl); in siw_alloc_mr()
1399 siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); in siw_alloc_mr()
1400 pbl = NULL; in siw_alloc_mr()
1408 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1422 kfree(pbl); in siw_alloc_mr()
1445 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local
1450 if (!pbl) { in siw_map_mr_sg()
1451 siw_dbg_mem(mem, "no PBL allocated\n"); in siw_map_mr_sg()
1454 pble = pbl->pbe; in siw_map_mr_sg()
1456 if (pbl->max_buf < num_sle) { in siw_map_mr_sg()
1458 mem->pbl->max_buf, num_sle); in siw_map_mr_sg()
1471 pbl->num_buf = 1; in siw_map_mr_sg()
1473 /* Merge PBL entries if adjacent */ in siw_map_mr_sg()
1478 pbl->num_buf++; in siw_map_mr_sg()
1497 pbl->num_buf); in siw_map_mr_sg()