Searched refs:loaf (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/block/
H A DDAC960.c220 static bool init_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf, init_dma_loaf() argument
230 loaf->cpu_free = loaf->cpu_base = cpu_addr; init_dma_loaf()
231 loaf->dma_free =loaf->dma_base = dma_handle; init_dma_loaf()
232 loaf->length = len; init_dma_loaf()
237 static void *slice_dma_loaf(struct dma_loaf *loaf, size_t len, slice_dma_loaf() argument
240 void *cpu_end = loaf->cpu_free + len; slice_dma_loaf()
241 void *cpu_addr = loaf->cpu_free; slice_dma_loaf()
243 BUG_ON(cpu_end > loaf->cpu_base + loaf->length); slice_dma_loaf()
244 *dma_handle = loaf->dma_free; slice_dma_loaf()
245 loaf->cpu_free = cpu_end; slice_dma_loaf()
246 loaf->dma_free += len; slice_dma_loaf()

Completed in 91 milliseconds