[PATCH 0/8] Add and implement gen_pool_dma_alloc()

2013-11-01 Thread Nicolin Chen
Previously, we don't have a specific gen_pool_alloc() for DMA usage; Instead, we need to use gen_pool_virt_to_phys() to convert the addr returned from gen_pool_alloc(). So each implementation of this has duplicated code. Thus add new helper function -- gen_pool_dma_alloc(). After

[PATCH 0/8] Add and implement gen_pool_dma_alloc()

2013-11-01 Thread Nicolin Chen
Previously, we don't have a specific gen_pool_alloc() for DMA usage; Instead, we need to use gen_pool_virt_to_phys() to convert the addr returned from gen_pool_alloc(). So each implementation of this has duplicated code. Thus add new helper function -- gen_pool_dma_alloc(). After