OpenCloudOS-Kernel/drivers/gpu/drm/ttm
Thomas Zimmermann 89c815ef07 drm/ttm: Introduce ttm_bo_get() and ttm_bo_put() for ref counting
The TTM buffer-object interface provides ttm_bo_reference() and
ttm_bo_unref() for managing reference counts. Replacing them with
ttm_bo_get() and ttm_bo_put() aligns the API with conventions used
throughout the Linux kernel.

The implementation of ttm_bo_unref() clears the supplied pointer
to NULL. This leads to workarounds where the caller saves the
pointer's value before de-referencing the BO. ttm_bo_put() does
not clear the supplied pointer.

Signed-off-by: Thomas Zimmermann <contact@tzimmermann.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-10 14:18:15 -05:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ttm_agp_backend.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_bo.c drm/ttm: Introduce ttm_bo_get() and ttm_bo_put() for ref counting 2018-07-10 14:18:15 -05:00
ttm_bo_manager.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_bo_util.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_bo_vm.c gpu: drm: ttm: Adding new return type vm_fault_t 2018-06-19 13:17:38 -05:00
ttm_execbuf_util.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_lock.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_memory.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_module.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_object.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00
ttm_page_alloc.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ttm_page_alloc_dma.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ttm_tt.c Add SPDX idenitifier and clarify license 2018-05-15 13:44:27 -05:00