Lines Matching defs:offset
37 * DOC: vma offset manager
49 * speed up offset lookups.
51 * You must not use multiple offset managers on a single address_space.
55 * This offset manager works on page-based addresses. That is, every argument
59 * If you want to get a valid byte-based user-space address for a given offset,
62 * Additionally to offset management, the vma offset manager also handles access
65 * open-file with the offset of the node will fail with -EACCES. To revoke
71 * drm_vma_offset_manager_init - Initialize new offset-manager
76 * Initialize a new offset-manager. The offset and area size available for the
94 * drm_vma_offset_manager_destroy() - Destroy offset manager
111 * drm_vma_offset_lookup_locked() - Find node in offset space
121 * Note that before lookup the vma offset manager lookup lock must be acquired
146 unsigned long offset;
153 offset = node->start;
154 if (start >= offset) {
157 if (start == offset)
166 offset = best->start + best->size;
167 if (offset < start + pages)
179 * drm_vma_offset_add() - Add offset node to manager
184 * Add a node to the offset-manager. If the node was already added, this does
187 * After this call succeeds, you can access the offset of the node until it
219 * drm_vma_offset_remove() - Remove offset node from manager
223 * Remove a node from the offset manager. If the node wasn't added before, this
224 * does nothing. After this call returns, the offset and size will be 0 until a
225 * new offset is allocated via drm_vma_offset_add() again. Helper functions like
227 * offset is allocated.
303 * not added to any offset-manager.
328 * not added to any offset-manager.