/* Returns the DMA bus address of the byte with the given @offset relative to the beginning of the @dma.  */
dma_addr_t dma_region_offset_to_bus(struct dma_region *dma, unsigned long offset)
/* Returns the DMA bus address of the byte with the given @offset relative to the beginning of the @dma.  */
dma_addr_t dma_region_offset_to_bus(struct dma_region *dma, unsigned long offset)
{
	unsigned long rem = 0;
	struct scatterlist *sg =
	    &dma->sglist[dma_region_find(dma, offset, 0, &rem)];
	return sg_dma_address(sg) + rem;
}