/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v6_0.c | 495 u32 yclk; /* bandwidth per dram data pin in kHz */ member 522 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth() local 526 yclk.full = dfixed_const(wm->yclk); in dce_v6_0_dram_bandwidth() 527 yclk.full = dfixed_div(yclk, a); in dce_v6_0_dram_bandwidth() 532 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth() 551 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth_for_display() local 555 yclk.full = dfixed_const(wm->yclk); in dce_v6_0_dram_bandwidth_for_display() 556 yclk.full = dfixed_div(yclk, a); in dce_v6_0_dram_bandwidth_for_display() 561 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth_for_display() 853 wm_high.yclk = in dce_v6_0_program_watermarks() [all …]
|
D | dce_v8_0.c | 632 u32 yclk; /* bandwidth per dram data pin in kHz */ member 659 fixed20_12 yclk, dram_channels, bandwidth; in dce_v8_0_dram_bandwidth() local 663 yclk.full = dfixed_const(wm->yclk); in dce_v8_0_dram_bandwidth() 664 yclk.full = dfixed_div(yclk, a); in dce_v8_0_dram_bandwidth() 669 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v8_0_dram_bandwidth() 688 fixed20_12 yclk, dram_channels, bandwidth; in dce_v8_0_dram_bandwidth_for_display() local 692 yclk.full = dfixed_const(wm->yclk); in dce_v8_0_dram_bandwidth_for_display() 693 yclk.full = dfixed_div(yclk, a); in dce_v8_0_dram_bandwidth_for_display() 698 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v8_0_dram_bandwidth_for_display() 981 wm_high.yclk = in dce_v8_0_program_watermarks() [all …]
|
D | dce_v10_0.c | 697 u32 yclk; /* bandwidth per dram data pin in kHz */ member 724 fixed20_12 yclk, dram_channels, bandwidth; in dce_v10_0_dram_bandwidth() local 728 yclk.full = dfixed_const(wm->yclk); in dce_v10_0_dram_bandwidth() 729 yclk.full = dfixed_div(yclk, a); in dce_v10_0_dram_bandwidth() 734 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v10_0_dram_bandwidth() 753 fixed20_12 yclk, dram_channels, bandwidth; in dce_v10_0_dram_bandwidth_for_display() local 757 yclk.full = dfixed_const(wm->yclk); in dce_v10_0_dram_bandwidth_for_display() 758 yclk.full = dfixed_div(yclk, a); in dce_v10_0_dram_bandwidth_for_display() 763 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v10_0_dram_bandwidth_for_display() 1046 wm_high.yclk = in dce_v10_0_program_watermarks() [all …]
|
D | dce_v11_0.c | 723 u32 yclk; /* bandwidth per dram data pin in kHz */ member 750 fixed20_12 yclk, dram_channels, bandwidth; in dce_v11_0_dram_bandwidth() local 754 yclk.full = dfixed_const(wm->yclk); in dce_v11_0_dram_bandwidth() 755 yclk.full = dfixed_div(yclk, a); in dce_v11_0_dram_bandwidth() 760 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v11_0_dram_bandwidth() 779 fixed20_12 yclk, dram_channels, bandwidth; in dce_v11_0_dram_bandwidth_for_display() local 783 yclk.full = dfixed_const(wm->yclk); in dce_v11_0_dram_bandwidth_for_display() 784 yclk.full = dfixed_div(yclk, a); in dce_v11_0_dram_bandwidth_for_display() 789 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v11_0_dram_bandwidth_for_display() 1072 wm_high.yclk = in dce_v11_0_program_watermarks() [all …]
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | evergreen.c | 1933 u32 yclk; /* bandwidth per dram data pin in kHz */ member 1951 fixed20_12 yclk, dram_channels, bandwidth; in evergreen_dram_bandwidth() local 1955 yclk.full = dfixed_const(wm->yclk); in evergreen_dram_bandwidth() 1956 yclk.full = dfixed_div(yclk, a); in evergreen_dram_bandwidth() 1961 bandwidth.full = dfixed_mul(dram_channels, yclk); in evergreen_dram_bandwidth() 1971 fixed20_12 yclk, dram_channels, bandwidth; in evergreen_dram_bandwidth_for_display() local 1975 yclk.full = dfixed_const(wm->yclk); in evergreen_dram_bandwidth_for_display() 1976 yclk.full = dfixed_div(yclk, a); in evergreen_dram_bandwidth_for_display() 1981 bandwidth.full = dfixed_mul(dram_channels, yclk); in evergreen_dram_bandwidth_for_display() 2181 wm_high.yclk = in evergreen_program_watermarks() [all …]
|
D | si.c | 2059 u32 yclk; /* bandwidth per dram data pin in kHz */ member 2077 fixed20_12 yclk, dram_channels, bandwidth; in dce6_dram_bandwidth() local 2081 yclk.full = dfixed_const(wm->yclk); in dce6_dram_bandwidth() 2082 yclk.full = dfixed_div(yclk, a); in dce6_dram_bandwidth() 2087 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce6_dram_bandwidth() 2097 fixed20_12 yclk, dram_channels, bandwidth; in dce6_dram_bandwidth_for_display() local 2101 yclk.full = dfixed_const(wm->yclk); in dce6_dram_bandwidth_for_display() 2102 yclk.full = dfixed_div(yclk, a); in dce6_dram_bandwidth_for_display() 2107 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce6_dram_bandwidth_for_display() 2330 wm_high.yclk = in dce6_program_watermarks() [all …]
|
D | cik.c | 8917 u32 yclk; /* bandwidth per dram data pin in kHz */ member 8944 fixed20_12 yclk, dram_channels, bandwidth; in dce8_dram_bandwidth() local 8948 yclk.full = dfixed_const(wm->yclk); in dce8_dram_bandwidth() 8949 yclk.full = dfixed_div(yclk, a); in dce8_dram_bandwidth() 8954 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce8_dram_bandwidth() 8973 fixed20_12 yclk, dram_channels, bandwidth; in dce8_dram_bandwidth_for_display() local 8977 yclk.full = dfixed_const(wm->yclk); in dce8_dram_bandwidth_for_display() 8978 yclk.full = dfixed_div(yclk, a); in dce8_dram_bandwidth_for_display() 8983 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce8_dram_bandwidth_for_display() 9267 wm_high.yclk = in dce8_program_watermarks() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dce_calcs.c | 101 struct bw_fixed yclk[3]; in calculate_bandwidth() local 126 yclk[low] = vbios->low_yclk; in calculate_bandwidth() 127 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth() 128 yclk[high] = vbios->high_yclk; in calculate_bandwidth() 1188 …red_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixe… in calculate_bandwidth() 1190 …red_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixe… in calculate_bandwidth() 1529 …data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_f… in calculate_bandwidth() 1535 …data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_f… in calculate_bandwidth() 1539 …_percent_of_ideal_drambw_display_can_use_in_normal_system_operation, 100),yclk[low]),bw_div(bw_int… in calculate_bandwidth() 1540 …w_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[low]), bw_int_to_fi… in calculate_bandwidth() [all …]
|