Lines Matching full:chunks
109 struct pbl_chunk *chunks; member
1298 /* allocate a chunk list that consists of 4KB chunks */ in pbl_chunk_list_create()
1302 chunk_list->chunks = kcalloc(chunk_list_size, in pbl_chunk_list_create()
1303 sizeof(*chunk_list->chunks), in pbl_chunk_list_create()
1305 if (!chunk_list->chunks) in pbl_chunk_list_create()
1314 chunk_list->chunks[i].buf = kzalloc(EFA_CHUNK_SIZE, GFP_KERNEL); in pbl_chunk_list_create()
1315 if (!chunk_list->chunks[i].buf) in pbl_chunk_list_create()
1318 chunk_list->chunks[i].length = EFA_CHUNK_USED_SIZE; in pbl_chunk_list_create()
1320 chunk_list->chunks[chunk_list_size - 1].length = in pbl_chunk_list_create()
1324 /* fill the dma addresses of sg list pages to chunks: */ in pbl_chunk_list_create()
1327 cur_chunk_buf = chunk_list->chunks[0].buf; in pbl_chunk_list_create()
1335 cur_chunk_buf = chunk_list->chunks[chunk_idx].buf; in pbl_chunk_list_create()
1340 /* map chunks to dma and fill chunks next ptrs */ in pbl_chunk_list_create()
1343 chunk_list->chunks[i].buf, in pbl_chunk_list_create()
1344 chunk_list->chunks[i].length, in pbl_chunk_list_create()
1352 chunk_list->chunks[i].dma_addr = dma_addr; in pbl_chunk_list_create()
1359 prev_chunk_buf = chunk_list->chunks[i - 1].buf; in pbl_chunk_list_create()
1363 ctrl_buf->length = chunk_list->chunks[i].length; in pbl_chunk_list_create()
1374 dma_unmap_single(&dev->pdev->dev, chunk_list->chunks[i].dma_addr, in pbl_chunk_list_create()
1375 chunk_list->chunks[i].length, DMA_TO_DEVICE); in pbl_chunk_list_create()
1379 kfree(chunk_list->chunks[i].buf); in pbl_chunk_list_create()
1381 kfree(chunk_list->chunks); in pbl_chunk_list_create()
1391 dma_unmap_single(&dev->pdev->dev, chunk_list->chunks[i].dma_addr, in pbl_chunk_list_destroy()
1392 chunk_list->chunks[i].length, DMA_TO_DEVICE); in pbl_chunk_list_destroy()
1393 kfree(chunk_list->chunks[i].buf); in pbl_chunk_list_destroy()
1396 kfree(chunk_list->chunks); in pbl_chunk_list_destroy()
1453 "pbl indirect - size[%u], chunks[%u]\n", in pbl_indirect_initialize()
1573 pbl->phys.indirect.chunk_list.chunks[0].length; in efa_create_pbl()
1575 efa_com_set_dma_addr(pbl->phys.indirect.chunk_list.chunks[0].dma_addr, in efa_create_pbl()