Lines Matching defs:block
62 struct mem_block *block;
73 * the pool may allocate a block of memory of size PAGE_SIZE * 2^MAX_ORDER,
74 * block size may exceed 2^31 on ia64, so the max of block size is 2^31
89 block = pool->mem_block;
92 block[i].sgl = dma_alloc_coherent(dev, block_size,
93 &block[i].sgl_dma,
95 if (!block[i].sgl) {
100 block[i].size = block_size;
104 block[i].sgl = dma_alloc_coherent(dev, remain_sgl * sgl_size,
105 &block[i].sgl_dma,
107 if (!block[i].sgl) {
112 block[i].size = remain_sgl * sgl_size;
125 dma_free_coherent(dev, block_size, block[j].sgl,
126 block[j].sgl_dma);
142 struct mem_block *block;
148 block = pool->mem_block;
151 dma_free_coherent(dev, block[i].size, block[i].sgl,
152 block[i].sgl_dma);
161 struct mem_block *block;
167 block = pool->mem_block;
171 *hw_sgl_dma = block[block_index].sgl_dma + pool->sgl_size * offset;
172 return (void *)block[block_index].sgl + pool->sgl_size * offset;