Lines Matching refs:chunks
102 struct pbl_chunk *chunks; member
1212 chunk_list->chunks = kcalloc(chunk_list_size, in pbl_chunk_list_create()
1213 sizeof(*chunk_list->chunks), in pbl_chunk_list_create()
1215 if (!chunk_list->chunks) in pbl_chunk_list_create()
1224 chunk_list->chunks[i].buf = kzalloc(EFA_CHUNK_SIZE, GFP_KERNEL); in pbl_chunk_list_create()
1225 if (!chunk_list->chunks[i].buf) in pbl_chunk_list_create()
1228 chunk_list->chunks[i].length = EFA_CHUNK_USED_SIZE; in pbl_chunk_list_create()
1230 chunk_list->chunks[chunk_list_size - 1].length = in pbl_chunk_list_create()
1237 cur_chunk_buf = chunk_list->chunks[0].buf; in pbl_chunk_list_create()
1245 cur_chunk_buf = chunk_list->chunks[chunk_idx].buf; in pbl_chunk_list_create()
1253 chunk_list->chunks[i].buf, in pbl_chunk_list_create()
1254 chunk_list->chunks[i].length, in pbl_chunk_list_create()
1262 chunk_list->chunks[i].dma_addr = dma_addr; in pbl_chunk_list_create()
1269 prev_chunk_buf = chunk_list->chunks[i - 1].buf; in pbl_chunk_list_create()
1273 ctrl_buf->length = chunk_list->chunks[i].length; in pbl_chunk_list_create()
1284 dma_unmap_single(&dev->pdev->dev, chunk_list->chunks[i].dma_addr, in pbl_chunk_list_create()
1285 chunk_list->chunks[i].length, DMA_TO_DEVICE); in pbl_chunk_list_create()
1289 kfree(chunk_list->chunks[i].buf); in pbl_chunk_list_create()
1291 kfree(chunk_list->chunks); in pbl_chunk_list_create()
1301 dma_unmap_single(&dev->pdev->dev, chunk_list->chunks[i].dma_addr, in pbl_chunk_list_destroy()
1302 chunk_list->chunks[i].length, DMA_TO_DEVICE); in pbl_chunk_list_destroy()
1303 kfree(chunk_list->chunks[i].buf); in pbl_chunk_list_destroy()
1306 kfree(chunk_list->chunks); in pbl_chunk_list_destroy()
1483 pbl->phys.indirect.chunk_list.chunks[0].length; in efa_create_pbl()
1485 efa_com_set_dma_addr(pbl->phys.indirect.chunk_list.chunks[0].dma_addr, in efa_create_pbl()