Lines 511-520
static void nvidia_drm_vma_open(struct v
Link Here
|
511 |
* Note that nvidia_drm_vma_fault() can be called for different or same |
511 |
* Note that nvidia_drm_vma_fault() can be called for different or same |
512 |
* ranges of the same drm_gem_object simultaneously. |
512 |
* ranges of the same drm_gem_object simultaneously. |
513 |
*/ |
513 |
*/ |
514 |
static int nvidia_drm_vma_fault(struct vm_area_struct *vma, |
514 |
static int nvidia_drm_vma_fault(struct vm_fault *vmf) |
515 |
struct vm_fault *vmf) |
|
|
516 |
{ |
515 |
{ |
517 |
unsigned long address = nv_page_fault_va(vmf); |
516 |
unsigned long address = nv_page_fault_va(vmf); |
|
|
517 |
struct vm_area_struct *vma = vmf->vma; |
518 |
struct drm_gem_object *gem = vma->vm_private_data; |
518 |
struct drm_gem_object *gem = vma->vm_private_data; |
519 |
struct nvidia_drm_gem_object *nv_gem = |
519 |
struct nvidia_drm_gem_object *nv_gem = |
520 |
DRM_GEM_OBJECT_TO_NV_GEM_OBJECT(gem); |
520 |
DRM_GEM_OBJECT_TO_NV_GEM_OBJECT(gem); |