Lines Matching refs:palloc
307 struct irdma_pble_alloc *palloc) in free_lvl2() argument
310 struct irdma_pble_level2 *lvl2 = &palloc->level2; in free_lvl2()
335 struct irdma_pble_alloc *palloc) in get_lvl2_pble() argument
340 struct irdma_pble_level2 *lvl2 = &palloc->level2; in get_lvl2_pble()
347 lf4k = palloc->total_cnt >> 9; in get_lvl2_pble()
348 lflast = palloc->total_cnt % PBLE_PER_PAGE; in get_lvl2_pble()
386 palloc->level = PBLE_LEVEL_2; in get_lvl2_pble()
391 free_lvl2(pble_rsrc, palloc); in get_lvl2_pble()
402 struct irdma_pble_alloc *palloc) in get_lvl1_pble() argument
406 struct irdma_pble_info *lvl1 = &palloc->level1; in get_lvl1_pble()
409 palloc->total_cnt << 3, &lvl1->addr, in get_lvl1_pble()
414 palloc->level = PBLE_LEVEL_1; in get_lvl1_pble()
416 lvl1->cnt = palloc->total_cnt; in get_lvl1_pble()
429 struct irdma_pble_alloc *palloc, bool level1_only) in get_lvl1_lvl2_pble() argument
433 status = get_lvl1_pble(pble_rsrc, palloc); in get_lvl1_lvl2_pble()
434 if (!status || level1_only || palloc->total_cnt <= PBLE_PER_PAGE) in get_lvl1_lvl2_pble()
437 status = get_lvl2_pble(pble_rsrc, palloc); in get_lvl1_lvl2_pble()
450 struct irdma_pble_alloc *palloc, u32 pble_cnt, in irdma_get_pble() argument
457 palloc->total_cnt = pble_cnt; in irdma_get_pble()
458 palloc->level = PBLE_LEVEL_0; in irdma_get_pble()
465 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, level1_only); in irdma_get_pble()
469 max_sds = (palloc->total_cnt >> 18) + 1; in irdma_get_pble()
475 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, level1_only); in irdma_get_pble()
499 struct irdma_pble_alloc *palloc) in irdma_free_pble() argument
501 pble_rsrc->freedpbles += palloc->total_cnt; in irdma_free_pble()
503 if (palloc->level == PBLE_LEVEL_2) in irdma_free_pble()
504 free_lvl2(pble_rsrc, palloc); in irdma_free_pble()
507 &palloc->level1.chunkinfo); in irdma_free_pble()