Rev 4559 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4559 | Rev 5056 | ||
---|---|---|---|
Line 219... | Line 219... | ||
219 | * drm_vma_node_unmap() - Unmap offset node |
219 | * drm_vma_node_unmap() - Unmap offset node |
220 | * @node: Offset node |
220 | * @node: Offset node |
221 | * @file_mapping: Address space to unmap @node from |
221 | * @file_mapping: Address space to unmap @node from |
222 | * |
222 | * |
223 | * Unmap all userspace mappings for a given offset node. The mappings must be |
223 | * Unmap all userspace mappings for a given offset node. The mappings must be |
224 | * associated with the @file_mapping address-space. If no offset exists or |
224 | * associated with the @file_mapping address-space. If no offset exists |
225 | * the address-space is invalid, nothing is done. |
225 | * nothing is done. |
226 | * |
226 | * |
227 | * This call is unlocked. The caller must guarantee that drm_vma_offset_remove() |
227 | * This call is unlocked. The caller must guarantee that drm_vma_offset_remove() |
228 | * is not called on this node concurrently. |
228 | * is not called on this node concurrently. |
229 | */ |
229 | */ |
230 | static inline void drm_vma_node_unmap(struct drm_vma_offset_node *node, |
230 | static inline void drm_vma_node_unmap(struct drm_vma_offset_node *node, |
231 | struct address_space *file_mapping) |
231 | struct address_space *file_mapping) |
232 | { |
232 | { |
233 | if (file_mapping && drm_vma_node_has_offset(node)) |
233 | // if (drm_vma_node_has_offset(node)) |
234 | unmap_mapping_range(file_mapping, |
234 | // unmap_mapping_range(file_mapping, |
235 | drm_vma_node_offset_addr(node), |
235 | // drm_vma_node_offset_addr(node), |
236 | drm_vma_node_size(node) << PAGE_SHIFT, 1); |
236 | // drm_vma_node_size(node) << PAGE_SHIFT, 1); |
237 | } |
237 | } |
Line 238... | Line 238... | ||
238 | 238 | ||
239 | /** |
239 | /** |
240 | * drm_vma_node_verify_access() - Access verification helper for TTM |
240 | * drm_vma_node_verify_access() - Access verification helper for TTM |