Lines Matching refs:n_pages
30 unsigned int n_pages;
77 int n_pages, offset;
101 buf->n_pages = last - first + 1;
102 buf->pages = kzalloc(buf->n_pages * sizeof(struct page *),
108 n_pages = get_user_pages(current, current->mm,
109 vaddr & PAGE_MASK, buf->n_pages,
112 if (n_pages != buf->n_pages)
115 buf->vaddr = vm_map_ram(buf->pages, buf->n_pages, -1,
125 pr_debug("get_user_pages requested/got: %d/%d]\n", n_pages,
126 buf->n_pages);
127 while (--n_pages >= 0)
128 put_page(buf->pages[n_pages]);
145 vm_unmap_ram((void *)vaddr, buf->n_pages);
146 for (i = 0; i < buf->n_pages; ++i) {