/* These routines don't guarantee any alignment. The caller must include any space needed for alignment in the sizes of the structures that are passed in.  */
static bool init_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf, size_t len)
/* These routines don't guarantee any alignment. The caller must include any space needed for alignment in the sizes of the structures that are passed in.  */
static bool init_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf, size_t len)
{
	void *cpu_addr;
	dma_addr_t dma_handle;
	cpu_addr = pci_alloc_consistent(dev, len, &dma_handle);
	if (cpu_addr == NULL)
		return false;
	loaf->cpu_free = loaf->cpu_base = cpu_addr;
	loaf->dma_free =loaf->dma_base = dma_handle;
	loaf->length = len;
	memset(cpu_addr, 0, len);
	return true;
}