drm/radeon: fix indentation.
I hate doing this but it hurts my eyes to go over code that does not comply with indentation rules. Only thing that is not only space change is in atom.c all other files are space indentation issues. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
60123300db
commit
3cf8bb1ad1
@ -66,9 +66,10 @@ int atom_debug = 0;
|
|||||||
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
|
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
|
||||||
int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
|
int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
|
||||||
|
|
||||||
static uint32_t atom_arg_mask[8] =
|
static uint32_t atom_arg_mask[8] = {
|
||||||
{ 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000,
|
0xFFFFFFFF, 0x0000FFFF, 0x00FFFF00, 0xFFFF0000,
|
||||||
0xFF000000 };
|
0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000
|
||||||
|
};
|
||||||
static int atom_arg_shift[8] = { 0, 0, 8, 16, 0, 8, 16, 24 };
|
static int atom_arg_shift[8] = { 0, 0, 8, 16, 0, 8, 16, 24 };
|
||||||
|
|
||||||
static int atom_dst_to_src[8][4] = {
|
static int atom_dst_to_src[8][4] = {
|
||||||
|
@ -1163,8 +1163,7 @@ u32 btc_valid_sclk[40] =
|
|||||||
155000, 160000, 165000, 170000, 175000, 180000, 185000, 190000, 195000, 200000
|
155000, 160000, 165000, 170000, 175000, 180000, 185000, 190000, 195000, 200000
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct radeon_blacklist_clocks btc_blacklist_clocks[] =
|
static const struct radeon_blacklist_clocks btc_blacklist_clocks[] = {
|
||||||
{
|
|
||||||
{ 10000, 30000, RADEON_SCLK_UP },
|
{ 10000, 30000, RADEON_SCLK_UP },
|
||||||
{ 15000, 30000, RADEON_SCLK_UP },
|
{ 15000, 30000, RADEON_SCLK_UP },
|
||||||
{ 20000, 30000, RADEON_SCLK_UP },
|
{ 20000, 30000, RADEON_SCLK_UP },
|
||||||
|
@ -1621,9 +1621,7 @@ static int ni_populate_memory_timing_parameters(struct radeon_device *rdev,
|
|||||||
(u8)rv770_calculate_memory_refresh_rate(rdev, pl->sclk);
|
(u8)rv770_calculate_memory_refresh_rate(rdev, pl->sclk);
|
||||||
|
|
||||||
|
|
||||||
radeon_atom_set_engine_dram_timings(rdev,
|
radeon_atom_set_engine_dram_timings(rdev, pl->sclk, pl->mclk);
|
||||||
pl->sclk,
|
|
||||||
pl->mclk);
|
|
||||||
|
|
||||||
dram_timing = RREG32(MC_ARB_DRAM_TIMING);
|
dram_timing = RREG32(MC_ARB_DRAM_TIMING);
|
||||||
dram_timing2 = RREG32(MC_ARB_DRAM_TIMING2);
|
dram_timing2 = RREG32(MC_ARB_DRAM_TIMING2);
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
#include <linux/vga_switcheroo.h>
|
#include <linux/vga_switcheroo.h>
|
||||||
|
|
||||||
/* object hierarchy -
|
/* object hierarchy -
|
||||||
this contains a helper + a radeon fb
|
* this contains a helper + a radeon fb
|
||||||
the helper contains a pointer to radeon framebuffer baseclass.
|
* the helper contains a pointer to radeon framebuffer baseclass.
|
||||||
*/
|
*/
|
||||||
struct radeon_fbdev {
|
struct radeon_fbdev {
|
||||||
struct drm_fb_helper helper;
|
struct drm_fb_helper helper;
|
||||||
|
@ -722,9 +722,11 @@ static int radeon_uvd_send_msg(struct radeon_device *rdev,
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* multiple fence commands without any stream commands in between can
|
/*
|
||||||
crash the vcpu so just try to emmit a dummy create/destroy msg to
|
* multiple fence commands without any stream commands in between can
|
||||||
avoid this */
|
* crash the vcpu so just try to emmit a dummy create/destroy msg to
|
||||||
|
* avoid this
|
||||||
|
*/
|
||||||
int radeon_uvd_get_create_msg(struct radeon_device *rdev, int ring,
|
int radeon_uvd_get_create_msg(struct radeon_device *rdev, int ring,
|
||||||
uint32_t handle, struct radeon_fence **fence)
|
uint32_t handle, struct radeon_fence **fence)
|
||||||
{
|
{
|
||||||
|
@ -612,6 +612,7 @@ uint64_t radeon_vm_map_gart(struct radeon_device *rdev, uint64_t addr)
|
|||||||
static uint32_t radeon_vm_page_flags(uint32_t flags)
|
static uint32_t radeon_vm_page_flags(uint32_t flags)
|
||||||
{
|
{
|
||||||
uint32_t hw_flags = 0;
|
uint32_t hw_flags = 0;
|
||||||
|
|
||||||
hw_flags |= (flags & RADEON_VM_PAGE_VALID) ? R600_PTE_VALID : 0;
|
hw_flags |= (flags & RADEON_VM_PAGE_VALID) ? R600_PTE_VALID : 0;
|
||||||
hw_flags |= (flags & RADEON_VM_PAGE_READABLE) ? R600_PTE_READABLE : 0;
|
hw_flags |= (flags & RADEON_VM_PAGE_READABLE) ? R600_PTE_READABLE : 0;
|
||||||
hw_flags |= (flags & RADEON_VM_PAGE_WRITEABLE) ? R600_PTE_WRITEABLE : 0;
|
hw_flags |= (flags & RADEON_VM_PAGE_WRITEABLE) ? R600_PTE_WRITEABLE : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user