Lines Matching defs:chunk
268 * Utility routine to carve a slice off a chunk of allocated memory,
269 * updating the chunk descriptor accordingly. The size of the slice
273 nge_slice_chunk(dma_area_t *slice, dma_area_t *chunk,
280 ASSERT(totsize <= chunk->alength);
282 *slice = *chunk;
287 chunk->mem_va = (caddr_t)chunk->mem_va + totsize;
288 chunk->alength -= totsize;
289 chunk->offset += totsize;
290 chunk->cookie.dmac_laddress += totsize;
291 chunk->cookie.dmac_size -= totsize;