Lines Matching full:chunk

18 	struct irdma_chunk *chunk;  in irdma_destroy_pble_prm()  local
22 chunk = (struct irdma_chunk *) pinfo->clist.next; in irdma_destroy_pble_prm()
23 list_del(&chunk->list); in irdma_destroy_pble_prm()
24 if (chunk->type == PBLE_SD_PAGED) in irdma_destroy_pble_prm()
25 irdma_pble_free_paged_mem(chunk); in irdma_destroy_pble_prm()
26 bitmap_free(chunk->bitmapbuf); in irdma_destroy_pble_prm()
27 kfree(chunk->chunkmem.va); in irdma_destroy_pble_prm()
90 struct irdma_chunk *chunk = info->chunk; in add_sd_direct() local
103 chunk->type = PBLE_SD_CONTIGOUS; in add_sd_direct()
107 chunk->size = info->pages << HMC_PAGED_BP_SHIFT; in add_sd_direct()
108 chunk->vaddr = sd_entry->u.bp.addr.va + offset; in add_sd_direct()
109 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_sd_direct()
112 chunk->size, chunk->size, chunk->vaddr, chunk->fpm_addr); in add_sd_direct()
145 struct irdma_chunk *chunk = info->chunk; in add_bp_pages() local
151 if (irdma_pble_get_paged_mem(chunk, info->pages)) in add_bp_pages()
160 addr = chunk->vaddr; in add_bp_pages()
162 mem.pa = (u64)chunk->dmainfo.dmaaddrs[i]; in add_bp_pages()
176 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_bp_pages()
180 irdma_pble_free_paged_mem(chunk); in add_bp_pages()
210 struct irdma_chunk *chunk; in add_pble_prm() local
225 chunkmem.size = sizeof(*chunk); in add_pble_prm()
230 chunk = chunkmem.va; in add_pble_prm()
231 chunk->chunkmem = chunkmem; in add_pble_prm()
233 chunk->dev = dev; in add_pble_prm()
234 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_pble_prm()
240 info.chunk = chunk; in add_pble_prm()
270 ret_code = irdma_prm_add_pble_mem(&pble_rsrc->pinfo, chunk); in add_pble_prm()
274 pble_rsrc->next_fpm_addr += chunk->size; in add_pble_prm()
277 pble_rsrc->next_fpm_addr, chunk->size, chunk->size); in add_pble_prm()
278 pble_rsrc->unallocated_pble -= (u32)(chunk->size >> 3); in add_pble_prm()
290 list_add(&chunk->list, &pble_rsrc->pinfo.clist); in add_pble_prm()
295 bitmap_free(chunk->bitmapbuf); in add_pble_prm()
296 kfree(chunk->chunkmem.va); in add_pble_prm()