diff options
author | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-02-23 21:04:56 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 2009-02-23 21:04:56 +0100 |
commit | bcfe35e32c8f5f7595d2539af3fc10a10f17b06a (patch) | |
tree | 7fdd934377c5900895f800a0bdfc80a862842b8c | |
parent | 6c083adee8473eacb304a4c3cf9b350132dda1b7 (diff) |
ttm: Some commenting fixups.
-rw-r--r-- | linux-core/ttm/ttm_bo.c | 12 | ||||
-rw-r--r-- | linux-core/ttm/ttm_tt.c | 21 |
2 files changed, 2 insertions, 31 deletions
diff --git a/linux-core/ttm/ttm_bo.c b/linux-core/ttm/ttm_bo.c index 88697504..f0c0b657 100644 --- a/linux-core/ttm/ttm_bo.c +++ b/linux-core/ttm/ttm_bo.c @@ -113,8 +113,8 @@ static void ttm_bo_add_to_lru(struct ttm_buffer_object *bo) } } -/* - * Call with bdev->lru_lock and bdev->global->swap_lock held.. +/** + * Call with the lru_lock held. */ static int ttm_bo_del_from_lru(struct ttm_buffer_object *bo) @@ -1427,14 +1427,6 @@ int ttm_bo_pci_offset(struct ttm_bo_device *bdev, return 0; } -/** - * \c Kill all user-space virtual mappings of this buffer object. - * - * \param bo The buffer object. - * - * Call bo->mutex locked. - */ - void ttm_bo_unmap_virtual(struct ttm_buffer_object *bo) { struct ttm_bo_device *bdev = bo->bdev; diff --git a/linux-core/ttm/ttm_tt.c b/linux-core/ttm/ttm_tt.c index df0539df..3e8bf3ed 100644 --- a/linux-core/ttm/ttm_tt.c +++ b/linux-core/ttm/ttm_tt.c @@ -459,14 +459,6 @@ struct ttm_tt *ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size, return ttm; } -/** - * ttm_tt_unbind: - * - * @ttm: the object to unbind from the graphics device - * - * Unbind an object from the aperture. This removes the mappings - * from the graphics device and flushes caches if necessary. - */ void ttm_tt_unbind(struct ttm_tt *ttm) { int ret; @@ -479,19 +471,6 @@ void ttm_tt_unbind(struct ttm_tt *ttm) ttm->state = tt_unbound; } -/** - * ttm_tt_bind: - * - * @ttm: the ttm object to bind to the graphics device - * - * @bo_mem: the aperture memory region which will hold the object - * - * Bind a ttm object to the aperture. This ensures that the necessary - * pages are allocated, flushes CPU caches as needed and marks the - * ttm as DRM_TTM_PAGE_USER_DIRTY to indicate that it may have been - * modified by the GPU - */ - int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) { int ret = 0; |