Lines Matching refs:offset
58 unsigned int offset; member
205 unsigned int offset = 0; in pool_initialise_page() local
209 unsigned int next = offset + pool->size; in pool_initialise_page()
214 *(int *)(page->vaddr + offset) = next; in pool_initialise_page()
215 offset = next; in pool_initialise_page()
216 } while (offset < pool->allocation); in pool_initialise_page()
234 page->offset = 0; in pool_alloc_page()
319 size_t offset; in dma_pool_alloc() local
326 if (page->offset < pool->allocation) in dma_pool_alloc()
342 offset = page->offset; in dma_pool_alloc()
343 page->offset = *(int *)(page->vaddr + offset); in dma_pool_alloc()
344 retval = offset + page->vaddr; in dma_pool_alloc()
345 *handle = offset + page->dma; in dma_pool_alloc()
351 for (i = sizeof(page->offset); i < pool->size; i++) { in dma_pool_alloc()
408 unsigned int offset; in dma_pool_free() local
423 offset = vaddr - page->vaddr; in dma_pool_free()
427 if ((dma - page->dma) != offset) { in dma_pool_free()
438 unsigned int chain = page->offset; in dma_pool_free()
440 if (chain != offset) { in dma_pool_free()
458 *(int *)vaddr = page->offset; in dma_pool_free()
459 page->offset = offset; in dma_pool_free()