Lines Matching +full:1 +full:- +full:based

37 #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1)
40 #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFUL >> PAGE_SHIFT) + 1)
56 bool readonly:1;
83 * drm_vma_offset_exact_lookup_locked() - Look up node by exact address
85 * @start: Start address (page-based, not byte-based)
86 * @pages: Size of object (page-based)
102 return (node && node->vm_node.start == start) ? node : NULL; in drm_vma_offset_exact_lookup_locked()
106 * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
119 * Note: You're in atomic-context while holding this lock!
123 read_lock(&mgr->vm_lock); in drm_vma_offset_lock_lookup()
127 * drm_vma_offset_unlock_lookup() - Unlock lookup for extended private use
130 * Release lookup-lock. See drm_vma_offset_lock_lookup() for more information.
134 read_unlock(&mgr->vm_lock); in drm_vma_offset_unlock_lookup()
138 * drm_vma_node_reset() - Initialize or reset node object
150 node->vm_files = RB_ROOT; in drm_vma_node_reset()
151 rwlock_init(&node->vm_lock); in drm_vma_node_reset()
155 * drm_vma_node_start() - Return start address for page-based addressing
160 * this can only be used for page-based addressing. If you need a proper offset
161 * for user-space mappings, you must apply "<< PAGE_SHIFT" or use the
165 * Start address of @node for page-based addressing. 0 if the node does not
170 return node->vm_node.start; in drm_vma_node_start()
174 * drm_vma_node_size() - Return size (page-based)
187 return node->vm_node.size; in drm_vma_node_size()
191 * drm_vma_node_offset_addr() - Return sanitized offset for user-space mmaps
195 * can be used for user-space mappings during mmap().
199 * Offset of @node for byte-based addressing. 0 if the node does not have an
204 return ((__u64)node->vm_node.start) << PAGE_SHIFT; in drm_vma_node_offset_addr()
208 * drm_vma_node_unmap() - Unmap offset node
213 * associated with the @file_mapping address-space. If no offset exists
222 if (drm_mm_node_allocated(&node->vm_node)) in drm_vma_node_unmap()
225 drm_vma_node_size(node) << PAGE_SHIFT, 1); in drm_vma_node_unmap()
229 * drm_vma_node_verify_access() - Access verification helper for TTM
234 * drm_vma_node_is_allowed() but suitable as drop-in helper for TTM
238 * 0 if access is granted, -EACCES otherwise.
243 return drm_vma_node_is_allowed(node, tag) ? 0 : -EACCES; in drm_vma_node_verify_access()