@@ -211,7 +211,7 @@ static void amdgpu_dm_destroy_drm_device(struct amdgpu_display_manager *dm);
211
211
212
212
static int amdgpu_dm_connector_init (struct amdgpu_display_manager * dm ,
213
213
struct amdgpu_dm_connector * amdgpu_dm_connector ,
214
- uint32_t link_index ,
214
+ u32 link_index ,
215
215
struct amdgpu_encoder * amdgpu_encoder );
216
216
static int amdgpu_dm_encoder_init (struct drm_device * dev ,
217
217
struct amdgpu_encoder * aencoder ,
@@ -263,7 +263,7 @@ static u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc)
263
263
static int dm_crtc_get_scanoutpos (struct amdgpu_device * adev , int crtc ,
264
264
u32 * vbl , u32 * position )
265
265
{
266
- uint32_t v_blank_start , v_blank_end , h_position , v_position ;
266
+ u32 v_blank_start , v_blank_end , h_position , v_position ;
267
267
268
268
if ((crtc < 0 ) || (crtc >= adev -> mode_info .num_crtc ))
269
269
return - EINVAL ;
@@ -391,7 +391,7 @@ static void dm_pflip_high_irq(void *interrupt_params)
391
391
struct amdgpu_device * adev = irq_params -> adev ;
392
392
unsigned long flags ;
393
393
struct drm_pending_vblank_event * e ;
394
- uint32_t vpos , hpos , v_blank_start , v_blank_end ;
394
+ u32 vpos , hpos , v_blank_start , v_blank_end ;
395
395
bool vrr_active ;
396
396
397
397
amdgpu_crtc = get_crtc_by_otg_inst (adev , irq_params -> irq_src - IRQ_TYPE_PFLIP );
@@ -678,7 +678,7 @@ static void dmub_hpd_callback(struct amdgpu_device *adev,
678
678
struct drm_connector * connector ;
679
679
struct drm_connector_list_iter iter ;
680
680
struct dc_link * link ;
681
- uint8_t link_index = 0 ;
681
+ u8 link_index = 0 ;
682
682
struct drm_device * dev ;
683
683
684
684
if (adev == NULL )
@@ -779,7 +779,7 @@ static void dm_dmub_outbox1_low_irq(void *interrupt_params)
779
779
struct amdgpu_device * adev = irq_params -> adev ;
780
780
struct amdgpu_display_manager * dm = & adev -> dm ;
781
781
struct dmcub_trace_buf_entry entry = { 0 };
782
- uint32_t count = 0 ;
782
+ u32 count = 0 ;
783
783
struct dmub_hpd_work * dmub_hpd_wrk ;
784
784
struct dc_link * plink = NULL ;
785
785
@@ -1045,7 +1045,7 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
1045
1045
struct dmub_srv_hw_params hw_params ;
1046
1046
enum dmub_status status ;
1047
1047
const unsigned char * fw_inst_const , * fw_bss_data ;
1048
- uint32_t i , fw_inst_const_size , fw_bss_data_size ;
1048
+ u32 i , fw_inst_const_size , fw_bss_data_size ;
1049
1049
bool has_hw_support ;
1050
1050
1051
1051
if (!dmub_srv )
@@ -1206,10 +1206,10 @@ static void dm_dmub_hw_resume(struct amdgpu_device *adev)
1206
1206
1207
1207
static void mmhub_read_system_context (struct amdgpu_device * adev , struct dc_phy_addr_space_config * pa_config )
1208
1208
{
1209
- uint64_t pt_base ;
1210
- uint32_t logical_addr_low ;
1211
- uint32_t logical_addr_high ;
1212
- uint32_t agp_base , agp_bot , agp_top ;
1209
+ u64 pt_base ;
1210
+ u32 logical_addr_low ;
1211
+ u32 logical_addr_high ;
1212
+ u32 agp_base , agp_bot , agp_top ;
1213
1213
PHYSICAL_ADDRESS_LOC page_table_start , page_table_end , page_table_base ;
1214
1214
1215
1215
memset (pa_config , 0 , sizeof (* pa_config ));
@@ -2536,7 +2536,7 @@ struct amdgpu_dm_connector *
2536
2536
amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_state * state ,
2537
2537
struct drm_crtc * crtc )
2538
2538
{
2539
- uint32_t i ;
2539
+ u32 i ;
2540
2540
struct drm_connector_state * new_con_state ;
2541
2541
struct drm_connector * connector ;
2542
2542
struct drm_crtc * crtc_from_state ;
@@ -3172,8 +3172,8 @@ static void handle_hpd_irq(void *param)
3172
3172
3173
3173
static void dm_handle_mst_sideband_msg (struct amdgpu_dm_connector * aconnector )
3174
3174
{
3175
- uint8_t esi [DP_PSR_ERROR_STATUS - DP_SINK_COUNT_ESI ] = { 0 };
3176
- uint8_t dret ;
3175
+ u8 esi [DP_PSR_ERROR_STATUS - DP_SINK_COUNT_ESI ] = { 0 };
3176
+ u8 dret ;
3177
3177
bool new_irq_handled = false;
3178
3178
int dpcd_addr ;
3179
3179
int dpcd_bytes_to_read ;
@@ -3201,7 +3201,7 @@ static void dm_handle_mst_sideband_msg(struct amdgpu_dm_connector *aconnector)
3201
3201
3202
3202
while (dret == dpcd_bytes_to_read &&
3203
3203
process_count < max_process_count ) {
3204
- uint8_t retry ;
3204
+ u8 retry ;
3205
3205
dret = 0 ;
3206
3206
3207
3207
process_count ++ ;
@@ -3220,7 +3220,7 @@ static void dm_handle_mst_sideband_msg(struct amdgpu_dm_connector *aconnector)
3220
3220
dpcd_bytes_to_read - 1 ;
3221
3221
3222
3222
for (retry = 0 ; retry < 3 ; retry ++ ) {
3223
- uint8_t wret ;
3223
+ u8 wret ;
3224
3224
3225
3225
wret = drm_dp_dpcd_write (
3226
3226
& aconnector -> dm_dp_aux .aux ,
@@ -4236,12 +4236,12 @@ static void amdgpu_set_panel_orientation(struct drm_connector *connector);
4236
4236
static int amdgpu_dm_initialize_drm_device (struct amdgpu_device * adev )
4237
4237
{
4238
4238
struct amdgpu_display_manager * dm = & adev -> dm ;
4239
- int32_t i ;
4239
+ s32 i ;
4240
4240
struct amdgpu_dm_connector * aconnector = NULL ;
4241
4241
struct amdgpu_encoder * aencoder = NULL ;
4242
4242
struct amdgpu_mode_info * mode_info = & adev -> mode_info ;
4243
- uint32_t link_cnt ;
4244
- int32_t primary_planes ;
4243
+ u32 link_cnt ;
4244
+ s32 primary_planes ;
4245
4245
enum dc_connection_type new_connection_type = dc_connection_none ;
4246
4246
const struct dc_plane_cap * plane ;
4247
4247
bool psr_feature_enabled = false;
@@ -4768,7 +4768,7 @@ fill_plane_color_attributes(const struct drm_plane_state *plane_state,
4768
4768
static int
4769
4769
fill_dc_plane_info_and_addr (struct amdgpu_device * adev ,
4770
4770
const struct drm_plane_state * plane_state ,
4771
- const uint64_t tiling_flags ,
4771
+ const u64 tiling_flags ,
4772
4772
struct dc_plane_info * plane_info ,
4773
4773
struct dc_plane_address * address ,
4774
4774
bool tmz_surface ,
@@ -4977,7 +4977,7 @@ static void fill_dc_dirty_rects(struct drm_plane *plane,
4977
4977
uint32_t num_clips ;
4978
4978
bool bb_changed ;
4979
4979
bool fb_changed ;
4980
- uint32_t i = 0 ;
4980
+ u32 i = 0 ;
4981
4981
4982
4982
flip_addrs -> dirty_rect_count = 0 ;
4983
4983
@@ -5111,7 +5111,7 @@ static enum dc_color_depth
5111
5111
convert_color_depth_from_display_info (const struct drm_connector * connector ,
5112
5112
bool is_y420 , int requested_bpc )
5113
5113
{
5114
- uint8_t bpc ;
5114
+ u8 bpc ;
5115
5115
5116
5116
if (is_y420 ) {
5117
5117
bpc = 8 ;
@@ -5655,8 +5655,8 @@ static void apply_dsc_policy_for_edp(struct amdgpu_dm_connector *aconnector,
5655
5655
uint32_t max_dsc_target_bpp_limit_override )
5656
5656
{
5657
5657
const struct dc_link_settings * verified_link_cap = NULL ;
5658
- uint32_t link_bw_in_kbps ;
5659
- uint32_t edp_min_bpp_x16 , edp_max_bpp_x16 ;
5658
+ u32 link_bw_in_kbps ;
5659
+ u32 edp_min_bpp_x16 , edp_max_bpp_x16 ;
5660
5660
struct dc * dc = sink -> ctx -> dc ;
5661
5661
struct dc_dsc_bw_range bw_range = {0 };
5662
5662
struct dc_dsc_config dsc_cfg = {0 };
@@ -5713,11 +5713,11 @@ static void apply_dsc_policy_for_stream(struct amdgpu_dm_connector *aconnector,
5713
5713
struct dsc_dec_dpcd_caps * dsc_caps )
5714
5714
{
5715
5715
struct drm_connector * drm_connector = & aconnector -> base ;
5716
- uint32_t link_bandwidth_kbps ;
5716
+ u32 link_bandwidth_kbps ;
5717
5717
struct dc * dc = sink -> ctx -> dc ;
5718
- uint32_t max_supported_bw_in_kbps , timing_bw_in_kbps ;
5719
- uint32_t dsc_max_supported_bw_in_kbps ;
5720
- uint32_t max_dsc_target_bpp_limit_override =
5718
+ u32 max_supported_bw_in_kbps , timing_bw_in_kbps ;
5719
+ u32 dsc_max_supported_bw_in_kbps ;
5720
+ u32 max_dsc_target_bpp_limit_override =
5721
5721
drm_connector -> display_info .max_dsc_bpp ;
5722
5722
5723
5723
link_bandwidth_kbps = dc_link_bandwidth_kbps (aconnector -> dc_link ,
@@ -6871,7 +6871,7 @@ static uint add_fs_modes(struct amdgpu_dm_connector *aconnector)
6871
6871
const struct drm_display_mode * m ;
6872
6872
struct drm_display_mode * new_mode ;
6873
6873
uint i ;
6874
- uint32_t new_modes_count = 0 ;
6874
+ u32 new_modes_count = 0 ;
6875
6875
6876
6876
/* Standard FPS values
6877
6877
*
@@ -6885,7 +6885,7 @@ static uint add_fs_modes(struct amdgpu_dm_connector *aconnector)
6885
6885
* 60 - Commonly used
6886
6886
* 48,72,96,120 - Multiples of 24
6887
6887
*/
6888
- static const uint32_t common_rates [] = {
6888
+ static const u32 common_rates [] = {
6889
6889
23976 , 24000 , 25000 , 29970 , 30000 ,
6890
6890
48000 , 50000 , 60000 , 72000 , 96000 , 120000
6891
6891
};
@@ -6901,8 +6901,8 @@ static uint add_fs_modes(struct amdgpu_dm_connector *aconnector)
6901
6901
return 0 ;
6902
6902
6903
6903
for (i = 0 ; i < ARRAY_SIZE (common_rates ); i ++ ) {
6904
- uint64_t target_vtotal , target_vtotal_diff ;
6905
- uint64_t num , den ;
6904
+ u64 target_vtotal , target_vtotal_diff ;
6905
+ u64 num , den ;
6906
6906
6907
6907
if (drm_mode_vrefresh (m ) * 1000 < common_rates [i ])
6908
6908
continue ;
@@ -7150,7 +7150,7 @@ create_i2c(struct ddc_service *ddc_service,
7150
7150
*/
7151
7151
static int amdgpu_dm_connector_init (struct amdgpu_display_manager * dm ,
7152
7152
struct amdgpu_dm_connector * aconnector ,
7153
- uint32_t link_index ,
7153
+ u32 link_index ,
7154
7154
struct amdgpu_encoder * aencoder )
7155
7155
{
7156
7156
int res = 0 ;
@@ -7641,8 +7641,8 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
7641
7641
struct drm_crtc * pcrtc ,
7642
7642
bool wait_for_vblank )
7643
7643
{
7644
- uint32_t i ;
7645
- uint64_t timestamp_ns ;
7644
+ u32 i ;
7645
+ u64 timestamp_ns ;
7646
7646
struct drm_plane * plane ;
7647
7647
struct drm_plane_state * old_plane_state , * new_plane_state ;
7648
7648
struct amdgpu_crtc * acrtc_attach = to_amdgpu_crtc (pcrtc );
@@ -7653,7 +7653,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
7653
7653
to_dm_crtc_state (drm_atomic_get_old_crtc_state (state , pcrtc ));
7654
7654
int planes_count = 0 , vpos , hpos ;
7655
7655
unsigned long flags ;
7656
- uint32_t target_vblank , last_flip_vblank ;
7656
+ u32 target_vblank , last_flip_vblank ;
7657
7657
bool vrr_active = amdgpu_dm_vrr_active (acrtc_state );
7658
7658
bool cursor_update = false;
7659
7659
bool pflip_present = false;
@@ -8102,7 +8102,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
8102
8102
struct amdgpu_display_manager * dm = & adev -> dm ;
8103
8103
struct dm_atomic_state * dm_state ;
8104
8104
struct dc_state * dc_state = NULL , * dc_state_temp = NULL ;
8105
- uint32_t i , j ;
8105
+ u32 i , j ;
8106
8106
struct drm_crtc * crtc ;
8107
8107
struct drm_crtc_state * old_crtc_state , * new_crtc_state ;
8108
8108
unsigned long flags ;
@@ -8732,7 +8732,7 @@ is_timing_unchanged_for_freesync(struct drm_crtc_state *old_crtc_state,
8732
8732
}
8733
8733
8734
8734
static void set_freesync_fixed_config (struct dm_crtc_state * dm_new_crtc_state ) {
8735
- uint64_t num , den , res ;
8735
+ u64 num , den , res ;
8736
8736
struct drm_crtc_state * new_crtc_state = & dm_new_crtc_state -> base ;
8737
8737
8738
8738
dm_new_crtc_state -> freesync_config .state = VRR_STATE_ACTIVE_FIXED ;
@@ -9908,7 +9908,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
9908
9908
static bool is_dp_capable_without_timing_msa (struct dc * dc ,
9909
9909
struct amdgpu_dm_connector * amdgpu_dm_connector )
9910
9910
{
9911
- uint8_t dpcd_data ;
9911
+ u8 dpcd_data ;
9912
9912
bool capable = false;
9913
9913
9914
9914
if (amdgpu_dm_connector -> dc_link &&
@@ -9927,7 +9927,7 @@ static bool is_dp_capable_without_timing_msa(struct dc *dc,
9927
9927
static bool dm_edid_parser_send_cea (struct amdgpu_display_manager * dm ,
9928
9928
unsigned int offset ,
9929
9929
unsigned int total_length ,
9930
- uint8_t * data ,
9930
+ u8 * data ,
9931
9931
unsigned int length ,
9932
9932
struct amdgpu_hdmi_vsdb_info * vsdb )
9933
9933
{
@@ -9982,7 +9982,7 @@ static bool dm_edid_parser_send_cea(struct amdgpu_display_manager *dm,
9982
9982
}
9983
9983
9984
9984
static bool parse_edid_cea_dmcu (struct amdgpu_display_manager * dm ,
9985
- uint8_t * edid_ext , int len ,
9985
+ u8 * edid_ext , int len ,
9986
9986
struct amdgpu_hdmi_vsdb_info * vsdb_info )
9987
9987
{
9988
9988
int i ;
@@ -10023,7 +10023,7 @@ static bool parse_edid_cea_dmcu(struct amdgpu_display_manager *dm,
10023
10023
}
10024
10024
10025
10025
static bool parse_edid_cea_dmub (struct amdgpu_display_manager * dm ,
10026
- uint8_t * edid_ext , int len ,
10026
+ u8 * edid_ext , int len ,
10027
10027
struct amdgpu_hdmi_vsdb_info * vsdb_info )
10028
10028
{
10029
10029
int i ;
@@ -10039,7 +10039,7 @@ static bool parse_edid_cea_dmub(struct amdgpu_display_manager *dm,
10039
10039
}
10040
10040
10041
10041
static bool parse_edid_cea (struct amdgpu_dm_connector * aconnector ,
10042
- uint8_t * edid_ext , int len ,
10042
+ u8 * edid_ext , int len ,
10043
10043
struct amdgpu_hdmi_vsdb_info * vsdb_info )
10044
10044
{
10045
10045
struct amdgpu_device * adev = drm_to_adev (aconnector -> base .dev );
@@ -10053,7 +10053,7 @@ static bool parse_edid_cea(struct amdgpu_dm_connector *aconnector,
10053
10053
static int parse_hdmi_amd_vsdb (struct amdgpu_dm_connector * aconnector ,
10054
10054
struct edid * edid , struct amdgpu_hdmi_vsdb_info * vsdb_info )
10055
10055
{
10056
- uint8_t * edid_ext = NULL ;
10056
+ u8 * edid_ext = NULL ;
10057
10057
int i ;
10058
10058
bool valid_vsdb_found = false;
10059
10059
@@ -10229,7 +10229,7 @@ void amdgpu_dm_trigger_timing_sync(struct drm_device *dev)
10229
10229
}
10230
10230
10231
10231
void dm_write_reg_func (const struct dc_context * ctx , uint32_t address ,
10232
- uint32_t value , const char * func_name )
10232
+ u32 value , const char * func_name )
10233
10233
{
10234
10234
#ifdef DM_CHECK_ADDR_0
10235
10235
if (address == 0 ) {
@@ -10244,7 +10244,7 @@ void dm_write_reg_func(const struct dc_context *ctx, uint32_t address,
10244
10244
uint32_t dm_read_reg_func (const struct dc_context * ctx , uint32_t address ,
10245
10245
const char * func_name )
10246
10246
{
10247
- uint32_t value ;
10247
+ u32 value ;
10248
10248
#ifdef DM_CHECK_ADDR_0
10249
10249
if (address == 0 ) {
10250
10250
DC_ERR ("invalid register read; address = 0\n" );
0 commit comments