Lines Matching refs:entry
298 struct drm_vma_offset_file *new, *entry; in drm_vma_node_allow() local
305 new = kmalloc(sizeof(*entry), GFP_KERNEL); in drm_vma_node_allow()
313 entry = rb_entry(*iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_allow()
315 if (filp == entry->vm_filp) { in drm_vma_node_allow()
316 entry->vm_count++; in drm_vma_node_allow()
318 } else if (filp > entry->vm_filp) { in drm_vma_node_allow()
358 struct drm_vma_offset_file *entry; in drm_vma_node_revoke() local
365 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_revoke()
366 if (filp == entry->vm_filp) { in drm_vma_node_revoke()
367 if (!--entry->vm_count) { in drm_vma_node_revoke()
368 rb_erase(&entry->vm_rb, &node->vm_files); in drm_vma_node_revoke()
369 kfree(entry); in drm_vma_node_revoke()
372 } else if (filp > entry->vm_filp) { in drm_vma_node_revoke()
399 struct drm_vma_offset_file *entry; in drm_vma_node_is_allowed() local
406 entry = rb_entry(iter, struct drm_vma_offset_file, vm_rb); in drm_vma_node_is_allowed()
407 if (filp == entry->vm_filp) in drm_vma_node_is_allowed()
409 else if (filp > entry->vm_filp) in drm_vma_node_is_allowed()