Searched refs:n_pages (Results 1 – 3 of 3) sorted by relevance
/drivers/media/video/ |
D | videobuf2-vmalloc.c | 29 unsigned int n_pages; member 75 int n_pages, offset; in vb2_vmalloc_get_userptr() local 99 buf->n_pages = last - first + 1; in vb2_vmalloc_get_userptr() 100 buf->pages = kzalloc(buf->n_pages * sizeof(struct page *), in vb2_vmalloc_get_userptr() 106 n_pages = get_user_pages(current, current->mm, in vb2_vmalloc_get_userptr() 107 vaddr & PAGE_MASK, buf->n_pages, in vb2_vmalloc_get_userptr() 110 if (n_pages != buf->n_pages) in vb2_vmalloc_get_userptr() 113 buf->vaddr = vm_map_ram(buf->pages, buf->n_pages, -1, in vb2_vmalloc_get_userptr() 123 pr_debug("get_user_pages requested/got: %d/%d]\n", n_pages, in vb2_vmalloc_get_userptr() 124 buf->n_pages); in vb2_vmalloc_get_userptr() [all …]
|
/drivers/staging/comedi/ |
D | drivers.c | 468 unsigned n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc() local 472 vzalloc(sizeof(struct comedi_buf_page) * n_pages); in comedi_buf_alloc() 474 pages = vmalloc(sizeof(struct page *) * n_pages); in comedi_buf_alloc() 477 for (i = 0; i < n_pages; i++) { in comedi_buf_alloc() 502 if (i == n_pages) { in comedi_buf_alloc() 505 vmap(pages, n_pages, VM_MAP, PAGE_KERNEL_NOCACHE); in comedi_buf_alloc() 507 vmap(pages, n_pages, VM_MAP, PAGE_KERNEL); in comedi_buf_alloc() 515 for (i = 0; i < n_pages; i++) { in comedi_buf_alloc() 544 async->n_buf_pages = n_pages; in comedi_buf_alloc()
|
D | comedi_fops.c | 1485 int n_pages; in comedi_mmap() local 1536 n_pages = size >> PAGE_SHIFT; in comedi_mmap() 1537 for (i = 0; i < n_pages; ++i) { in comedi_mmap()
|