Lines Matching refs:lvl2
310 struct irdma_pble_level2 *lvl2 = &palloc->level2;
311 struct irdma_pble_info *root = &lvl2->root;
312 struct irdma_pble_info *leaf = lvl2->leaf;
314 for (i = 0; i < lvl2->leaf_cnt; i++, leaf++) {
325 kfree(lvl2->leafmem.va);
326 lvl2->leaf = NULL;
340 struct irdma_pble_level2 *lvl2 = &palloc->level2;
341 struct irdma_pble_info *root = &lvl2->root;
350 lvl2->leaf_cnt = total;
352 lvl2->leafmem.size = (sizeof(*leaf) * total);
353 lvl2->leafmem.va = kzalloc(lvl2->leafmem.size, GFP_KERNEL);
354 if (!lvl2->leafmem.va)
357 lvl2->leaf = lvl2->leafmem.va;
358 leaf = lvl2->leaf;
362 kfree(lvl2->leafmem.va);
363 lvl2->leaf = NULL;