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