Lines Matching refs:n_pages
39 for (i = 0; i < bm->n_pages; i++) {
83 unsigned n_pages)
111 bm->page_list = vzalloc(sizeof(*buf) * n_pages);
113 pages = vmalloc(sizeof(struct page *) * n_pages);
118 for (i = 0; i < n_pages; i++) {
140 bm->n_pages = i;
144 if (i == n_pages)
145 async->prealloc_buf = vmap(pages, n_pages, VM_MAP,
178 if (bm && bm->n_pages)
211 unsigned n_pages = new_size >> PAGE_SHIFT;
213 __comedi_buf_alloc(dev, s, n_pages);