dma-direct: factor out a dma_direct_alloc_from_pool helper