Lines Matching refs:palloc

313 		      struct irdma_pble_alloc *palloc)  in free_lvl2()  argument
316 struct irdma_pble_level2 *lvl2 = &palloc->level2; in free_lvl2()
342 struct irdma_pble_alloc *palloc) in get_lvl2_pble() argument
347 struct irdma_pble_level2 *lvl2 = &palloc->level2; in get_lvl2_pble()
354 lf4k = palloc->total_cnt >> 9; in get_lvl2_pble()
355 lflast = palloc->total_cnt % PBLE_PER_PAGE; in get_lvl2_pble()
393 palloc->level = PBLE_LEVEL_2; in get_lvl2_pble()
398 free_lvl2(pble_rsrc, palloc); in get_lvl2_pble()
410 struct irdma_pble_alloc *palloc) in get_lvl1_pble() argument
414 struct irdma_pble_info *lvl1 = &palloc->level1; in get_lvl1_pble()
417 palloc->total_cnt << 3, &lvl1->addr, in get_lvl1_pble()
422 palloc->level = PBLE_LEVEL_1; in get_lvl1_pble()
424 lvl1->cnt = palloc->total_cnt; in get_lvl1_pble()
438 struct irdma_pble_alloc *palloc, bool level1_only) in get_lvl1_lvl2_pble() argument
442 status = get_lvl1_pble(pble_rsrc, palloc); in get_lvl1_lvl2_pble()
443 if (!status || level1_only || palloc->total_cnt <= PBLE_PER_PAGE) in get_lvl1_lvl2_pble()
446 status = get_lvl2_pble(pble_rsrc, palloc); in get_lvl1_lvl2_pble()
459 struct irdma_pble_alloc *palloc, in irdma_get_pble() argument
466 palloc->total_cnt = pble_cnt; in irdma_get_pble()
467 palloc->level = PBLE_LEVEL_0; in irdma_get_pble()
474 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, level1_only); in irdma_get_pble()
478 max_sds = (palloc->total_cnt >> 18) + 1; in irdma_get_pble()
484 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, level1_only); in irdma_get_pble()
508 struct irdma_pble_alloc *palloc) in irdma_free_pble() argument
510 pble_rsrc->freedpbles += palloc->total_cnt; in irdma_free_pble()
512 if (palloc->level == PBLE_LEVEL_2) in irdma_free_pble()
513 free_lvl2(pble_rsrc, palloc); in irdma_free_pble()
516 &palloc->level1.chunkinfo); in irdma_free_pble()