Lines Matching refs:n_bytes
28 int dma_prog_region_alloc(struct dma_prog_region *prog, unsigned long n_bytes,
32 n_bytes = PAGE_ALIGN(n_bytes);
34 prog->n_pages = n_bytes >> PAGE_SHIFT;
36 prog->kvirt = pci_alloc_consistent(dev, n_bytes, &prog->bus_addr);
79 int dma_region_alloc(struct dma_region *dma, unsigned long n_bytes,
85 n_bytes = PAGE_ALIGN(n_bytes);
87 dma->n_pages = n_bytes >> PAGE_SHIFT;
89 dma->kvirt = vmalloc_32(n_bytes);
96 memset(dma->kvirt, 0, n_bytes);