Home
last modified time | relevance | path

Searched refs:vma_copy (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf2-memops.c38 struct vm_area_struct *vma_copy; in vb2_get_vma() local
40 vma_copy = kmalloc(sizeof(*vma_copy), GFP_KERNEL); in vb2_get_vma()
41 if (vma_copy == NULL) in vb2_get_vma()
50 memcpy(vma_copy, vma, sizeof(*vma)); in vb2_get_vma()
52 vma_copy->vm_mm = NULL; in vb2_get_vma()
53 vma_copy->vm_next = NULL; in vb2_get_vma()
54 vma_copy->vm_prev = NULL; in vb2_get_vma()
56 return vma_copy; in vb2_get_vma()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c383 struct vm_area_struct *vma_copy; in exynos_gem_get_vma() local
385 vma_copy = kmalloc(sizeof(*vma_copy), GFP_KERNEL); in exynos_gem_get_vma()
386 if (!vma_copy) in exynos_gem_get_vma()
395 memcpy(vma_copy, vma, sizeof(*vma)); in exynos_gem_get_vma()
397 vma_copy->vm_mm = NULL; in exynos_gem_get_vma()
398 vma_copy->vm_next = NULL; in exynos_gem_get_vma()
399 vma_copy->vm_prev = NULL; in exynos_gem_get_vma()
401 return vma_copy; in exynos_gem_get_vma()