/* __vxge_hw_ring_item_dma_addr - Return the dma address of an item This function returns the dma address of a given item  */
static dma_addr_t __vxge_hw_ring_item_dma_addr(struct vxge_hw_mempool *mempoolh, void *item)
/* __vxge_hw_ring_item_dma_addr - Return the dma address of an item This function returns the dma address of a given item  */
static dma_addr_t __vxge_hw_ring_item_dma_addr(struct vxge_hw_mempool *mempoolh, void *item)
{
	u32 memblock_idx;
	void *memblock;
	struct vxge_hw_mempool_dma *memblock_dma_object;
	ptrdiff_t dma_item_offset;
	memblock_idx = __vxge_hw_ring_block_memblock_idx(item);
	memblock = mempoolh->memblocks_arr[memblock_idx];
	memblock_dma_object = mempoolh->memblocks_dma_arr + memblock_idx;
	dma_item_offset = (u8 *)item - (u8 *)memblock;
	return memblock_dma_object->addr + dma_item_offset;
}