Lines Matching refs:entry
314 struct drm_vma_offset_file *new, *entry; in drm_vma_node_allow() local
321 new = kmalloc(sizeof(*entry), GFP_KERNEL); in drm_vma_node_allow()
329 entry = rb_entry(*iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_allow()
331 if (filp == entry->vm_filp) { in drm_vma_node_allow()
332 entry->vm_count++; in drm_vma_node_allow()
334 } else if (filp > entry->vm_filp) { in drm_vma_node_allow()
374 struct drm_vma_offset_file *entry; in drm_vma_node_revoke() local
381 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_revoke()
382 if (filp == entry->vm_filp) { in drm_vma_node_revoke()
383 if (!--entry->vm_count) { in drm_vma_node_revoke()
384 rb_erase(&entry->vm_rb, &node->vm_files); in drm_vma_node_revoke()
385 kfree(entry); in drm_vma_node_revoke()
388 } else if (filp > entry->vm_filp) { in drm_vma_node_revoke()
415 struct drm_vma_offset_file *entry; in drm_vma_node_is_allowed() local
422 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_is_allowed()
423 if (filp == entry->vm_filp) in drm_vma_node_is_allowed()
425 else if (filp > entry->vm_filp) in drm_vma_node_is_allowed()