Searched refs:vma_priv (Results 1 – 2 of 2) sorted by relevance
59 static void privcmd_buf_vmapriv_free(struct privcmd_buf_vma_private *vma_priv) in privcmd_buf_vmapriv_free() argument63 vma_priv->file_priv->allocated -= vma_priv->n_pages; in privcmd_buf_vmapriv_free()65 list_del(&vma_priv->list); in privcmd_buf_vmapriv_free()67 for (i = 0; i < vma_priv->n_pages; i++) in privcmd_buf_vmapriv_free()68 if (vma_priv->pages[i]) in privcmd_buf_vmapriv_free()69 __free_page(vma_priv->pages[i]); in privcmd_buf_vmapriv_free()71 kfree(vma_priv); in privcmd_buf_vmapriv_free()77 struct privcmd_buf_vma_private *vma_priv; in privcmd_buf_release() local82 vma_priv = list_first_entry(&file_priv->list, in privcmd_buf_release()85 privcmd_buf_vmapriv_free(vma_priv); in privcmd_buf_release()[all …]
426 struct vme_user_vma_priv *vma_priv = vma->vm_private_data; in vme_user_vm_open() local428 refcount_inc(&vma_priv->refcnt); in vme_user_vm_open()433 struct vme_user_vma_priv *vma_priv = vma->vm_private_data; in vme_user_vm_close() local434 unsigned int minor = vma_priv->minor; in vme_user_vm_close()436 if (!refcount_dec_and_test(&vma_priv->refcnt)) in vme_user_vm_close()443 kfree(vma_priv); in vme_user_vm_close()454 struct vme_user_vma_priv *vma_priv; in vme_user_master_mmap() local464 vma_priv = kmalloc(sizeof(*vma_priv), GFP_KERNEL); in vme_user_master_mmap()465 if (!vma_priv) { in vme_user_master_mmap()470 vma_priv->minor = minor; in vme_user_master_mmap()[all …]