• Home
  • Raw
  • Download

Lines Matching refs:vma

66 static void videobuf_vm_open(struct vm_area_struct *vma)  in videobuf_vm_open()  argument
68 struct videobuf_mapping *map = vma->vm_private_data; in videobuf_vm_open()
71 map, map->count, vma->vm_start, vma->vm_end); in videobuf_vm_open()
76 static void videobuf_vm_close(struct vm_area_struct *vma) in videobuf_vm_close() argument
78 struct videobuf_mapping *map = vma->vm_private_data; in videobuf_vm_close()
83 map, map->count, vma->vm_start, vma->vm_end); in videobuf_vm_close()
164 struct vm_area_struct *vma; in videobuf_dma_contig_user_get() local
176 vma = find_vma(mm, vb->baddr); in videobuf_dma_contig_user_get()
177 if (!vma) in videobuf_dma_contig_user_get()
180 if ((vb->baddr + mem->size) > vma->vm_end) in videobuf_dma_contig_user_get()
188 ret = follow_pfn(vma, user_address, &this_pfn); in videobuf_dma_contig_user_get()
278 struct vm_area_struct *vma) in __videobuf_mmap_mapper() argument
295 buf->baddr = vma->vm_start; in __videobuf_mmap_mapper()
306 size = vma->vm_end - vma->vm_start; in __videobuf_mmap_mapper()
307 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); in __videobuf_mmap_mapper()
315 vma->vm_pgoff = 0; in __videobuf_mmap_mapper()
317 retval = vm_iomap_memory(vma, mem->dma_handle, size); in __videobuf_mmap_mapper()
326 vma->vm_ops = &videobuf_vm_ops; in __videobuf_mmap_mapper()
327 vma->vm_flags |= VM_DONTEXPAND; in __videobuf_mmap_mapper()
328 vma->vm_private_data = map; in __videobuf_mmap_mapper()
331 map, q, vma->vm_start, vma->vm_end, in __videobuf_mmap_mapper()
332 (long int)buf->bsize, vma->vm_pgoff, buf->i); in __videobuf_mmap_mapper()
334 videobuf_vm_open(vma); in __videobuf_mmap_mapper()