• Home
  • Raw
  • Download

Lines Matching refs:chunk

20 	struct irdma_chunk *chunk;  in irdma_destroy_pble_prm()  local
24 chunk = (struct irdma_chunk *) pinfo->clist.next; in irdma_destroy_pble_prm()
25 list_del(&chunk->list); in irdma_destroy_pble_prm()
26 if (chunk->type == PBLE_SD_PAGED) in irdma_destroy_pble_prm()
27 irdma_pble_free_paged_mem(chunk); in irdma_destroy_pble_prm()
28 bitmap_free(chunk->bitmapbuf); in irdma_destroy_pble_prm()
29 kfree(chunk->chunkmem.va); in irdma_destroy_pble_prm()
94 struct irdma_chunk *chunk = info->chunk; in add_sd_direct() local
107 chunk->type = PBLE_SD_CONTIGOUS; in add_sd_direct()
111 chunk->size = info->pages << HMC_PAGED_BP_SHIFT; in add_sd_direct()
112 chunk->vaddr = sd_entry->u.bp.addr.va + offset; in add_sd_direct()
113 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_sd_direct()
116 chunk->size, chunk->size, chunk->vaddr, chunk->fpm_addr); in add_sd_direct()
150 struct irdma_chunk *chunk = info->chunk; in add_bp_pages() local
156 if (irdma_pble_get_paged_mem(chunk, info->pages)) in add_bp_pages()
165 addr = chunk->vaddr; in add_bp_pages()
167 mem.pa = (u64)chunk->dmainfo.dmaaddrs[i]; in add_bp_pages()
181 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_bp_pages()
185 irdma_pble_free_paged_mem(chunk); in add_bp_pages()
216 struct irdma_chunk *chunk; in add_pble_prm() local
231 chunkmem.size = sizeof(*chunk); in add_pble_prm()
236 chunk = chunkmem.va; in add_pble_prm()
237 chunk->chunkmem = chunkmem; in add_pble_prm()
239 chunk->dev = dev; in add_pble_prm()
240 chunk->fpm_addr = pble_rsrc->next_fpm_addr; in add_pble_prm()
246 info.chunk = chunk; in add_pble_prm()
276 ret_code = irdma_prm_add_pble_mem(&pble_rsrc->pinfo, chunk); in add_pble_prm()
280 pble_rsrc->next_fpm_addr += chunk->size; in add_pble_prm()
283 pble_rsrc->next_fpm_addr, chunk->size, chunk->size); in add_pble_prm()
284 pble_rsrc->unallocated_pble -= (u32)(chunk->size >> 3); in add_pble_prm()
296 list_add(&chunk->list, &pble_rsrc->pinfo.clist); in add_pble_prm()
301 bitmap_free(chunk->bitmapbuf); in add_pble_prm()
302 kfree(chunk->chunkmem.va); in add_pble_prm()