• Home
  • Raw
  • Download

Lines Matching refs:vma

62 		mmap_read_unlock(vmf->vma->vm_mm);  in ttm_bo_vm_fault_idle()
134 mmap_read_unlock(vmf->vma->vm_mm); in ttm_bo_vm_reserve()
185 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_fault_reserved() local
186 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault_reserved()
210 page_offset = ((address - vma->vm_start) >> PAGE_SHIFT) + in ttm_bo_vm_fault_reserved()
211 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault_reserved()
212 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
266 ret = vmf_insert_pfn_prot(vma, address, pfn, prot); in ttm_bo_vm_fault_reserved()
293 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_dummy_page() local
294 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_dummy_page()
313 for (address = vma->vm_start; address < vma->vm_end; in ttm_bo_vm_dummy_page()
315 ret = vmf_insert_pfn_prot(vma, address, pfn, prot); in ttm_bo_vm_dummy_page()
323 struct vm_area_struct *vma = vmf->vma; in ttm_bo_vm_fault() local
325 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_fault()
334 prot = vma->vm_page_prot; in ttm_bo_vm_fault()
350 void ttm_bo_vm_open(struct vm_area_struct *vma) in ttm_bo_vm_open() argument
352 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_open()
354 WARN_ON(bo->bdev->dev_mapping != vma->vm_file->f_mapping); in ttm_bo_vm_open()
360 void ttm_bo_vm_close(struct vm_area_struct *vma) in ttm_bo_vm_close() argument
362 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_close()
365 vma->vm_private_data = NULL; in ttm_bo_vm_close()
408 int ttm_bo_vm_access(struct vm_area_struct *vma, unsigned long addr, in ttm_bo_vm_access() argument
411 struct ttm_buffer_object *bo = vma->vm_private_data; in ttm_bo_vm_access()
412 unsigned long offset = (addr) - vma->vm_start + in ttm_bo_vm_access()
413 ((vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node)) in ttm_bo_vm_access()
459 int ttm_bo_mmap_obj(struct vm_area_struct *vma, struct ttm_buffer_object *bo) in ttm_bo_mmap_obj() argument
462 if (is_cow_mapping(vma->vm_flags)) in ttm_bo_mmap_obj()
471 if (!vma->vm_ops) in ttm_bo_mmap_obj()
472 vma->vm_ops = &ttm_bo_vm_ops; in ttm_bo_mmap_obj()
479 vma->vm_private_data = bo; in ttm_bo_mmap_obj()
481 vm_flags_set(vma, VM_PFNMAP | VM_IO | VM_DONTEXPAND | VM_DONTDUMP); in ttm_bo_mmap_obj()