Searched refs:vma_priv (Results 1 – 2 of 2) sorted by relevance
54 static void privcmd_buf_vmapriv_free(struct privcmd_buf_vma_private *vma_priv) in privcmd_buf_vmapriv_free() argument58 list_del(&vma_priv->list); in privcmd_buf_vmapriv_free()60 for (i = 0; i < vma_priv->n_pages; i++) in privcmd_buf_vmapriv_free()61 __free_page(vma_priv->pages[i]); in privcmd_buf_vmapriv_free()63 kfree(vma_priv); in privcmd_buf_vmapriv_free()69 struct privcmd_buf_vma_private *vma_priv; in privcmd_buf_release() local74 vma_priv = list_first_entry(&file_priv->list, in privcmd_buf_release()77 privcmd_buf_vmapriv_free(vma_priv); in privcmd_buf_release()89 struct privcmd_buf_vma_private *vma_priv = vma->vm_private_data; in privcmd_buf_vma_open() local91 if (!vma_priv) in privcmd_buf_vma_open()[all …]
429 struct vme_user_vma_priv *vma_priv = vma->vm_private_data; in vme_user_vm_open() local431 refcount_inc(&vma_priv->refcnt); in vme_user_vm_open()436 struct vme_user_vma_priv *vma_priv = vma->vm_private_data; in vme_user_vm_close() local437 unsigned int minor = vma_priv->minor; in vme_user_vm_close()439 if (!refcount_dec_and_test(&vma_priv->refcnt)) in vme_user_vm_close()446 kfree(vma_priv); in vme_user_vm_close()457 struct vme_user_vma_priv *vma_priv; in vme_user_master_mmap() local467 vma_priv = kmalloc(sizeof(*vma_priv), GFP_KERNEL); in vme_user_master_mmap()468 if (!vma_priv) { in vme_user_master_mmap()473 vma_priv->minor = minor; in vme_user_master_mmap()[all …]