linux_dsm_epyc7002/drivers/gpu/drm/radeon
Thomas Zimmermann 77605e4370 drm/radeon: Replace ttm_bo_unref with ttm_bo_put
The function ttm_bo_put releases a reference to a TTM buffer object. The
function's name is more aligned to the Linux kernel convention of naming
ref-counting function _get and _put.

A call to ttm_bo_unref takes the address of the TTM BO object's pointer and
clears the pointer's value to NULL. This is not necessary in most cases and
sometimes even worked around by the calling code. A call to ttm_bo_put only
releases the reference without clearing the pointer.

The current behaviour of cleaning the pointer is kept in the calling code,
but should be removed if not required in a later patch.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-31 16:58:22 -05:00
..
reg_srcs
.gitignore
atom-bits.h
atom-names.h
atom-types.h
atom.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
atom.h
atombios_crtc.c drm/radeon: radeon_framebuffer -> drm_framebuffer 2018-04-11 13:07:56 -05:00
atombios_dp.c
atombios_encoders.c
atombios_i2c.c
atombios.h
avivod.h
btc_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
btc_dpm.h
btcd.h
cayman_blit_shaders.c
cayman_blit_shaders.h
ci_dpm.c drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
ci_dpm.h
ci_smc.c
cik_blit_shaders.c
cik_blit_shaders.h
cik_reg.h
cik_sdma.c
cik.c drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
cikd.h
clearstate_cayman.h
clearstate_ci.h
clearstate_defs.h
clearstate_evergreen.h
clearstate_si.h
cypress_dpm.c
cypress_dpm.h
dce3_1_afmt.c
dce6_afmt.c
evergreen_blit_shaders.c
evergreen_blit_shaders.h
evergreen_cs.c
evergreen_dma.c
evergreen_hdmi.c
evergreen_reg.h
evergreen_smc.h
evergreen.c
evergreend.h
Kconfig
kv_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
kv_dpm.h
kv_smc.c
Makefile
mkregtable.c drm/radeon/mkregtable: Delete unused list functions and macros 2018-03-05 13:31:11 -05:00
ni_dma.c
ni_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ni_dpm.h
ni_reg.h
ni.c
nid.h
nislands_smc.h
ObjectID.h
ppsmc.h
pptable.h
r100_track.h
r100.c
r100d.h
r200.c
r300_reg.h
r300.c
r300d.h
r420.c
r420d.h
r500_reg.h
r520.c
r520d.h
r600_blit_shaders.c
r600_blit_shaders.h
r600_cs.c
r600_dma.c
r600_dpm.c drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
r600_dpm.h
r600_hdmi.c
r600_reg.h
r600.c
r600d.h
radeon_acpi.c
radeon_acpi.h
radeon_agp.c
radeon_asic.c
radeon_asic.h
radeon_atombios.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
radeon_atpx_handler.c drm/radeon: fix radeon_atpx_get_client_id()'s return type 2018-05-15 13:43:51 -05:00
radeon_audio.c
radeon_audio.h
radeon_benchmark.c
radeon_bios.c
radeon_clocks.c
radeon_combios.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
radeon_connectors.c drm: drop _mode_ from update_edit_property() 2018-07-13 18:40:27 +02:00
radeon_cs.c
radeon_cursor.c
radeon_device.c drm/radeon: add PX quirk for Asus K73TK 2018-05-15 13:43:02 -05:00
radeon_display.c drm/radeon: radeon_framebuffer -> drm_framebuffer 2018-04-11 13:07:56 -05:00
radeon_dp_auxch.c
radeon_dp_mst.c drm: drop _mode_ from remaining connector functions 2018-07-13 18:40:27 +02:00
radeon_drv.c drm/radeon: Change the default to PCI on PowerPC 2018-05-15 13:43:52 -05:00
radeon_drv.h
radeon_encoders.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
radeon_family.h
radeon_fb.c drm/radeon: radeon_framebuffer -> drm_framebuffer 2018-04-11 13:07:56 -05:00
radeon_fence.c
radeon_gart.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
radeon_gem.c drm/radeon: fix prime teardown order 2018-03-14 15:39:42 -05:00
radeon_i2c.c
radeon_ib.c
radeon_irq_kms.c
radeon_kms.c
radeon_legacy_crtc.c drm/radeon: radeon_framebuffer -> drm_framebuffer 2018-04-11 13:07:56 -05:00
radeon_legacy_encoders.c
radeon_legacy_tv.c
radeon_mn.c
radeon_mode.h drm/radeon: radeon_framebuffer -> drm_framebuffer 2018-04-11 13:07:56 -05:00
radeon_object.c drm/radeon: Replace ttm_bo_unref with ttm_bo_put 2018-07-31 16:58:22 -05:00
radeon_object.h
radeon_pm.c Revert "drm/radeon/pm: autoswitch power state when in balanced mode" 2018-02-20 16:27:16 -05:00
radeon_prime.c
radeon_reg.h
radeon_ring.c
radeon_sa.c
radeon_semaphore.c
radeon_sync.c
radeon_test.c drm/radeon: add SPDX identifier and clarify license 2018-07-05 16:39:54 -05:00
radeon_trace_points.c
radeon_trace.h
radeon_ttm.c gpu: drm: radeon: Adding new typedef vm_fault_t 2018-06-19 13:17:38 -05:00
radeon_ucode.c
radeon_ucode.h
radeon_uvd.c drm/radeon: adjust tested variable 2018-01-29 23:18:17 -05:00
radeon_vce.c
radeon_vm.c
radeon.h drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
rs100d.h
rs400.c
rs400d.h
rs600.c
rs600d.h
rs690.c
rs690d.h
rs780_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
rs780_dpm.h
rs780d.h
rv6xx_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
rv6xx_dpm.h
rv6xxd.h
rv200d.h
rv250d.h
rv350d.h
rv515.c
rv515d.h
rv730_dpm.c
rv730d.h
rv740_dpm.c
rv740d.h
rv770_dma.c
rv770_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
rv770_dpm.h
rv770_smc.c
rv770_smc.h
rv770.c
rv770d.h
si_blit_shaders.c
si_blit_shaders.h
si_dma.c
si_dpm.c drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
si_dpm.h
si_reg.h
si_smc.c
si.c drm/radeon: use pcie functions for link width 2018-07-05 16:40:00 -05:00
sid.h
sislands_smc.h
smu7_discrete.h
smu7_fusion.h
smu7.h
sumo_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
sumo_dpm.h
sumo_smc.c
sumod.h
trinity_dpm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
trinity_dpm.h
trinity_smc.c
trinityd.h
uvd_v1_0.c
uvd_v2_2.c
uvd_v3_1.c
uvd_v4_2.c
vce_v1_0.c
vce_v2_0.c