Lines Matching defs:n_bytes
29 int dma_prog_region_alloc(struct dma_prog_region *prog, unsigned long n_bytes,
33 n_bytes = PAGE_ALIGN(n_bytes);
35 prog->n_pages = n_bytes >> PAGE_SHIFT;
37 prog->kvirt = pci_alloc_consistent(dev, n_bytes, &prog->bus_addr);
80 int dma_region_alloc(struct dma_region *dma, unsigned long n_bytes,
86 n_bytes = PAGE_ALIGN(n_bytes);
88 dma->n_pages = n_bytes >> PAGE_SHIFT;
90 dma->kvirt = vmalloc_32(n_bytes);
97 memset(dma->kvirt, 0, n_bytes);